Skip to content

Releases: FasterSpeeding/Tan-chan

v0.4.3

24 Nov 20:01
142ada0
Compare
Choose a tag to compare

0.4.3 - 2024-11-24

Fixed

  • [tanchan.doc_parse][] now consistently supports both the typing and
    typing_extensions implementations of [typing.Unpack][] and [typing.TypedDict].

Removed

  • Support for Python 3.9 and 3.10.

v0.4.2

07 Oct 21:02
7c843a1
Compare
Choose a tag to compare

0.4.2 - 2024-10-07

Changed

  • Support for Python 3.13.

v0.4.1

28 Dec 19:27
f007573
Compare
Choose a tag to compare

0.4.1 - 2023-12-28

Added

  • Support for Python 3.12.

v0.4.0

28 Aug 03:09
0f5e498
Compare
Choose a tag to compare

0.4.0 - 2023-08-28

Added

  • Configurable and optional help commands which display information about the loaded commands. These can be loaded from tanchan.components.help.
  • Configurable and optional eval commands which let bot owners dynamically execute code in the bot's runtime. These can be loaded from tanchan.components.eval.
  • The logic and builder for a stateless Yuyo button which lets command authors delete responses. This can be loaded from tanchan.components.buttons and is used by the eval and help commands.

v0.3.1

26 Jul 22:41
6579ede
Compare
Choose a tag to compare

0.3.1 - 2023-07-26

Added

  • Support for the application command nsfw config option.

Changed

  • Bumped the minimum Tanjun version to 2.16.0.

v0.3.0

12 Mar 18:13
f0fd16a
Compare
Choose a tag to compare

0.3.0 - 2023-03-12

Changed

  • with_annotated_args will now also parse option descriptions from the docstring of the typed dict being used as an unpacked **kwargs type hint.

v0.2.2.post

04 Mar 05:22
2152a32
Compare
Choose a tag to compare

0.2.2.post - 2023-03-04

Fixed

  • SlashCommandGroup.as_sub_command now actually adds the created command to the group.

v0.2.2

03 Mar 21:53
ce69be2
Compare
Choose a tag to compare

0.2.2 - 2023-03-03

Added

  • Extended tanjun.SlashCommandGroup impl at tanchan.doc_parse.SlashCommandGroup where the name, and description parameters are now optional and introspected from the callback's docstring by default for SlashCommandGroup.as_sub_command. SlashCommandGroup.make_sub_group also returns a tanchan.doc_parse.SlashCommandGroup instance.
  • Optional description arg to tanchan.doc_parse.as_slash_command to allow overriding the introspected value.

Changed

  • tanchan.doc_parse.as_slash_command is now typed to allow decorating commands which match the abstract types in tanjun.abc, not just the standard impls.
  • A mapping of locales to values can now be passed for name to tanchan.doc_parse.as_slash_command.

v0.2.1

01 Feb 07:05
d8a494d
Compare
Choose a tag to compare

0.2.1 - 2023-02-01

Changed

  • Bumped the minimum Tanjun version to v2.11.3.
  • Updated the type-hints for tanchan.doc_parse.as_slash_command to match changes to Tanjun.

v0.2.0

07 Dec 18:35
dd16e2b
Compare
Choose a tag to compare

0.2.0 - 2022-12-07

Added

  • Support for Sphinx style reST docs to doc parse.
  • Optional name argument to tanchan.doc_parse.as_slash_command which allows overriding the command's name.

Fixed

  • tanchan.doc_parse.as_slash_command no-longer errors when the callback's docstring is just the description and doc_style is None.
  • tanchan.doc_parse.with_annotated_args now allows None to be explicitly passed to doc_style typing wise.