Log

util/stanza.lua @ 11761:dbf378dcf27b

description author age
util.stanza: Export pretty printing function Kim Alvefur 2021-06-29
util.stanza: Simplify and make pretty-printing look nicer Kim Alvefur 2020-11-07
util.stanza: Remove Windows "support" (disabling ANSI color pretty printing) Kim Alvefur 2020-11-07
util.stanza: add at_top helper Jonas Schäfer 2021-05-08
Merge 0.11->trunk Kim Alvefur 2021-01-08
util.stanza: Move misplaced argument to correct place 0.11 Kim Alvefur 2020-12-24
Merge 0.11->trunk Kim Alvefur 2020-11-11
util.stanza: Reject ASCII control characters (fixes #1606) 0.11 Kim Alvefur 2020-11-11
util.stanza: Extract Application-Specific Condition from errors Kim Alvefur 2020-09-26
util.stanza: Support Application-Specific Conditions in util.error Kim Alvefur 2020-09-26
util.stanza: Get 'by' from context instead Kim Alvefur 2020-09-26
util.stanza: Support inclusion of <gone> URI from util.error object Kim Alvefur 2020-09-26
util.stanza: Support getting 'by' from util.error object Kim Alvefur 2020-09-26
util.stanza: Reorder code to prepare for extracting 'by' from util.error Kim Alvefur 2020-09-26
util.stanza: Add method returning stanza with added indentation Kim Alvefur 2020-04-12
util.stanza: Accept util.error object to error_reply Kim Alvefur 2019-12-14
util.stanza: Support the 'by' attribute on errors Kim Alvefur 2019-11-25
util.stanza: Check that argument to error_reply is NOT a stanza of type error Kim Alvefur 2019-11-25
util.stanza: Check that argument to error_reply is a stanza Kim Alvefur 2019-11-25
util.stanza: Remove redundant check for attrs Kim Alvefur 2019-11-25
util.stanza: Check that argument to reply is a stanza Kim Alvefur 2019-11-25
util.stanza: Use :text_tag internally everywhere Kim Alvefur 2019-08-02
util.stanza: Fix :top_tag() handling of namespaced attributes Matthew Wild 2019-03-25
util.stanza: Require a type attribute for iq stanzas Kim Alvefur 2018-12-28
util.stanza: Deserialize stanza without mutating input (fixes #711) 0.11 Kim Alvefur 2018-12-01
util.stanza: Validate input to clone() (with brief tests) 0.11 Kim Alvefur 2018-11-17
util.stanza: Set preserialize as freeze metamethod Kim Alvefur 2018-10-11
util.stanza: Don't automatically generate ids for iq stanzas Matthew Wild 2018-09-13
util.stanza + tests: Bail out of loop if we are iterating too far, fixes #981 Matthew Wild 2018-08-19
Merge 0.10->trunk Kim Alvefur 2018-07-08
util.stanza: Add method for removing all children with a specific name, xmlns Kim Alvefur 2018-07-08
util.stanza: Remove redundant check from :text now done in :add_direct_child Kim Alvefur 2018-06-08
util.stanza: Verify that other objects added as children are valid strings Kim Alvefur 2018-06-08
util.stanza: Verify that child tags added are really stanzas (closes #1165) Kim Alvefur 2018-06-08
util.stanza: Add :text_tag(), a shortcut for adding nodes with text Kim Alvefur 2018-03-21
util.stanza: Allow :text(nil) and :text("") as harmless nops Matthew Wild 2018-03-21
util.stanza: Switch from asserts to if's, improve performance, errors and tests Matthew Wild 2018-03-18
util.stanza: Add stricter validation for data passed to stanza builder API Matthew Wild 2018-03-16
vairious: Add annotation when an empty environment is set [luacheck] Kim Alvefur 2018-02-28
util.stanza: Change __type to __name as this is used by Lua 5.3 in some error reporting functions Kim Alvefur 2018-02-16
util: Various minor changes to please [luacheck] Kim Alvefur 2017-11-10
Merge 0.10->trunk Kim Alvefur 2016-12-02
util.stanza: Add an is_stanza() function to check if an object is a stanza Kim Alvefur 2016-11-28
Merge 0.10->trunk Matthew Wild 2016-03-09
util.stanza: Some code cleanup [luacheck] Matthew Wild 2016-03-09
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) Matthew Wild 2015-12-08
util.stanza: Export xml_escape (missed during removal of module() calls) Kim Alvefur 2015-09-03
util.*: Remove use of module() function, make all module functions local and return them in a table at the end Kim Alvefur 2015-02-21
Merge 0.9->0.10 Kim Alvefur 2014-10-26
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 Matthew Wild 2014-10-24
Merge 0.9->0.10 Waqas Hussain 2014-10-08
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. Waqas Hussain 2014-10-08
Remove all trailing whitespace Florian Zeitz 2013-08-09
util.stanza: Use correct index when replacing the tag in .tags (thanks daurnimator) Matthew Wild 2013-04-05
util.stanza: Add stanza:find(), a light weight XPath-like method Kim Alvefur 2013-04-04
util.stanza: :maptags(): Fixes to make loop more robust on item removal Matthew Wild 2013-04-03
util.stanza: Use ipairs instead of childtags (behavior changed in 92c86e11fd44) Kim Alvefur 2012-08-21
util.stanza: Make stanza:childtags() behave like :get_child() Kim Alvefur 2012-07-05
util.stanza: Remove unused function imports Matthew Wild 2012-04-28
util.stanza: Remove unused __add metamethod Matthew Wild 2011-12-21
Merge 0.8->trunk Matthew Wild 2011-02-24
util.stanza: Whitespace fix after merge (complicated) Matthew Wild 2011-02-24
util.stanza: Remove childtags and rename matching_tags -> childtags (they are API-compatible) Matthew Wild 2011-02-22
util.stanza: Rewrite clone() to be more optimized. Waqas Hussain 2011-02-20
util.stanza: Clean up matching_tags() and replace :childtags() with it Matthew Wild 2011-02-19
util.stanza: Remove childtags and rename matching_tags -> childtags (they are API-compatible) Matthew Wild 2011-02-22
util.stanza: Rewrite clone() to be more optimized. Waqas Hussain 2011-02-20
util.stanza: Make some globals local, so they don't clutter the global checking script's output. It's also a minor optimization ;) Waqas Hussain 2011-02-03
util.stanza: Add get_child_text() method to get the text of the specified child element (get_child() + get_text() rolled into one step) Matthew Wild 2011-01-31
util.stanza: Iterate on childtags instead of all childs. Kim Alvefur 2010-12-17
util.stanza: Change get_error() to return nil rather than '' for no text Matthew Wild 2010-12-11
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. Waqas Hussain 2010-11-26
util.stanza: Make the current element <message> instead of <body> when body text is passed to st.message(). Waqas Hussain 2010-09-21
util.stanza: stanza:matched_children() -> stanza:matching_tags() Matthew Wild 2010-08-30
util.stanza: Add stanza:maptags() to apply a function over child tags (return nil to remove tag from stanza) Matthew Wild 2010-08-30
util.stanza: Optimisation, remove useless if...then in stanza:children() iterator Matthew Wild 2010-08-29
util.stanza: Add stanza:matched_children(name, xmlns) [name suggestions welcome] Matthew Wild 2010-08-29
Merge 0.6->0.7 Matthew Wild 2010-04-03
util.stanza: Fixed some more nil global accesses. Waqas Hussain 2010-04-01
util.stanza: Fixed a nil global access. Waqas Hussain 2010-04-01
Merge 0.6->0.7 Matthew Wild 2010-03-22
Update copyright headers for 2010 Matthew Wild 2010-03-22
util.stanza: stanza.error_reply(): Fix to put the correct namespace on <text> Matthew Wild 2010-01-31
util.stanza: Fixed nil global accesses. Waqas Hussain 2010-03-01
util.stanza: stanza.error_reply(): Fix to put the correct namespace on <text> Matthew Wild 2010-01-31
util.stanza: Add stanza:get_error() to return type, condition and text of a stanza error Matthew Wild 2010-01-29
util.stanza: Trailing whitespace Matthew Wild 2010-01-21
util.stanza: Add stanza:get_child(name, xmlns) to find a child tag given a name/xmlns Matthew Wild 2009-11-30
Changed separator between attribute names and prefixes from '|' to '\1' (optimization and cleanup). Waqas Hussain 2009-11-12
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 :) Matthew Wild 2009-10-17
util.stanza: Remove silly dependency on util.logger Matthew Wild 2009-10-08
util.stanza: Soften dependency on util.termcolours Matthew Wild 2009-10-06
util.stanza: Make xml_escape publicly accessible Matthew Wild 2009-10-06
util.stanza: Add __type to metatable Matthew Wild 2009-10-04
Remove version number from copyright headers Matthew Wild 2009-07-10
util.stanza: Convert spaces to tabs Matthew Wild 2009-07-10
util.stanza: Serializer optimizations, and nicer output for empty elements Waqas Hussain 2009-06-27
util.stanza: Add stanza:get_text() to retrieve all child text nodes #api Matthew Wild 2009-06-26
util.stanza: Rewrote stanza_mt.__tostring. 20-30% faster stanza serialization. - #optimization Waqas Hussain 2009-06-25
util.stanza: Remove numeric attributes while deserializing Waqas Hussain 2009-06-25
util.stanza: Omit unused clone parameter from error_reply() Waqas Hussain 2009-05-15
util.stanza: stanza:reset() method to reset building state Matthew Wild 2009-04-08
0.3->0.4 Matthew Wild 2009-03-20
util/stanza: Added clone function Waqas Hussain 2009-02-19
util.stanza: Temporary fix for serializing attributes with namespaces Matthew Wild 2009-02-11
Update copyright notices for 2009 Matthew Wild 2009-01-30
0.2->0.3 Matthew Wild 2009-01-30
GPL->MIT! Matthew Wild 2009-01-30
Add child_with_ns() method to stanza elements, and fix child_with_name() to iterate tags rather than all children Matthew Wild 2009-01-11
Restore fix for missing last_add on deserialized stanzas. Thanks to tsing for discovering. Matthew Wild 2009-01-09
Merge from waqas Matthew Wild 2008-12-16
Optimized stanza_mt.__tostring (called when doing tostring(stanza)) Waqas Hussain 2008-12-10
0.1 -> 0.2 Matthew Wild 2008-12-10
New, faster, stanza serialization Matthew Wild 2008-12-10
Insert copyright/license headers Matthew Wild 2008-12-03
Add helper function for adding message bodies to stanzas Matthew Wild 2008-11-22
Don't forget to escape XML in attributes. Thanks to the Postgres Q&amp;A room on conference.jabber.org :) Matthew Wild 2008-11-19
A treat for Linux users ;) Matthew Wild 2008-11-14
Merge from waqas Matthew Wild 2008-11-13
Fixed stanza deserialization Waqas Hussain 2008-11-13