hedwig v0.2.0 Release Notes
Release Date: 2015-09-08 // about 9 years ago-
๐ Improvements
Hedwig.whereis/1
can be used to return thepid
of a client by thejid
- Clients are now supervised via
:simple_one_for_one
and can be started/stopped viaHedwig.start_client/1
andHedwig.stop_client/1
- Supports inband registration via
Stanza.set_inband_register/2
- Supports subscribing to a PubSub node via
Stanza.subscribe/3
Backwards Incompatible Changes
- Clients are no longer configured via
config.exs
. Instead you must now manage starting/stopping clients viaHedwig.start_client/1
andHedwig.stop_client/1
- Clients are no longer configured via
๐ Release Diff: https://github.com/scrogson/hedwig/compare/v0.1.0...v0.2.0
Previous changes from v0.1.0
-
๐ Bug Fixes
- Default
type
for apresence
stanza is nownil
- Default
type
for amessage
stanza is nownormal
- Feature negotiation is now handled a second time if the connection is upgraded to TLS.
- Default
๐ Improvements
- Authentication has been cleaned up and allows you to configure your preferred auth mechanism.
- Support
ANONYMOUS
auth mechanism. Stanza.iq/{2,3}
-iq
stanzas can now be sent to a specifiedjid
.Stanza.get_roster/0
to fetch the client's roster.Stanza.get_vcard/1
to fetch the vcard of a specifiedjid
.Stanza.disco_info/1
to discover features and capabilities of a server or client.Stanza.disco_items/1
to discover features and capabilities of a server or client.Stanza.presence/1
to allow a client to becomeunavailable
.JID
now implementsString.Chars.to_string/1
protocol.ignore_from_self?
option to allow stanzas to be processed for messages sent by the client. Defaults tofalse
.- Clients can now be stopped cleanly. Send a message of
{:stop, reason}
and the client will send anunavailable
presence and close the stream. - Stanza parsing is now more robust. Parses into appropriate structs and includes a
payload
key for access to theraw
parsed data structure.
๐ Release Diff: https://github.com/scrogson/hedwig/compare/v0.0.3...v0.1.0