diff --git a/CHANGELOG.md b/CHANGELOG.md index faf31308..76d79ef1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,14 @@ > NOTE: pywa follows the [semver](https://semver.org/) versioning standard. +#### 2.0.0-rc.2 (2024-10-29) **Release Candidate** -#### 2.0.0-rc.1 (2024-10-27) **Release Candidate** +- [flows] rename `.data_key` and `.from_ref` to `.ref` +- [flows] allow pythonic conditionals in `If` component +- [api] fix media upload +- [utils] bump graph-api version to `21.0` + +#### 2.0.0-rc.1 (2024-10-27) - [handlers] fix `@WhatsApp.on_x(filters)` without kw - [handlers] fix factory data-is-null check diff --git a/MIGRATION.md b/MIGRATION.md index b8057d67..a9e07af0 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -18,6 +18,7 @@ - FlowRequest: Decrypt media directly from FlowRequest using `.decrypt_media(key, index)`. - Client: The client can run without a token but won’t allow API operations (only webhook listening). - SentMessage: The `SentMessage` object returned by `send_message`, `send_image`, etc., contains the message ID and allows to act on the sent message with methods like `reply_x`, `wait_for_x` etc. +- Flows: Create conditionals for `If` by using python's operators like `==`, `!=`, `>`, `<`, `>=`, `<=` etc. ### Breaking changes @@ -30,6 +31,7 @@ - Server: The function signature `webhook_update_handler` that used to pass updates manually to the server has been changed. - Deprecated Argument Removal: Deprecated arguments such as `keyboard` and `body` have been removed. - Client: The `continue_handling` param is now set to `False` by default. so if update is handled, it will not be passed to the next handler unless you set it to `True` or call `update.continue_handling()` in the handler. +- Flows: The `.data_key` and `.from_ref` of the flowjson components renamed to `.ref`. ### Migration steps diff --git a/pywa/__init__.py b/pywa/__init__.py index faf8d32e..673ffbad 100644 --- a/pywa/__init__.py +++ b/pywa/__init__.py @@ -9,6 +9,6 @@ from pywa.client import WhatsApp from pywa.utils import Version -__version__ = "2.0.0-rc.1" +__version__ = "2.0.0-rc.2" __author__ = "David Lev" __license__ = "MIT"