Matthew Wild <mwild1@gmail.com> [Thu, 03 Sep 2020 12:59:43 +0100] rev 11062
util.events: Add set_debug_hook() method
Hook signature:
ret = debug_hook(handler, event_name, event_data)
Kim Alvefur <zash@zash.se> [Sat, 29 Aug 2020 18:51:13 +0200] rev 11061
MUC: Don't default room name to JID localpart (API breaking change)
Behavior with turning empty name into localpart was originally introduced
in 711eb5bf94b4
This has caused some problems for clients, making it difficult to
differentiate between a room actually named like the localpart from a
room without a name.
Breaking:
The function signature of the :get_name() method changes from always
returning a string to optional string.
Kim Alvefur <zash@zash.se> [Fri, 28 Aug 2020 18:44:02 +0200] rev 11060
util.jid: Fix special escaping of '\' per XEP-0106
From XEP-0106 §2. Requirements:
> in certain circumstances, the escaping character itself ("\") might
> also be escaped
Later in §4.2 Address Transformation Algorithm it is stated that the
backslash would only be escaped if it forms an escape sequence. Thus
'\foo' is unaltered but '\20' must be escaped into '\5c20'.
Thanks to lovetox and jonas’ for brining up.
Kim Alvefur <zash@zash.se> [Fri, 28 Aug 2020 18:43:37 +0200] rev 11059
util.jid: Add test coverage for XEP-0106: JID Escaping functions
Kim Alvefur <zash@zash.se> [Fri, 28 Aug 2020 13:55:05 +0200] rev 11058
util.error: Add a wrapper for common parameters
Lets you set up source and registry once per module
Kim Alvefur <zash@zash.se> [Fri, 28 Aug 2020 13:54:16 +0200] rev 11057
util.error: Add a 'source' parameter where origin module can be mentioned
Matthew Wild <mwild1@gmail.com> [Fri, 28 Aug 2020 12:54:31 +0100] rev 11056
util.startup: Init util.error with defaults if none given
Matthew Wild <mwild1@gmail.com> [Fri, 28 Aug 2020 12:51:40 +0100] rev 11055
util.error: Add configuration for including traceback in tostring()
Matthew Wild <mwild1@gmail.com> [Fri, 28 Aug 2020 12:40:59 +0100] rev 11054
util.error: Allow optional tracebacks to be injected on errors
This allows extra debug info to be provided for development purposes.
Matthew Wild <mwild1@gmail.com> [Tue, 25 Aug 2020 15:59:04 +0100] rev 11053
net.http: http.request() promise now resolves with response (breaking change)
Promise mode is not (widely?) used, changing this now while we can, as it
improves usability of the API.
The request is now available as response.request, if needed.