~samwhited/xmpp

ref: c517d91ed61d79227438d372a31c4199ecd1dbab xmpp/CHANGELOG.md -rw-r--r-- 2.3 KiB
c517d91eSam Whited mux: pass stanza to handlers 1 year, 10 months ago

#Changelog

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

#Unreleased

#Added

  • mux: ability to route by IQ payload
  • ping: a function for easily encoding pings and handling errors
  • ping: a handler and mux option for responding to pings
  • stanza: ability to convert stanzas to/from xml.StartElement
  • stanza: API to simplify replying to IQs
  • uri: new package for parsing XMPP URI's and IRI's
  • xtime: new package for handling XEP-0202: Entity Time and XEP-0082: XMPP Date and Time Profiles

#Fixed

  • dial: if a port number is present in a JID it was previously ignored

#v0.14.0 — 2019-08-18

#Breaking

  • ping: remove IQ function and replace with struct based API

#Added

  • ping: add IQ struct based encoding API

#Changed

  • stanza: a zero value IQType now marshals as "get"
  • xmpp: read timeouts are now returned instead of ignored

#Fixed

  • dial: fix broken fallback to domainpart
  • xmpp: allow whitespace keepalives
  • roster: the iterator now correctly closes the underlying TokenReadCloser
  • xmpp: fix bug where stream processing could stop after an IQ was received

#v0.13.0 — 2019-07-27

#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

#v0.12.0

#Breaking

  • dial: moved network dialing types and functions into new package.
  • dial: use underlying net.Dialer's DNS Resolver in Dialer.
  • stanza: change API of WrapIQ and WrapPresence to not abuse pointers
  • xmpp: add new SendIQ API and remove response from Send and SendElement
  • xmpp: new API for writing custom tokens to a session

#Fixed

  • xmpp: let Session.Close operate concurrently with SendElement et al.