Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency slack-sdk to v3.34.0 #1952

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

pulumi-renovate[bot]
Copy link
Contributor

@pulumi-renovate pulumi-renovate bot commented Feb 17, 2025

This PR contains the following updates:

Package Update Change
slack-sdk minor ==3.5.0 -> ==3.34.0

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

slackapi/python-slack-sdk (slack-sdk)

v3.34.0: version 3.34.0

Compare Source

Changes

Dependabot

v3.33.5: version 3.33.5

Compare Source

Changes


v3.33.4: version 3.33.4

Compare Source

Changes


v3.33.3: version 3.33.3

Compare Source

Changes

  • #​1576 Enable rich_text_* elements to have an empty 'elements' property - Thanks @​seratch

v3.33.2: version 3.33.2

Compare Source

Changes


v3.33.1: version 3.33.1

Compare Source

Changes

  • Enable WebClient#assistant_threads_setSuggestedPrompts to skip title param - Thanks @​seratch

v3.33.0: version 3.33.0

Compare Source

Changes


v3.32.0: version 3.32.0

Compare Source

What's Changed

Features and Fixes
Documentation
Misc
Dependabot

New Contributors


v3.31.0: version 3.31.0

Compare Source

What's Changed


v3.30.0: version 3.30.0

Compare Source

Changes

All issues/pull requests: https://github.com/slackapi/python-slack-sdk/milestone/99?closed=1
Full Changelog: slackapi/python-slack-sdk@v3.29.0...v3.30.0

v3.29.0: version 3.29.0

Compare Source

Changes


v3.28.0: version 3.28.0

Compare Source

What's Changed

New Contributors

All issues/pull requests: https://github.com/slackapi/python-slack-sdk/milestone/95?closed=1
Full Changelog: slackapi/python-slack-sdk@v3.27.2...v3.28.0

v3.27.2: version 3.27.2

Compare Source

Changes


v3.27.1: version 3.27.1

Compare Source

Changes


v3.27.0: version 3.27.0

Compare Source

Changes


v3.26.2: version 3.26.2

Compare Source

Changes


v3.26.1: version 3.26.1

Compare Source

Changes


v3.26.0: version 3.26.0

Compare Source

Changes


v3.25.0: version 3.25.0

Compare Source

Changes


v3.24.0: version 3.24.0

Compare Source

Changes


v3.23.1: version 3.23.1

Compare Source

Changes


v3.23.0: version 3.23.0

Compare Source

Changes

Since this version, developers no longer need files:read permission for files_upload_v2 method. To learn more about files_upload_v2, please refer to v3.19.0 release notes: https://github.com/slackapi/python-slack-sdk/releases/tag/v3.19.0


v3.22.0: version 3.22.0

Compare Source

Changes


v3.21.3: version 3.21.3

Compare Source

Changes


v3.21.2: version 3.21.2

Compare Source

Changes

  • #​1354 Fix a bug where SQLAlchemy based InstallationStore is missing client_id in queries - Thanks @​seratch

v3.21.1: version 3.21.1

Compare Source

Changes

  • #​1352 Improve the default OAuth page content renderer not to embed external parameters as-is - Thanks @​seratch
  • Update Audit Logs API response class to have newly added properties - Thanks @​seratch
  • #​1353 Migrate deprecated codecov to the latest recommended way - Thanks @​seratch

v3.21.0: verison 3.21.0

Compare Source

Changes

  • #​1349 Add five admin API supports to Web API clients (admin.roles.*, admin.conversations.convertToPublic, admin.conversations.lookup) - Thanks @​seratch

v3.20.2: version 3.20.2

Compare Source

Changes


v3.20.1: version 3.20.1

Compare Source

Changes


v3.20.0: version 3.20.0

Compare Source

Changes

Document Changes

v3.19.5: version 3.19.5

Compare Source

Changes


v3.19.4: version 3.19.4

Compare Source

Changes


v3.19.3: version 3.19.3

Compare Source

Changes


v3.19.2: version 3.19.2

Compare Source

Changes


v3.19.1: version 3.19.1

Compare Source

Changes

  • Improve WebClient#files_upload_v2() to use given filename as the default title value - Thanks @​seratch @​mattpr

v3.19.0: version 3.19.0

