v2.2.1a1
·
737 commits
to master
since this release
2.2.1a1 - 2021-11-30
Added
- Concurrency limiter dependency (in a similar style to cooldowns).
disable_bucketmethod to the in-memory concurrency and cooldown manager impls.any_checks/with_any_checksandall_checks/with_all_checksfunctions for more garnular check flow control.any_checkspasses if any of the provided checks pass andall_checkspasses if all the provided checks pass while both ensure the checks are run sequentially rather than concurrently.as_slash_command,as_message_commandandas_message_command_groupnow support decorating Command instances.
Changed
cached_injectandcache_callbacknow both acceptfloatandintseconds forexpire_after.Owners.__init__now acceptsfloatandintseconds forexpire_after.- Renamed
tanjun.dependencies.owners.OwnerCheckandtanjun.dependencies.owners.AbstractOwnerChecktoOwnersandAbstractOwnersrespectively. InMemoryConcurrencyLimiter.set_bucket's parameters are now positional only.- Updated application command name and option name checking to allow for all unicode \w characters rather than just ASCII.
@with_parsernow errors if a parser is already set.with_optionandwith_argumentcommand parser decorators now implicitly set shlex parser if not set.
Removed
TanjunWarningandStateWarning.