Wed, 17 Aug 2022 19:04:30 +0200 util.stanza: Add method for extracting a single attribute value
Kim Alvefur <zash@zash.se> [Wed, 17 Aug 2022 19:04:30 +0200] rev 12640
util.stanza: Add method for extracting a single attribute value Sometimes you only care about a single attribute, but the child tag itself may be optional, leading to needing `tag and tag.attr.foo` or `stanza:find("tag@foo")`. The `:find()` method is fairly complex, so avoiding it for this kind of simpler use case is a win.
Mon, 15 Aug 2022 16:35:14 +0200 mod_time: Remove obsolete XEP-0090 support
Kim Alvefur <zash@zash.se> [Mon, 15 Aug 2022 16:35:14 +0200] rev 12639
mod_time: Remove obsolete XEP-0090 support Deprecated even before Prosody even started, obsolete for over a decade.
Wed, 17 Aug 2022 18:41:35 +0200 util.datetime: Update Teal interface description
Kim Alvefur <zash@zash.se> [Wed, 17 Aug 2022 18:41:35 +0200] rev 12638
util.datetime: Update Teal interface description Integers were required before, now any number should work.
Wed, 17 Aug 2022 18:07:31 +0200 util.datetime: Remove a line
Kim Alvefur <zash@zash.se> [Wed, 17 Aug 2022 18:07:31 +0200] rev 12637
util.datetime: Remove a line No idea why the locals were declared on a line by itself. Perhaps line length considerations? But saving 6 characters in width by adding a whole line with 47 characters seems excessive. This is still within the 150 character limit set by .luacheckrc
Sun, 14 Aug 2022 17:47:13 +0200 mod_time: Return sub-second precision timestamps
Kim Alvefur <zash@zash.se> [Sun, 14 Aug 2022 17:47:13 +0200] rev 12636
mod_time: Return sub-second precision timestamps Because why not? Who even has this module enabled?
Sun, 14 Aug 2022 17:29:39 +0200 mod_storage_sql: Drop archive timestamp precision pending schema update
Kim Alvefur <zash@zash.se> [Sun, 14 Aug 2022 17:29:39 +0200] rev 12635
mod_storage_sql: Drop archive timestamp precision pending schema update The "when" column is an INTEGER which will probably be unhappy about storing higher precision timestamps, so we keep the older behavior for now.
Sun, 14 Aug 2022 17:28:31 +0200 mod_mam: Store archives with sub-second precision timestamps
Kim Alvefur <zash@zash.se> [Sun, 14 Aug 2022 17:28:31 +0200] rev 12634
mod_mam: Store archives with sub-second precision timestamps Changes sub-second part of example timestamp to .5 in order to avoid floating point issues. Some clients use timestamps when ordering messages which can lead to messages having the same timestamp ending up in the wrong order. It would be better to preserve the order messages are sent in, which is the order they were stored in.
Sun, 14 Aug 2022 16:57:31 +0200 util.datetime: Add support for sub-second precision timestamps
Kim Alvefur <zash@zash.se> [Sun, 14 Aug 2022 16:57:31 +0200] rev 12633
util.datetime: Add support for sub-second precision timestamps Lua since 5.3 raises a fuss when time functions are handed a number with a fractional part and the underlying C functions are all based on integer seconds without support for more precision.
Sun, 14 Aug 2022 16:51:10 +0200 util.datetime: Fix argument order in tests
Kim Alvefur <zash@zash.se> [Sun, 14 Aug 2022 16:51:10 +0200] rev 12632
util.datetime: Fix argument order in tests The expected value goes first.
Wed, 10 Aug 2022 15:12:00 +0200 util.signal: Fix name conflict in Teal interface declaration
Kim Alvefur <zash@zash.se> [Wed, 10 Aug 2022 15:12:00 +0200] rev 12631
util.signal: Fix name conflict in Teal interface declaration
(0) -10000 -3000 -1000 -300 -100 -10 +10 +100 +300 tip