- Enhancements
- [Romeo.Stanza.join/3] adds options for specifying MUC room password and history options.
- Backwards incompatible changes
- Removed
payload
key in favor ofxml
in theMessage
,Presence
, andIQ
stanzas. The fullxmlel
record is now stored in thexml
key. This allows easy access via the functions inRomeo.XML
module. - Messages generated with
Romeo.Stanza.message/3
no longer escape the body by default.
- Removed
-
Enhancements
- [Romeo.JID] Added
user/1
which returns theuser
portion of the JID. - [Romeo.JID] Added
server/1
which returns theserver
portion of the JID. - [Romeo.JID] Added
resource/1
which returns theresource
portion of the JID. - [Romeo.JID] Added key
full
JID struct for convenient access to the full JID. - [Romeo.Stanza] Added a clause to
to_xml/1
for%Romeo.Stanza.Message{}
. - [Romeo.XML] Added a clause to
encode!/1
to handle all stanza structs.
- [Romeo.JID] Added
-
Backward incompatible changes
- [Romeo.Connection] No longer sends stanza messages to the owner process until after the connection process has finished.
- [Romeo.Connection] Stanzas sent to the owner process are now parsed into the
matching stanza struct. The message tuple has changed from
{:stanza_received, stanza}
to{:stanza, stanza}
.
Initial release 🎉