2020-02-24 10:12:33 +01:00
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog ](https://keepachangelog.com/en/1.0.0/ ),
and this project adheres to [Semantic Versioning ](https://semver.org/spec/v2.0.0.html ).
2022-02-05 16:36:47 +01:00
## unreleased
2022-09-04 14:15:25 +02:00
### Removed
- Remove `derive(DialogueState)` macro
### Changed
2022-10-03 18:54:05 +02:00
- `#[command(rename = "...")]` now always renames to `"..."` , to rename multiple commands using the same pattern, use `#[command(rename_rule = "snake_case")]` and the like.
2022-10-06 12:18:29 +02:00
- `#[command(parse_with = ...)]` now requires a path, instead of a string, when specifying custom parsers
2022-09-04 14:15:25 +02:00
2022-07-19 17:56:59 +02:00
## 0.6.3 - 2022-07-19
2022-07-19 17:19:34 +02:00
### Fixed
- Allow specifying a path to a command handler in `parse_with` ([PR #27 ](https://github.com/teloxide/teloxide-macros/pull/27)).
2022-05-26 20:07:32 +02:00
## 0.6.2 - 2022-05-27
2022-05-26 20:06:24 +02:00
### Fixed
- Fix `#[command(rename = "...")]` for custom command names ([issue 633](https://github.com/teloxide/teloxide/issues/633)).
2022-04-25 22:12:22 +02:00
## 0.6.1 - 2022-04-26
### Fixed
- Fix `#[derive(DialogueState)]` (function return type `dptree::Handler` ).
2022-04-08 22:27:26 +02:00
## 0.6.0 - 2022-04-09
2022-03-24 12:40:30 +01:00
### Removed
2022-04-08 22:27:26 +02:00
- Support for the old dispatching: `#[teloxide(subtransition)]` [**BC**].
2022-03-24 12:40:30 +01:00
2022-04-07 20:09:57 +02:00
### Deprecated
- `#[derive(DialogueState)]` in favour of `teloxide::handler!` .
2022-03-23 02:51:23 +01:00
## 0.5.1 - 2022-03-23
### Fixed
- Make bot name check case-insensitive ([PR #16 ](https://github.com/teloxide/teloxide-macros/pull/16)).
2022-03-23 02:55:24 +01:00
### Added
- More command rename rules: `UPPERCASE` , `PascalCase` , `camelCase` , `snake_case` , `SCREAMING_SNAKE_CASE` , `kebab-case` , and `SCREAMING-KEBAB-CASE` ([PR #18 ](https://github.com/teloxide/teloxide-macros/pull/18)).
2022-03-23 02:51:23 +01:00
2022-02-05 16:36:47 +01:00
## 0.5.0 - 2022-02-05
2021-06-15 10:06:05 +02:00
2022-01-18 15:29:30 +01:00
### Added
2022-02-05 16:34:40 +01:00
- The `BotCommand::bot_commands()` method that returns `Vec<BotCommand>` ([PR #13 ](https://github.com/teloxide/teloxide-macros/pull/13)).
- `#[derive(DialogueState)]` , `#[handler_out(...)]` , `#[handler(...)]` .
2022-01-18 15:29:30 +01:00
2022-02-05 16:36:47 +01:00
## 0.4.1 - 2021-07-11
2021-07-11 13:41:08 +02:00
2021-06-15 10:06:05 +02:00
### Fixed
- Fix generics support for a variant's arguments ([PR #8 ](https://github.com/teloxide/teloxide-macros/issues/8)).
2022-02-05 16:36:47 +01:00
## 0.4.0 - 2021-03-19
2021-03-19 11:31:05 +01:00
### Changed
- Adjust dialogues with the latest teloxide (v0.4.0).
2022-02-05 16:36:47 +01:00
## 0.3.2 - 2020-07-27
2020-07-24 15:30:40 +02:00
### Added
2020-07-26 20:51:02 +02:00
- `#[derive(Transition)]` with `#[teloxide(subtransition)]` .
2020-07-24 15:30:40 +02:00
2020-07-24 15:31:48 +02:00
### Removed
- The `dev` branch.
2022-02-05 16:36:47 +01:00
## 0.3.1 - 2020-07-04
2020-07-04 09:39:28 +02:00
### Added
- Now you can remove command from showing in descriptions by defining `description` attribute as `"off"` .
2020-07-03 19:42:58 +02:00
2022-02-05 16:36:47 +01:00
## 0.3.0 - 2020-07-03
2020-02-24 10:12:33 +01:00
### Changed
- The description in `Cargo.toml` was changed to from "The teloxide's macros for internal usage" to "The teloxide's procedural macros".
2020-07-03 19:42:58 +02:00
- Now parsing of arguments happens using special function. There are 3 possible variants:
- Using `default` parser, which only put all text in one String field.
- Using `split` parser, which split all text by `separator` (by default is whitespace) and then use FromStr::from_str to construct value.
- Using custom separator.
- Now function `parse` return Result< T , ParseError > instead of Option< T > .
2020-02-24 10:12:33 +01:00
2020-07-03 20:07:56 +02:00
### Added
- This `CHANGELOG.md` .
- `.gitignore` .
- `#[parse_with]` attribute.
- `#[separator='%sep%']` attribute.
2022-02-05 16:36:47 +01:00
## 0.2.1 - 2020-02-25
2020-07-03 20:05:40 +02:00
### Changed
- The description in `Cargo.toml` was changed to from "The teloxide's macros for internal usage" to "The teloxide's procedural macros".
### Added
- This `CHANGELOG.md` .
- `.gitignore` .
- The functionality to parse commands only with a correct bot's name (breaks backwards compatibility).
2022-02-05 16:36:47 +01:00
## 0.1.2 - 2020-02-24
2020-02-24 10:12:33 +01:00
### Changed
- The same as v0.1.1, but fixes [the issue ](https://github.com/teloxide/teloxide/issues/176 ) about backwards compatibility.
2022-02-05 16:36:47 +01:00
## 0.2.0 - YANKED
2020-02-24 10:12:33 +01:00
### Changed
- Fixes [the issue ](https://github.com/teloxide/teloxide/issues/176 ) about backwards compatibility, but fairly soon I realised that semver recommends to use v0.1.2 instead.
2022-02-05 16:36:47 +01:00
## 0.1.1 - 2020-02-23
2020-02-24 10:12:33 +01:00
### Added
- The `LICENSE` file.
2022-02-05 16:36:47 +01:00
2020-02-24 10:12:33 +01:00
### Changed
- Backwards compatibility is broken and was fixed in v0.1.2.
2022-02-05 16:36:47 +01:00
## 0.1.0 - 2020-02-19
2020-02-24 10:12:33 +01:00
### Added
- This project.