Skip to content

v2.2.1a1

Choose a tag to compare

@FasterSpeeding FasterSpeeding released this 30 Nov 11:55
· 737 commits to master since this release
5cb8b07

2.2.1a1 - 2021-11-30

Added

  • Concurrency limiter dependency (in a similar style to cooldowns).
  • disable_bucket method to the in-memory concurrency and cooldown manager impls.
  • any_checks/with_any_checks and all_checks/with_all_checks functions for more garnular check flow control. any_checks passes if any of the provided checks pass and all_checks passes if all the provided checks pass while both ensure the checks are run sequentially rather than concurrently.
  • as_slash_command, as_message_command and as_message_command_group now support decorating Command instances.

Changed

  • cached_inject and cache_callback now both accept float and int seconds for expire_after.
  • Owners.__init__ now accepts float and int seconds for expire_after.
  • Renamed tanjun.dependencies.owners.OwnerCheck and tanjun.dependencies.owners.AbstractOwnerCheck to Owners and AbstractOwners respectively.
  • 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_parser now errors if a parser is already set.
  • with_option and with_argument command parser decorators now implicitly set shlex parser if not set.

Removed

  • TanjunWarning and StateWarning.