Skip to content

Releases: slackapi/bolt-python

version 1.9.4

29 Oct 15:16
Compare
Choose a tag to compare

Changes

  • #497 Add Python 3.10 to the supported versions - Thanks @seratch
  • #503 Fix a bug in the asyncio based token rotation support - Thanks @dkzk22
  • #504 Bump optional dependencies for v1.9.4 release - Thanks @seratch
  • #496 Upgrade pytype to the latest - Thanks @seratch

References

version 1.9.3

13 Oct 08:23
Compare
Choose a tag to compare

Changes

  • #488 app.message listeners do not catch messages with subtype: thread_broadcast - Thanks @seratch @kanny

Document updates:

  • Fix #480 #479 Adds updating views on submission for Japanese docs - Thanks @wongjas

References

version 1.9.2

28 Sep 06:21
Compare
Choose a tag to compare

Changes

  • #477 Add more guide message in the HTML generated by the default failure handler - Thanks @seratch @misscoded @filmaj
  • #476 Improve the error message in the case where AuthorizeResult is not found - Thanks @seratch

Document updates:

  • #479 Adds update view on submission docs - Thanks @srajiang
  • #472 update block id from listening modals - Thanks @bodepd

References

version 1.9.1

07 Sep 09:52
Compare
Choose a tag to compare

Changes

References

version 1.9.0

31 Aug 04:49
Compare
Choose a tag to compare

New Features

More Customization for Apps

Since this release, developers can customize listener_executor in apps. Also, to support the use case where Enterprise Grid Org admins install apps from their app management page, we've added a new option to disable state parameter validation in the OAuth flow. Please note that we still don't recommend disabling the state validation for usual OAuth apps.

Changes

References

version 1.8.1

28 Aug 00:53
Compare
Choose a tag to compare

Changes

  • #451 Fix cookie extraction during OAuth for REST based AWS API GW + Lambda app - Thanks @naveensan1
  • #449 Fix typo in App / AsyncApp comments and API documents - Thanks @objectfox
  • #446 Update the entity name - Thanks @seratch

References

version 1.8.0

13 Aug 12:55
Compare
Choose a tag to compare

Changes

  • #436 Fix #409 Custom token rotation expiration time does not work if installation_store is passed at top level - Thanks @seratch
  • #437 Fix a token rotation bug where a bot token is not refreshed if a user token does not exist - Thanks @seratch
  • #431 Fix #430 by adding a new option to customize dev server (http.server) logging - Thanks @seratch @cole-wilson
  • #432 Update Sanic adapter and its tests to be compatible with sanic v21 - Thanks @seratch
  • #416 Fix type hint errors detected by pytype 2021.7.19 - Thanks @seratch

Document Updates

References

version 1.8.0rc1

11 Aug 10:20
Compare
Choose a tag to compare
version 1.8.0rc1 Pre-release
Pre-release

version 1.7.0

15 Jul 23:21
Compare
Choose a tag to compare

New Features

Token Rotation Support

This version includes the support for the apps enabling the newly released token rotation for better security. Refer to the API document for the general information about the feature.

How to handle token rotation with this SDK

If you use any of the built-in InstallationStore, there is nothing else to change on your application code side. If you use the relational database tables along with a built-in InstallationStore, refer to the latest table schema here.

If you use your own custom authorize, not the built-in InstallationStoreAuthorize, the authorize function needs to be updated to run the token rotation. Refer to the InstallationStoreAuthorize's code to learn what to do for it.

Migration guide for Django users

If you operate Django apps based on the example app in this repository and would like to enable token rotation for the apps, check this commit to learn the required changes for it.

Migration guide for SQLAlchemyInstallationStore users

If your app uses the built-in SQLAlchemyInstallationStore for managing Slack app installations, adding the following database columns is required for this version upgrade. Refer to the code to check the complete ones.

Also, since this version, all the table columns for string data have their max length for better compatibility with MySQL. We recommend setting the same ones for your models.

slack_installations
  • Column("bot_refresh_token", String(200)),
  • Column("bot_token_expires_at", DateTime),
  • Column("user_refresh_token", String(200)),
  • Column("user_token_expires_at", DateTime),
slack_bots
  • Column("bot_refresh_token", String(200)),
  • Column("bot_token_expires_at", DateTime),

Changes

  • #404 Fix #400 token rotation feature support - Thanks @seratch
  • #387 #386 Replace re.search() with re.findall() in MessgeListenerMatches middleware to provide better matching results - Thanks @albeec13
  • #379 Make cookies extraction on AWS Lambda compatible with its format v1.0 - Thanks @tattee
  • #375 Update install page to avoid favicon downloads - Thanks @Bhavya6187
  • #401 Fix #378 by adding middleware error handlers - Thanks @seratch @jeremyschulman
  • #403 Fix #377 Better log messages for AsyncApp when a listener is missing - Thanks @seratch
  • #394 Fix #370 by adding an alias of next arg (next_) in middleware arguments - Thanks @seratch
  • #402 Fix #372 by adding listener matcher docs - Thanks @seratch
  • #389 Add reference to WorkflowStepBuilder in docs - Thanks @misscoded

References

version 1.6.1

03 Jun 07:58
Compare
Choose a tag to compare

Changes

References