~samwhited/xmpp

xmpp/go.sum -rw-r--r-- 2.2 KiB
all: bump deps and target Go version

Prepare for a release by bumping the dependency on mellium.im/xmlstream
to v0.15.3 and update the targeted Go version to 1.16 (the earliest
supported release).

Signed-off-by: Sam Whited <sam@samwhited.com>
all: add dependency on tools/cmd/stringer

Signed-off-by: Sam Whited <sam@samwhited.com>
forward: new package implementing forwarding

Signed-off-by: Sam Whited <sam@samwhited.com>
paging: new package implementing RSM

Signed-off-by: Sam Whited <sam@samwhited.com>
stanza: support unique and stable stanza IDs

Fixes #111

Signed-off-by: Sam Whited <sam@samwhited.com>
internal/integration/mcabber: new package

New package for integration testing against Mcabber.

Signed-off-by: Sam Whited <sam@samwhited.com>
receipts: add struct and stream APIs

Previously we had to block waiting on response if we wanted to request
read receipts. However, this is more likely to be used asynchronously
where we associate the receipt with the original message using the ID.
To faciliate this, one type and one function was added: one for the
struct based API and one for the stream based API.

Fixes #89

Signed-off-by: Sam Whited <sam@samwhited.com>
styling: use new xmlstream.Insert for Disable

This functionality will be generally useful throughout this library as
well as for others so I've split it out into the xmlstream module in a
generalized way. This patch uses the new xmlstream version for its
original use in the styling package.

Signed-off-by: Sam Whited <sam@samwhited.com>
xmpp: refactor the stanza encoding wrapper

This doesn't really change anything, but for some reason I had a
convoluted wrapper that involved interfaces and fields on a struct
containing functions that defined all the behavior of the struct and
closures when all it really needed was a struct that overrode one method
of an encoder.

Signed-off-by: Sam Whited <sam@samwhited.com>
all: use xmlstream.Iter and remove internal/iter

The internal/iter package previously contained an API for iterating over
child elements and decoding them lazily.

This is needed by any package that exposes an iterator such as the
roster package, and is mentioned in the documentation
(https://mellium.im/docs/extensions) as the API to use when creating
your own extensions, but it was internal and not actually usable by this
package. Its own doc comment said that it would eventually be exported
when the API stabalized. It hasn't been necessary to change the API
since creating it so it became time to let it graduate to the
mellium.im/xmlstream module where it can be more broadly useful.

This patch bumps the version of xmlstream used and makes the minor
changes necessary to use the xmlstream version of the iterator. It also
removes the old internal/iter package and updates the documentation to
mention its new location as part of xmlstream.

They grow up so fast!

Signed-off-by: Sam Whited <sam@samwhited.com>
all: bump to v0.14.0
internal/decl: new XML declaration package
xmpp: bump xmlstream to v0.13.6
all: bump to v0.13.0
all: allow encoding structs from within handlers
all: move session Flush into TokenWriter
all: bump dep on mellium.im/xmlstream to v0.13.3
all: bump deps
all: bump deps
Update mellium.im/sasl to v0.2.1

The XMPP library now performs its own Base64 encoding and decoding since
this is no longer part of the SASL library (it's XMPP specific and
shouldn't have been in the SASL library to begin with).

Fixes #3
Next