~samwhited/xmpp

95f3160493d64c61516b6c40860f99faeb54dc83 — Sam Whited 1 year, 7 months ago dbbebdd
all: update changelog
1 files changed, 35 insertions(+), 0 deletions(-)

M CHANGELOG.md
M CHANGELOG.md => CHANGELOG.md +35 -0
@@ 2,6 2,41 @@

All notable changes to this project will be documented in this file.

## Unreleased

### Breaking

- xmpp: change [`Handler`] to take an [`xmlstream.TokenReadEncoder`]
- xmpp: replace `EncodeToken` and `Flush` with [`TokenWriter`]
- xmpp: replace `Token` with [`TokenReader`]


### Added

- examples/echobot: add graceful shutdown on SIGINT
- xmpp: [`Encode`] and [`EncodeElement`] methods


### Changed

- xmpp: calls to `Serve` no longer return [`io.EOF`] on success


### Fixed

- examples/echobot: calling `Send` from within the handler resulted in deadlock
- xmpp: closing the input stream was racy, resulting in invalid XML


[`EncodeElement`]: https://godoc.org/mellium.im/xmpp#Session.EncodeElement
[`Encode`]: https://godoc.org/mellium.im/xmpp#Session.Encode
[`Handler`]: https://godoc.org/mellium.im/xmpp#Handler
[`io.EOF`]: https://golang.org/pkg/io/#EOF
[`TokenReader`]: https://godoc.org/mellium.im/xmpp#Session.TokenReader
[`TokenWriter`]: https://godoc.org/mellium.im/xmpp#Session.TokenWriter
[`xmlstream.TokenReadEncoder`]: https://godoc.org/mellium.im/xmlstream#TokenReadEncoder


## v0.12.0

### Breaking