Compare Source

New Features

files.upload v2 in WebClient / AsyncWebClient

We've received many reports on the performance issue of the existing files.upload API (refer to #​1191 #​1165 for details). So, to cope with the problem, our platform team decided to unlock a new way to upload files to Slack via public APIs. To utilize the new approach, developers need to implement the following steps on their code side:

  1. Call WebClient#files_getUploadURLExternal() method to receive a URL to use for each file
  2. Perform an HTTP POST request to the URL you received in step 1 for each file
  3. Call WebClient#files_completeUploadExternal() method with the pairs of file ID and title to complete the whole process, plus share the files in a channel
  4. ~~If you need the full metadata of the files, call WebClient#files_info() method for each file~~ UPDATE: Since v3.23.0, this API call is no longer required

We do understand that writing the above code requires many lines of code. Also, the existing WebClient#files_upload() users have to take a certain amount of time for migration. To mitigate the pain, we've added a wrapper method named WebClient#files_upload_v2() on the SDK side.

Also, in addition to the performance improvements, another good news is that 3rd party apps can now upload multiple files at a time!

See the following code examples demonstrating how the wrapper method works:

import os
from slack_sdk import WebClient
client = WebClient(token=os.environ["SLACK_BOT_TOKEN"])

### Legacy way
response = client.files_upload(
    file="./logo.png",
    title="New company logo",
    channels=["C12345"],
    initial_comment="Here is the latest version of our new company logo :wave:",
)
response.get("file")  # returns the full metadata of the uploaded file

### New way - the same parameters works in most cases
response = client.files_upload_v2(
    file="./logo.png",
    title="New company logo",

### Note that channels still works but going with channel="C12345" is recommended
### channels=["C111", "C222"] is no longer supported. In this case, an exception can be thrown 
    channels=["C12345"],
    initial_comment="Here is the latest version of our new company logo :wave:",
)
response.get("file")  # returns the full metadata of the uploaded file

### New way with multiple files!
response = client.files_upload_v2(
    file_uploads=[
        {
            "file": "./logo.png",
            "title": "New company logo",
        },
        {
            "content": "Minutes ....",
            "filename": "team-meeting-minutes-2022-03-01.md",
            "title": "Team meeting minutes (2022-03-01)",
        },
    ],
    channel="C12345",
    initial_comment="Here is the latest version of our new company logo :wave:",
)
response.get("files")  # returns the full metadata of all the uploaded files

~~When migrating to the v2 method, please note that the new method requires both files:write and files:read scopes. If your existing apps have only files:write scope for uploading files, you need to add files:read to the scopes plus re-install the app to issue an updated token.~~ UPDATE: Since v3.23.0, files:read scope is no longer required.

Changes


v3.18.5: version 3.18.5

Compare Source

Changes


v3.18.4: version 3.18.4

Compare Source

Changes


v3.18.3: version 3.18.3

Compare Source

Changes


v3.18.2: version 3.18.2

Compare Source

Changes


v3.18.1: version 3.18.1

Compare Source

Changes

Document Changes

v3.18.0: version 3.18.0

Compare Source

Changes


v3.17.2: version 3.17.2

Compare Source

Changes


v3.17.1: version 3.17.1

Compare Source

Changes


v3.17.0: version 3.17.0

Compare Source

Changes


  • All iss

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "every weekday" (UTC).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@pulumi-renovate pulumi-renovate bot added dependencies Pull requests that update a dependency file impact/no-changelog-required This issue doesn't require a CHANGELOG update labels Feb 17, 2025
@pulumi-renovate pulumi-renovate bot enabled auto-merge (squash) February 17, 2025 16:14
@pulumi-renovate pulumi-renovate bot force-pushed the renovate/slack-sdk-3.x branch 3 times, most recently from 96a9c1f to eec1866 Compare February 21, 2025 17:41
@pulumi-renovate pulumi-renovate bot force-pushed the renovate/slack-sdk-3.x branch from eec1866 to 4795de4 Compare February 21, 2025 21:37
@pulumi-renovate pulumi-renovate bot merged commit de5e200 into master Feb 21, 2025
41 checks passed
@pulumi-renovate pulumi-renovate bot deleted the renovate/slack-sdk-3.x branch February 21, 2025 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants