Support for XEP-0045 multi-user chats is now available in the aioxmpp.muc subpackage.
Mostly transparent support for XEP-0115 (Entity Capabilities) is now available using the aioxmpp.entitycaps subpackage.
Support for transparent non-scalar attributes, which get mapped to XSOs. Use cases are dicts mapping language tags to strings (such as for message body elements) or sets of values which are represented by discrete XML elements.
For this, the method get_formatted_type() was added to aioxmpp.xso.AbstractType and two new descriptors, aioxmpp.xso.ChildValueMap and aioxmpp.xso.ChildValueList, were implemented.
aioxmpp.xso.ChildValueMap | |
aioxmpp.xso.ChildValueList | |
aioxmpp.xso.ChildTextMap |
Breaking change: The above descriptors are now used at several places, breaking the way these attributes need to be accessed:
Several stability improvements have been made. A race condition during stream management resumption was fixed and aioxmpp.node.AbstractClient instances now stop if non-OSError exceptions emerge from the stream (as these usually indicate an implementation or user error).
aioxmpp.callbacks.AdHocSignal now provides full exception isolation.
Support for capturing the raw XML events used for creating aioxmpp.xso.XSO instances from SAX is now provided through aioxmpp.xso.CapturingXSO. Helper functions to work with these events are also provided, most notably aioxmpp.xso.events_to_sax(), which can be used to re-create the original XML from those events.
The main use case is to be able to write out a transcript of received XML data, independent of XSO-level understanding for the data received, provided the parts which are understood are semantically correct (transcripts will be incomplete if parsing fails due to incorrect contents).
aioxmpp.xso.CapturingXSO | |
aioxmpp.xso.capture_events | |
aioxmpp.xso.events_to_sax |
This feature is already used in aioxmpp.disco.xso.InfoQuery, which now inherits from CapturingXSO and provides its transcript (if available) at captured_events.
The core SASL implementation has been refactored in its own independent package, aiosasl. Only the XMPP specific parts reside in aioxmpp.sasl and aioxmpp now depends on aiosasl.
aioxmpp.stream.StanzaStream.register_message_callback() is more clearly specified now, a bug in the documentation has been fixed.
aioxmpp.stream_xsos is now called aioxmpp.nonza, in accordance with XEP-0360.
aioxmpp.xso.Date and aioxmpp.xso.Time are now available to for XEP-0082 use. In addition, support for the legacy date time format is now provided in aioxmpp.xso.DateTime.
aioxmpp.xso.Date | |
aioxmpp.xso.Time | |
aioxmpp.xso.DateTime |
The Python 3.5 compatibility of the test suite has been improved. In a corner-case, StopIteration was emitted from data_received, which caused a test to fail with a RuntimeError due to implementation of PEP-0479 in Python 3.5. See the issue at github.
Helper functions for reading and writing single XSOs (and their children) to binary file-like objects have been introduced.
aioxmpp.xml.write_single_xso | |
aioxmpp.xml.read_xso | |
aioxmpp.xml.read_single_xso |
In 0.5.4, aioxmpp.network was re-written. More details will follow in the 0.6 changelog. The takeaway is that the network stack now automatically reloads the DNS configuration after the first timeout, to accomodate to changing resolvers.
Documentation change: A simple sphinx extension has been added which auto-detects coroutines and adds a directive to mark up signals.
The latter has been added to relevant places and the former automatically improves the documentations quality.
aioxmpp.roster.Service now implements presence subscription management. To track the presence of peers, aioxmpp.presence has been added.
aioxmpp.stream and aioxmpp.nonza are part of the public API now. aioxmpp.nonza has gained the XSOs for SASL (previously in aioxmpp.sasl) and StartTLS (previously in aioxmpp.security_layer).
aioxmpp.xso.XSO subclasses now support copying and deepcopying.
aioxmpp.protocol has been moved into the internal API part.
aioxmpp.stanza.Message specification fixed to have "normal" as default for type_ and relax the unknown child policy.
Possibly breaking change: aioxmpp.xso.XSO.DECLARE_NS is now automatically generated by the meta class aioxmpp.xso.XMLStreamClass. See the documentation for the detailed rules.
To get the old behaviour for your class, you have to put DECLARE_NS = {} in its declaration.
aioxmpp.stream.StanzaStream has a positional, optional argument (local_jid) for ejabberd compatiblity.
Several fixes and workarounds, finally providing ejabberd compatibility:
Allow pinning of certificates for which no issuer certificate is available, because it is missing in the server-provided chain and not available in the local certificate store. This is, with respect to trust, treated equivalent to a self-signed cert.
Fix stream management state going out-of-sync when an errorneous stanza (unknown payload, type or validator errors on the payload) was received. In addition, IQ replies which cannot be processed raise aioxmpp.errors.ErrorneousStanza from aioxmpp.stream.StanzaStream.send_iq_and_wait_for_reply() and when registering futures for the response using aioxmpp.stream.StanzaStream.register_iq_response_future(). See the latter for details on the semantics.
Fixed a bug in aioxmpp.xml.XMPPXMLGenerator which would emit elements in the wrong namespace if the meaning of a XML namespace prefix was being changed at the same time an element was emitted using that namespace.
The defaults for unknown child and attribute policies on aioxmpp.xso.XSO are now DROP and not FAIL. This is for better compatibility with old implementations and future features.
Breaking change: The required keyword argument on most aioxmpp.xso descriptors has been removed. The semantics of the default keyword argument have been changed.
Before 0.3, the XML elements represented by descriptors were not required by default and had to be marked as required e.g. by setting required=True in xso.Attr constructor.
Since 0.3, the descriptors are generally required by default. However, the interface on how to change that is different. Attributes and text have a default keyword argument which may be set to a value (which may also be None). In that case, that value indicates that the attribute or text is absent: it is used if the attribute or text is missing in the source XML and if the attribute or text is set to the default value, it will not be emitted in XML.
Children do not support default values other than None; thus, they are simply controlled by a boolean flag required which needs to be passed to the constructor.
The class attributes SERVICE_BEFORE and SERVICE_AFTER have been renamed to ORDER_BEFORE and ORDER_AFTER respectively.
The aioxmpp.service.Service class has additional support to handle the old attributes, but will emit a DeprecationWarning if they are used on a class declaration.
See aioxmpp.service.Meta.SERVICE_AFTER for more information on the deprecation cycle of these attributes.