log core/moduleapi.lua @ 13498:aefbc76ac8d2

age author description
Thu, 30 Nov 2023 13:43:23 +0000 Matthew Wild moduleapi: Log error message when ambiguous period spec is found in config
Thu, 30 Nov 2023 10:07:53 +0000 Matthew Wild moduleapi: Rename :once() to :on_ready() for clarity
Tue, 07 Nov 2023 11:53:57 +0000 Matthew Wild moduleapi: may(): Support explicit actor_jid in context object
Sat, 22 Jul 2023 12:08:01 +0200 Kim Alvefur core.moduleapi: Parse period min/max arguments
Mon, 17 Jul 2023 02:32:47 +0200 Kim Alvefur core.moduleapi: Fix min/maxinteger fallback for Lua 5.2
Mon, 17 Jul 2023 00:37:44 +0200 Kim Alvefur core.moduleapi: Add min/max range support to :get_option_period
Mon, 17 Jul 2023 00:09:41 +0200 Kim Alvefur moduleapi: Add :get_option_integer()
Sun, 16 Jul 2023 21:04:42 +0200 Kim Alvefur core.moduleapi: Accept boolean false to disable period setting
Sun, 16 Jul 2023 21:02:24 +0200 Kim Alvefur core.moduleapi: Log error for unexpected types (booleans?) set as periods
Sun, 16 Jul 2023 21:01:31 +0200 Kim Alvefur core.moduleapi: Turn negative periods or "never" into infinity
Sun, 16 Jul 2023 20:59:27 +0200 Kim Alvefur core.moduleapi: Improve handling of different types in :get_option_period
Sun, 16 Jul 2023 19:49:12 +0200 Kim Alvefur core.moduleapi: Add :get_option_period for parsing time intervals
Tue, 05 Oct 2021 15:36:38 +0200 Kim Alvefur core.moduleapi: Allow specifying an acceptable range for number options
Sat, 16 Jan 2021 20:40:14 +0100 Kim Alvefur moduleapi: Add enum config option method
Sat, 01 Apr 2023 12:30:29 +0100 Matthew Wild moduleapi: Add luacheck annotation to suppress warning about unused self
Sat, 01 Apr 2023 11:59:50 +0100 Matthew Wild moduleapi: Add module:once() to execute a function after module load/startup
Sun, 26 Mar 2023 14:06:04 +0100 Matthew Wild moduleapi: Add 'peek' to :may() and new :could() helper to suppress logging
Sat, 25 Mar 2023 19:38:41 +0000 Matthew Wild moduleapi: may: Fail early if a local session has no role assigned
Fri, 17 Mar 2023 16:23:07 +0100 Kim Alvefur core: Prefix module imports with prosody namespace
Sun, 05 Mar 2023 14:07:08 +0100 Kim Alvefur core.moduleapi: Record reverse dependencies
Tue, 31 Jan 2023 07:48:21 +0100 Kim Alvefur core.moduleapi: Fix passing variable to logging
Mon, 29 Aug 2022 11:47:31 +0200 Kim Alvefur core.moduleapi: Check for local role-aware sessions before e.g. s2s
Wed, 17 Aug 2022 16:38:53 +0100 Matthew Wild mod_authz_internal, and more: New iteration of role API
Wed, 20 Jul 2022 13:08:07 +0200 Kim Alvefur moduleapi: Stricter type check for actor in permission check
Wed, 20 Jul 2022 13:07:04 +0200 Kim Alvefur moduleapi: Remove redundant expansion of ':' prefix in permission names
Wed, 20 Jul 2022 13:05:35 +0200 Kim Alvefur moduleapi: Distribute permissions set from global modules to all hosts
Wed, 15 Jun 2022 23:04:17 +0200 Kim Alvefur core.moduleapi: Expand permission name ':' prefix earlier
Wed, 15 Jun 2022 23:03:15 +0200 Kim Alvefur core.moduleapi: Fixup method name
Wed, 15 Jun 2022 12:15:01 +0100 Matthew Wild Switch to a new role-based authorization framework, removing is_admin()
Mon, 11 Jul 2022 19:15:24 +0200 Kim Alvefur compat: Use table.pack (there since Lua 5.2) over our util.table
Mon, 11 Jul 2022 19:07:38 +0200 Kim Alvefur compat: Remove handling of Lua 5.1 location of 'unpack' function
Wed, 27 Apr 2022 17:18:46 +0200 Kim Alvefur core.moduleapi: Fix 'global' property via :context() - #1748 0.12
Fri, 04 Feb 2022 14:11:46 +0000 Matthew Wild modulemanager, moduleapi: Switch to new pluginloader interface
Wed, 22 Dec 2021 14:40:42 +0000 Matthew Wild moduleapi: Support stripping of multi-word from module names
Fri, 03 Dec 2021 09:05:41 +0100 Kim Alvefur mod_cron: Add a 'weekly' job frequency
Sun, 21 Nov 2021 18:13:21 +0100 Kim Alvefur core.moduleapi: Add API for adding daily or hourly tasks via mod_cron
Wed, 24 Nov 2021 20:03:38 +0100 Kim Alvefur mod_admin_shell: List collected metrics in module:info
Thu, 18 Nov 2021 16:26:54 +0100 Kim Alvefur core.moduleapi: Fix name of renamed API in log message
Fri, 24 Sep 2021 20:26:21 +0200 Kim Alvefur core.moduleapi: Ensure module:send_iq() handler priority over mod_iq
Fri, 24 Sep 2021 20:17:31 +0200 Kim Alvefur core.moduleapi: Enable full JID origin queries with module:send_iq()
Fri, 24 Sep 2021 20:12:16 +0200 Kim Alvefur core.moduleapi: Filter out unrelated direct replies to module:send_iq
Sun, 18 Apr 2021 11:47:41 +0200 Jonas Schäfer Statistics: Rewrite statistics backends to use OpenMetrics
Fri, 09 Oct 2020 16:37:15 +0200 Kim Alvefur core.moduleapi: Return resource path from module:get_directory() (API BC)
Wed, 07 Oct 2020 16:10:51 +0200 Kim Alvefur core.moduleapi: Use resource path for :load_resource()
Fri, 04 Jan 2019 07:00:45 +0100 Kim Alvefur core.moduleapi: Allow passing a config table trough :measure
Wed, 01 Apr 2020 22:32:50 +0200 Kim Alvefur moduleapi: Rename argument to silence luacheck
Sun, 22 Mar 2020 22:32:26 +0100 Kim Alvefur moduleapi: Fix handling of replies to :send_iq from internal modules
Thu, 16 Jan 2020 16:30:26 +0100 Kim Alvefur core.moduleapi: Hook correct event type in some cases
Mon, 30 Dec 2019 09:54:49 +0100 Kim Alvefur core.moduleapi: Rename local name for util.error for consistency
Mon, 30 Dec 2019 09:53:10 +0100 Kim Alvefur core.moduleapi: Fix error context in :send_iq API
Wed, 21 Aug 2019 23:18:08 +0200 Kim Alvefur core.moduleapi: Restructure send_iq method for more atomic cleanup
Wed, 21 Aug 2019 23:15:05 +0200 Kim Alvefur core.moduleapi: Uppercase "IQ stanza" for consistency
Tue, 26 Mar 2019 17:22:56 +0000 Matthew Wild moduleapi: Log suppressed status priority and message when not overriding
Tue, 26 Mar 2019 17:22:25 +0000 Matthew Wild moduleapi: Remove overly-verbose debug logging on module status change
Tue, 19 Mar 2019 09:04:40 +0000 Matthew Wild moduleapi: New API for modules to set a status
Sun, 30 Dec 2018 20:35:20 +0100 Kim Alvefur core.moduleapi: Use convenience function for creating error object from stanza
Sun, 30 Dec 2018 16:03:15 +0100 Kim Alvefur core.moduleapi: Use util.error for :send_iq errors
Sun, 30 Dec 2018 14:26:58 +0100 Kim Alvefur core.moduleapi: Move util imports to top
Fri, 28 Dec 2018 20:51:31 +0100 Kim Alvefur core.moduleapi: Add a promise-based API for tracking IQ stanzas (fixes #714)
Sat, 08 Dec 2018 16:35:00 +0100 Kim Alvefur moduleapi: Use pack from util.table
Thu, 25 Oct 2018 17:11:10 +0200 Kim Alvefur moduleapi: Prevent loading disabled module as dependency of enabled one
Thu, 18 Oct 2018 00:49:29 +0200 Kim Alvefur core.moduleapi: Remove redundant condition
Wed, 08 Aug 2018 08:19:01 +0100 Matthew Wild moduleapi: Remove multiple-parameters feature from module:shared()
Sat, 14 Jul 2018 21:25:34 +0200 Kim Alvefur moduleapi: Use :send API from :broadcast for compactness
Sat, 07 Jul 2018 21:55:18 +0200 Kim Alvefur moduleapi: Lazy-load statsmanager on demand
Sat, 07 Jul 2018 21:55:00 +0200 Kim Alvefur moduleapi: Lazy-load configmanager on demand simplify dependency graph
Fri, 23 Feb 2018 17:11:59 +0100 Kim Alvefur moduleapi: Remove unused and undocumented :has_feature and :has_identity
Wed, 27 Dec 2017 00:42:57 +0100 Kim Alvefur moduleapi: Warn if a module being loaded as a dependency has been disabled
Thu, 16 Mar 2017 23:49:27 +0100 Kim Alvefur Merge 0.10->trunk
Wed, 15 Mar 2017 15:07:16 +0100 Kim Alvefur core.moduleapi: Factor out code for getting a scalar config option
Mon, 06 Mar 2017 01:14:32 +0100 Kim Alvefur Merge 0.10->trunk
Sat, 04 Mar 2017 17:49:48 +0100 Kim Alvefur core: Split some very long lines [luacheck]
Wed, 31 Aug 2016 16:25:21 +0100 Matthew Wild Merge 0.10->trunk
Wed, 31 Aug 2016 16:10:16 +0100 Matthew Wild moduleapi: 'duration' became 'times'
Thu, 07 Apr 2016 13:36:58 +0200 Kim Alvefur Merge 0.10->trunk
Wed, 06 Apr 2016 21:29:30 +0200 Kim Alvefur moduleapi: Allow an origin session to be passed to module:send()
Thu, 18 Feb 2016 15:00:17 +0100 Kim Alvefur Merge 0.10->trunk
Thu, 18 Feb 2016 14:57:51 +0100 Kim Alvefur loggingmanager,modulemanager,moduleapi: Ignore warning about accessing _G.unpack [luacheck]
Thu, 18 Feb 2016 14:57:04 +0100 Kim Alvefur loggingmanager,modulemanager,moduleapi: Localize unpack compatible with Lua 5.2+
Fri, 05 Feb 2016 00:10:27 +0000 Matthew Wild moduleapi: Silence luacheck warning about unused 'id' parameter
Fri, 05 Feb 2016 00:04:11 +0000 Matthew Wild Merge 0.10->trunk
Thu, 04 Feb 2016 10:05:35 +0100 Kim Alvefur moduleapi: Add API method for getting a file path
Mon, 01 Feb 2016 21:28:07 +0000 Matthew Wild Merge 0.10->trunk
Mon, 01 Feb 2016 21:26:15 +0000 Matthew Wild modulemanager, util.pluginloader: Move logic for locating some module libraries to pluginloader, to fix problems with non-filesystem errors being masked by the second load_code call
Thu, 20 Aug 2015 13:05:22 +0200 Kim Alvefur Merge 0.10->trunk
Sat, 21 Feb 2015 10:42:19 +0100 Kim Alvefur core.*: Remove use of module() function
Wed, 06 May 2015 19:26:53 +0100 Matthew Wild Merge 0.10->trunk
Wed, 06 May 2015 19:11:27 +0100 Matthew Wild moduleapi: Import util.stanza required for module:broadcast()
Wed, 06 May 2015 19:02:44 +0100 Matthew Wild moduleapi: Add luacheck annotation
Wed, 06 May 2015 19:02:07 +0100 Matthew Wild moduleapi: Minor variable renaming to avoid clashes with the 'type' function
Wed, 06 May 2015 19:01:16 +0100 Matthew Wild moduleapi: Clear self.event_handlers when unhooking an event, to prevent leaks
Wed, 06 May 2015 19:00:05 +0100 Matthew Wild moduleapi: module:measure_event(), module:measure_global_event(): Fix copy/paste error
Wed, 06 May 2015 18:58:29 +0100 Matthew Wild moduleapi: Remove accidental use of undefined and unnecessary 'priority' variable
Wed, 06 May 2015 18:37:46 +0100 Matthew Wild moduleapi: Add module:broadcast() to send a stanza to a list of JIDs
Sun, 03 May 2015 18:39:27 +0200 Kim Alvefur Merge 0.10->trunk
Tue, 28 Apr 2015 14:18:43 +0100 Matthew Wild moduleapi: New methods for modules to conveniently wrap events
Tue, 28 Apr 2015 13:52:07 +0100 Matthew Wild moduleapi: Experimental API for modules to measure the rate+duration of events
Wed, 21 Jan 2015 01:29:00 +0000 Matthew Wild Merge 0.10->trunk
Wed, 21 Jan 2015 01:28:12 +0000 Matthew Wild moduleapi: Module API for statsmanager
Tue, 23 Sep 2014 01:44:16 +0200 Kim Alvefur Merge 0.10->trunk
Tue, 23 Sep 2014 00:23:33 +0200 Kim Alvefur core.module{manager,api}: Fix for 010b141e91ed (Thanks v1ct0r)
Thu, 18 Sep 2014 02:22:48 +0200 Kim Alvefur Merge 0.10->trunk
Wed, 17 Sep 2014 14:48:49 +0200 Kim Alvefur core.modulemanager, core.moduleapi: Hack around dependency loop
Wed, 17 Sep 2014 14:47:52 +0200 Kim Alvefur core.moduleapi: Use require instead of global to get storagemanager in module:open_store()
Fri, 09 May 2014 23:35:54 +0200 Kim Alvefur Merge 0.10->trunk
Fri, 09 May 2014 19:35:29 +0200 Kim Alvefur core.certmanager, core.moduleapi, mod_storage_sql, mod_storage_sql2: Import from util.paths
Wed, 06 Nov 2013 14:38:51 -0500 Waqas Hussain core.moduleapi: Fix some global accesses.
Wed, 06 Nov 2013 12:56:35 -0500 daurnimator core/moduleapi: Return timer object from module:add_timer
Mon, 16 Sep 2013 18:41:09 +0100 Matthew Wild moduleapi: Add module:unhook()
Fri, 09 Aug 2013 17:48:21 +0200 Florian Zeitz Remove all trailing whitespace
Tue, 06 Aug 2013 17:17:23 +0100 Matthew Wild moduleapi: module:get_host_type() now returns 'global' for * and 'local' for non-components
Sat, 27 Apr 2013 19:44:37 +0200 Kim Alvefur moduleapi: in module:provides(), add the name of the module in item._provided_by
Sat, 27 Apr 2013 19:14:22 +0200 Kim Alvefur moduleapi: module:provides called without an item makes a copy of the environment instead. Fixes warnings about non-existent globals
Sat, 27 Apr 2013 14:59:00 +0100 Matthew Wild moduleapi: Add module:get_option_inherited_set() to return a set that inherits items from a globally set set, if set
Sat, 27 Apr 2013 14:57:24 +0100 Matthew Wild moduleapi: Add module:context(host) to produce a fake API context for a given host (or global). module:context("*"):get_option("foo") to get global options.
Fri, 19 Apr 2013 14:42:32 +0200 Kim Alvefur moduleapi: Make module:open_store() open a store named after the calling module by default
Fri, 19 Apr 2013 13:29:47 +0100 Matthew Wild moduleapi: Add module:open_store() as a front-end to storagemanager.open()
Fri, 05 Apr 2013 19:13:46 +0100 Matthew Wild moduleapi: assert() that prosody.core_post_stanza is not nil
Mon, 01 Apr 2013 23:44:28 +0000 Marco Cirillo moduleapi: have get_host_items wrap on get_items from modulemanager, also add has_{feature/identity} to the API.
Sat, 23 Mar 2013 02:33:15 +0100 Kim Alvefur core.*: Complete removal of all traces of the "core" section and section-related code.
Sat, 29 Sep 2012 17:07:08 +0100 Matthew Wild moduleapi: Revert previous commit and add comment, it's meant to be this way
Sat, 29 Sep 2012 10:46:03 +0100 Matthew Wild moduleapi: Fix require of modulemanager (thanks mva!)
Fri, 03 Aug 2012 14:07:41 +0100 Matthew Wild moduleapi: Clarify comment
Mon, 30 Jul 2012 00:40:02 +0100 Matthew Wild moduleapi: If path name ends with '-cache' create table as weak (keys and values)
Sat, 28 Jul 2012 01:14:31 +0100 Matthew Wild Merge with Florob
Fri, 08 Jun 2012 05:04:38 +0200 Florian Zeitz Eliminate direct setfenv usage
Thu, 19 Jul 2012 15:35:07 +0100 Matthew Wild moduleapi: Remove unused import of util.multitable
Sat, 19 May 2012 15:39:16 +0100 Matthew Wild modulemanager, moduleapi: Turn module.event_handlers into a multitable and track object->event->handler associations correctly (thanks Zash)
Fri, 18 May 2012 23:53:02 +0100 Matthew Wild moduleapi, modulemanager: Re-structure module.event_handlers so that the same handler can harmlessly handle multiple events (thanks Zash)
Fri, 11 May 2012 18:55:23 +0100 Matthew Wild moduleapi: Don't auto-reload self when already reloading (fixes reload of modules with cyclic dependencies)
Sat, 28 Apr 2012 19:41:04 +0100 Matthew Wild moduleapi: Add module:get_directory() to get module file's directory, and module:load_resource() to load a file relative to that directory
Sat, 28 Apr 2012 02:40:36 +0100 Matthew Wild moduleapi: Import util.timer
Sat, 28 Apr 2012 02:24:41 +0100 Matthew Wild moduleapi: Remove unused variable 'module_items'
Fri, 27 Apr 2012 18:35:33 +0100 Matthew Wild moduleapi: Rename module:hook_stanza() -> module:hook_tag() (hook_stanza works for compat)
Fri, 27 Apr 2012 18:34:40 +0100 Matthew Wild moduleapi: get_host_type(): Return nil for global modules (no host)
Thu, 26 Apr 2012 14:51:55 +0100 Matthew Wild moduleapi: Fix parameters to unhook_object_event()
Thu, 26 Apr 2012 07:04:59 +0100 Matthew Wild moduleapi: module:depends(): Don't load shared modules onto the current host if the current host is '*'...
Thu, 26 Apr 2012 05:39:27 +0100 Matthew Wild moduleapi: Add module:unhook_object_event()
Mon, 23 Apr 2012 15:38:40 +0100 Matthew Wild moduleapi: Add module:add_timer(delay, callback) - automatically halts the timer on module unload
Mon, 23 Apr 2012 14:15:07 +0100 Matthew Wild moduleapi: module:depends(): Load shared modules onto the current host even if they are loaded globally already
Mon, 23 Apr 2012 14:10:04 +0100 Matthew Wild moduleapi: module:provides(): Add "-provider" onto the key name
Mon, 23 Apr 2012 14:09:35 +0100 Matthew Wild moduleapi: module:provides(): Fix usage of wrong table
Sat, 21 Apr 2012 22:52:15 +0100 Matthew Wild moduleapi: Have modules internally store a reference to shared tables they use, to ensure they don't get collected while any module that had access to that table is still loaded (thanks Zash)
Thu, 15 Mar 2012 02:53:05 +0000 Matthew Wild moduleapi: Add module:send() as an alias for core_post_stanza() from the current host's origin
Thu, 15 Mar 2012 02:52:31 +0000 Matthew Wild moduleapi: Add module:provides(), a shortcut to add an item with the current module's name
Wed, 14 Mar 2012 21:33:15 +0000 Matthew Wild moduleapi: Set module.global = true when module:set_global() is called
Sun, 22 Jan 2012 19:48:53 +0000 Matthew Wild moduleapi: Add module:shared(), a way to easily share data between multiple loaded modules
Sun, 22 Jan 2012 19:35:50 +0000 Matthew Wild moduleapi: Add module:depends(), a way to safely depend upon another module at runtime
Sun, 22 Jan 2012 18:49:11 +0000 Matthew Wild modulemanager, moduleapi: Replace hooks multitable with an event_handlers map stored in individual modules. Also adds module:hook_object_event() to hook events on any util.events compatible object.
Sun, 22 Jan 2012 18:41:55 +0000 Matthew Wild modulemanager: Move in-module API functions to core.moduleapi (half the file size, yay)