util/stanza.lua
Mon, 12 Dec 2022 07:07:13 +0100 Kim Alvefur Merge 0.11->0.12 0.12 0.12.2
Tue, 22 Nov 2022 23:56:01 +0100 Kim Alvefur util.stanza: Allow U+7F 0.11 0.11.14
Thu, 15 Sep 2022 11:11:52 +0200 Kim Alvefur Merge 0.12->trunk
Thu, 15 Sep 2022 11:05:21 +0200 Kim Alvefur util.stanza: Return nil instead of nothing (fix test with luassert >=1.9) 0.12
Mon, 29 Aug 2022 14:59:46 +0100 Matthew Wild util.stanza: Add add_error() to simplify adding error tags to existing stanzas
Wed, 17 Aug 2022 19:04:30 +0200 Kim Alvefur util.stanza: Add method for extracting a single attribute value
Fri, 18 Mar 2022 16:43:06 +0100 Kim Alvefur util.stanza: Create tables with correct size to avoid reallocations
Fri, 18 Mar 2022 16:39:48 +0100 Kim Alvefur util.stanza: Use table.move in clone
Fri, 31 Dec 2021 14:01:12 +0100 Kim Alvefur util.stanza: Remove dead code
Fri, 31 Dec 2021 13:52:11 +0100 Kim Alvefur util.stanza: Make type error message consistent with others
Mon, 29 Nov 2021 02:13:45 +0100 Kim Alvefur util.stanza: Adjust pretty printing for symmetry
Sun, 12 Sep 2021 10:31:02 +0100 Matthew Wild util.stanza: Add :get_child_with_attr() + tests
Tue, 29 Jun 2021 16:06:54 +0200 Kim Alvefur util.stanza: Export pretty printing function
Sat, 07 Nov 2020 22:09:46 +0100 Kim Alvefur util.stanza: Simplify and make pretty-printing look nicer
Sat, 07 Nov 2020 21:39:36 +0100 Kim Alvefur util.stanza: Remove Windows "support" (disabling ANSI color pretty printing)
Sat, 08 May 2021 16:31:48 +0200 Jonas Schäfer util.stanza: add at_top helper
Fri, 08 Jan 2021 23:56:27 +0100 Kim Alvefur Merge 0.11->trunk
Thu, 24 Dec 2020 17:57:28 +0100 Kim Alvefur util.stanza: Move misplaced argument to correct place 0.11
Wed, 11 Nov 2020 16:09:55 +0100 Kim Alvefur Merge 0.11->trunk
Wed, 11 Nov 2020 16:00:41 +0100 Kim Alvefur util.stanza: Reject ASCII control characters (fixes #1606) 0.11
Sat, 26 Sep 2020 18:12:18 +0200 Kim Alvefur util.stanza: Extract Application-Specific Condition from errors
Sat, 26 Sep 2020 18:09:10 +0200 Kim Alvefur util.stanza: Support Application-Specific Conditions in util.error
Sat, 26 Sep 2020 18:07:33 +0200 Kim Alvefur util.stanza: Get 'by' from context instead
Sat, 26 Sep 2020 17:30:47 +0200 Kim Alvefur util.stanza: Support inclusion of <gone> URI from util.error object
Sat, 26 Sep 2020 17:26:31 +0200 Kim Alvefur util.stanza: Support getting 'by' from util.error object
Sat, 26 Sep 2020 17:18:17 +0200 Kim Alvefur util.stanza: Reorder code to prepare for extracting 'by' from util.error
Sun, 12 Apr 2020 17:03:05 +0200 Kim Alvefur util.stanza: Add method returning stanza with added indentation
Sat, 14 Dec 2019 22:47:41 +0100 Kim Alvefur util.stanza: Accept util.error object to error_reply
Mon, 25 Nov 2019 20:59:36 +0100 Kim Alvefur util.stanza: Support the 'by' attribute on errors
Mon, 25 Nov 2019 20:52:03 +0100 Kim Alvefur util.stanza: Check that argument to error_reply is NOT a stanza of type error
Mon, 25 Nov 2019 20:52:01 +0100 Kim Alvefur util.stanza: Check that argument to error_reply is a stanza
Mon, 25 Nov 2019 20:46:55 +0100 Kim Alvefur util.stanza: Remove redundant check for attrs
Mon, 25 Nov 2019 20:44:05 +0100 Kim Alvefur util.stanza: Check that argument to reply is a stanza
Fri, 02 Aug 2019 08:56:29 +0200 Kim Alvefur util.stanza: Use :text_tag internally everywhere
Mon, 25 Mar 2019 14:37:43 +0000 Matthew Wild util.stanza: Fix :top_tag() handling of namespaced attributes
Fri, 28 Dec 2018 20:49:01 +0100 Kim Alvefur util.stanza: Require a type attribute for iq stanzas
Sat, 01 Dec 2018 18:30:19 +0100 Kim Alvefur util.stanza: Deserialize stanza without mutating input (fixes #711) 0.11
Sat, 17 Nov 2018 15:26:11 +0100 Kim Alvefur util.stanza: Validate input to clone() (with brief tests) 0.11
Fri, 12 Oct 2018 00:52:18 +0200 Kim Alvefur util.stanza: Set preserialize as freeze metamethod
Thu, 13 Sep 2018 16:35:48 +0100 Matthew Wild util.stanza: Don't automatically generate ids for iq stanzas
Sun, 19 Aug 2018 21:56:33 +0100 Matthew Wild util.stanza + tests: Bail out of loop if we are iterating too far, fixes #981
Sun, 08 Jul 2018 19:12:17 +0200 Kim Alvefur Merge 0.10->trunk
Sun, 08 Jul 2018 16:48:59 +0200 Kim Alvefur util.stanza: Add method for removing all children with a specific name, xmlns
Fri, 08 Jun 2018 17:44:44 +0200 Kim Alvefur util.stanza: Remove redundant check from :text now done in :add_direct_child
Fri, 08 Jun 2018 17:06:21 +0200 Kim Alvefur util.stanza: Verify that other objects added as children are valid strings
Fri, 08 Jun 2018 17:04:47 +0200 Kim Alvefur util.stanza: Verify that child tags added are really stanzas (closes #1165)
Wed, 21 Mar 2018 23:20:26 +0100 Kim Alvefur util.stanza: Add :text_tag(), a shortcut for adding nodes with text
Wed, 21 Mar 2018 22:04:20 +0000 Matthew Wild util.stanza: Allow :text(nil) and :text("") as harmless nops
Sun, 18 Mar 2018 11:32:00 +0000 Matthew Wild util.stanza: Switch from asserts to if's, improve performance, errors and tests
Fri, 16 Mar 2018 14:51:24 +0000 Matthew Wild util.stanza: Add stricter validation for data passed to stanza builder API
Wed, 28 Feb 2018 20:06:26 +0100 Kim Alvefur vairious: Add annotation when an empty environment is set [luacheck]
Fri, 16 Feb 2018 08:16:38 +0100 Kim Alvefur util.stanza: Change __type to __name as this is used by Lua 5.3 in some error reporting functions
Fri, 10 Nov 2017 05:42:32 +0100 Kim Alvefur util: Various minor changes to please [luacheck]
Fri, 02 Dec 2016 11:13:05 +0100 Kim Alvefur Merge 0.10->trunk
Mon, 28 Nov 2016 07:30:21 +0100 Kim Alvefur util.stanza: Add an is_stanza() function to check if an object is a stanza
Wed, 09 Mar 2016 13:19:38 +0000 Matthew Wild Merge 0.10->trunk
Wed, 09 Mar 2016 12:37:56 +0000 Matthew Wild util.stanza: Some code cleanup [luacheck]
Tue, 08 Dec 2015 23:15:42 +0000 Matthew Wild util.stanza, util.xml, util.xmppstream: Add support for tracking defined namespaces and their prefix (stanza.namespaces), knowing/preserving prefix names is required for some applications (thanks daurnimator)
Thu, 03 Sep 2015 23:39:00 +0200 Kim Alvefur util.stanza: Export xml_escape (missed during removal of module() calls)
Sat, 21 Feb 2015 10:36:37 +0100 Kim Alvefur util.*: Remove use of module() function, make all module functions local and return them in a table at the end
Sun, 26 Oct 2014 20:57:06 +0100 Kim Alvefur Merge 0.9->0.10
Fri, 24 Oct 2014 23:20:06 +0100 Matthew Wild Backout changeset 6e67c73f730c: not a major fix and it breaks interop with at least Isode M-Link, and possibly standards, while it's not clear it actually fixes the original problem either. 0.9.7
Wed, 08 Oct 2014 18:42:33 -0400 Waqas Hussain Merge 0.9->0.10
Wed, 08 Oct 2014 15:56:11 -0400 Waqas Hussain util.stanza: Escape newlines and tabs (\r\n\t) when serializing stanzas. \r\n transforms into \n otherwise, and \r\n\t in attributes transforms into spaces.
Fri, 09 Aug 2013 17:48:21 +0200 Florian Zeitz Remove all trailing whitespace
Fri, 05 Apr 2013 19:59:48 +0100 Matthew Wild util.stanza: Use correct index when replacing the tag in .tags (thanks daurnimator)
Thu, 04 Apr 2013 20:05:35 +0200 Kim Alvefur util.stanza: Add stanza:find(), a light weight XPath-like method
Wed, 03 Apr 2013 13:38:27 +0100 Matthew Wild util.stanza: :maptags(): Fixes to make loop more robust on item removal
Tue, 21 Aug 2012 15:33:07 +0200 Kim Alvefur util.stanza: Use ipairs instead of childtags (behavior changed in 92c86e11fd44)
Thu, 05 Jul 2012 17:58:47 +0200 Kim Alvefur util.stanza: Make stanza:childtags() behave like :get_child()
Sat, 28 Apr 2012 02:38:56 +0100 Matthew Wild util.stanza: Remove unused function imports
Wed, 21 Dec 2011 07:58:22 +0000 Matthew Wild util.stanza: Remove unused __add metamethod
Thu, 24 Feb 2011 02:04:56 +0000 Matthew Wild Merge 0.8->trunk
Thu, 24 Feb 2011 02:04:38 +0000 Matthew Wild util.stanza: Whitespace fix after merge (complicated)
Tue, 22 Feb 2011 07:37:52 +0000 Matthew Wild util.stanza: Remove childtags and rename matching_tags -> childtags (they are API-compatible)
Sun, 20 Feb 2011 19:16:56 +0500 Waqas Hussain util.stanza: Rewrite clone() to be more optimized.
Sat, 19 Feb 2011 02:31:06 +0000 Matthew Wild util.stanza: Clean up matching_tags() and replace :childtags() with it
Tue, 22 Feb 2011 07:37:52 +0000 Matthew Wild util.stanza: Remove childtags and rename matching_tags -> childtags (they are API-compatible)
Sun, 20 Feb 2011 19:16:56 +0500 Waqas Hussain util.stanza: Rewrite clone() to be more optimized.
Thu, 03 Feb 2011 13:13:49 +0500 Waqas Hussain util.stanza: Make some globals local, so they don't clutter the global checking script's output. It's also a minor optimization ;)
Mon, 31 Jan 2011 13:05:49 +0000 Matthew Wild util.stanza: Add get_child_text() method to get the text of the specified child element (get_child() + get_text() rolled into one step)
Fri, 17 Dec 2010 17:28:05 +0100 Kim Alvefur util.stanza: Iterate on childtags instead of all childs.
Sat, 11 Dec 2010 22:34:29 +0000 Matthew Wild util.stanza: Change get_error() to return nil rather than '' for no text
Fri, 26 Nov 2010 05:23:37 +0500 Waqas Hussain util.stanza, util.xmppstream, core.xmlhandlers: Allow stanza.last_add to be nil, and set it nil by default. Saves a table allocation per-element. 20% faster stanza building.
Tue, 21 Sep 2010 17:24:25 +0500 Waqas Hussain util.stanza: Make the current element <message> instead of <body> when body text is passed to st.message().
Mon, 30 Aug 2010 04:55:12 +0100 Matthew Wild util.stanza: stanza:matched_children() -> stanza:matching_tags()
Mon, 30 Aug 2010 04:53:41 +0100 Matthew Wild util.stanza: Add stanza:maptags() to apply a function over child tags (return nil to remove tag from stanza)
Sun, 29 Aug 2010 15:07:00 +0100 Matthew Wild util.stanza: Optimisation, remove useless if...then in stanza:children() iterator
Sun, 29 Aug 2010 15:04:34 +0100 Matthew Wild util.stanza: Add stanza:matched_children(name, xmlns) [name suggestions welcome]
Sat, 03 Apr 2010 23:09:11 +0100 Matthew Wild Merge 0.6->0.7
Thu, 01 Apr 2010 19:12:08 +0500 Waqas Hussain util.stanza: Fixed some more nil global accesses.
Thu, 01 Apr 2010 19:08:25 +0500 Waqas Hussain util.stanza: Fixed a nil global access.
Mon, 22 Mar 2010 17:24:55 +0000 Matthew Wild Merge 0.6->0.7
Mon, 22 Mar 2010 17:06:15 +0000 Matthew Wild Update copyright headers for 2010
Sun, 31 Jan 2010 19:27:52 +0000 Matthew Wild util.stanza: stanza.error_reply(): Fix to put the correct namespace on <text>
Tue, 02 Mar 2010 00:50:54 +0500 Waqas Hussain util.stanza: Fixed nil global accesses.
Sun, 31 Jan 2010 19:27:52 +0000 Matthew Wild util.stanza: stanza.error_reply(): Fix to put the correct namespace on <text>
Fri, 29 Jan 2010 14:22:03 +0000 Matthew Wild util.stanza: Add stanza:get_error() to return type, condition and text of a stanza error
Thu, 21 Jan 2010 13:22:41 +0000 Matthew Wild util.stanza: Trailing whitespace
Mon, 30 Nov 2009 16:39:27 +0000 Matthew Wild util.stanza: Add stanza:get_child(name, xmlns) to find a child tag given a name/xmlns
Thu, 12 Nov 2009 13:42:44 +0500 Waqas Hussain Changed separator between attribute names and prefixes from '|' to '\1' (optimization and cleanup).
Sat, 17 Oct 2009 19:47:01 +0100 Matthew Wild util.stanza: Don't add xmlns to tags when serializing if same as the parent tag's xmlns. Should hopefully shut up Gajim once and for all :)
Thu, 08 Oct 2009 20:06:07 +0100 Matthew Wild util.stanza: Remove silly dependency on util.logger
Tue, 06 Oct 2009 19:17:28 +0100 Matthew Wild util.stanza: Soften dependency on util.termcolours
Tue, 06 Oct 2009 18:05:31 +0100 Matthew Wild util.stanza: Make xml_escape publicly accessible
Sun, 04 Oct 2009 14:03:08 +0100 Matthew Wild util.stanza: Add __type to metatable
Fri, 10 Jul 2009 03:11:45 +0100 Matthew Wild Remove version number from copyright headers
Fri, 10 Jul 2009 02:25:14 +0100 Matthew Wild util.stanza: Convert spaces to tabs
Sat, 27 Jun 2009 08:38:52 +0500 Waqas Hussain util.stanza: Serializer optimizations, and nicer output for empty elements
Fri, 26 Jun 2009 05:54:55 +0100 Matthew Wild util.stanza: Add stanza:get_text() to retrieve all child text nodes #api
Thu, 25 Jun 2009 17:22:53 +0500 Waqas Hussain util.stanza: Rewrote stanza_mt.__tostring. 20-30% faster stanza serialization. - #optimization
Thu, 25 Jun 2009 17:19:13 +0500 Waqas Hussain util.stanza: Remove numeric attributes while deserializing
Fri, 15 May 2009 06:39:53 +0500 Waqas Hussain util.stanza: Omit unused clone parameter from error_reply()
Wed, 08 Apr 2009 20:12:40 +0100 Matthew Wild util.stanza: stanza:reset() method to reset building state
Fri, 20 Mar 2009 20:16:25 +0000 Matthew Wild 0.3->0.4
Fri, 20 Feb 2009 02:18:07 +0500 Waqas Hussain util/stanza: Added clone function
Wed, 11 Feb 2009 16:09:48 +0000 Matthew Wild util.stanza: Temporary fix for serializing attributes with namespaces
Fri, 30 Jan 2009 17:59:26 +0000 Matthew Wild Update copyright notices for 2009
Fri, 30 Jan 2009 17:40:25 +0000 Matthew Wild 0.2->0.3
Fri, 30 Jan 2009 17:22:56 +0000 Matthew Wild GPL->MIT!
less more (0) -120 tip