Skip to content

Update dependency @slack/web-api to v8 - #131

Merged
igorbelo merged 1 commit into
mainfrom
renovate/slack-web-api-8.x
Sep 9, 2026
Merged

igorbelo merged 1 commit into
mainfrom
renovate/slack-web-api-8.x

Conversation

@renovate

@renovate renovate Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@slack/web-api (source) 7.19.0 → 8.1.1 age confidence

Release Notes

slackapi/node-slack-sdk (@​slack/web-api)

v8.1.1

Compare Source

Patch Changes
  • 0ee1d99: fix: revert internal packages requiring esm loading for backward compatible support (#​2711)

v8.1.0

Compare Source

Minor Changes
  • 955e6b9: feat(web-api): add support for admin.users.getExpiration

  • 4322e14: feat(web-api): add agents.sessions.rename and agents.sessions.setStatus

  • 4ba30a1: feat(web-api): add session_status to chat.stopStream arguments

  • bff3398: feat(web-api): add webapi response changes as of 2026-08-21

    Regenerate response types with new stable response properties (e.g. agent_session on message-bearing responses, ListView grouping/sort/filter fields, bots.info connector/workflow flags).

    Two fields are removed from UsersListResponse, neither of which is a real success-response property:

    • Member.is_connector_bot — not returned by users.list; this flag is surfaced on bots.info (added here to BotsInfoResponse).
    • arg — an error-response echo field, not part of a successful users.list body.
  • f5fd35a: feat(web-api): add blocks.validate method

Patch Changes

v8.0.0

Compare Source

Major Changes
  • fc98c8c: Drop Node.js 18 support. The minimum supported Node.js version is now 20.

  • fc98c8c: Redesigned error handling to use proper Error subclasses instead of plain objects with a code property.

    Migration: Replace if (error.code === ErrorCode.PlatformError) with if (error instanceof WebAPIPlatformError). All error classes extend a common SlackError base class (which extends Error), so you can also catch all SDK errors with if (error instanceof SlackError).

    New error class hierarchy:

    • SlackError (abstract base)
      • WebAPIPlatformError — Slack API returned ok: false
      • WebAPIRequestError — Network/transport failure (original error in cause)
      • WebAPIHTTPError — Non-200 HTTP status from Slack
      • WebAPIRateLimitedError — HTTP 429 with retryAfter seconds
      • WebAPIFileUploadInvalidArgumentsError — Invalid file upload arguments
      • WebAPIFileUploadReadFileDataError — Failed to read file data for upload

    Removed factory functions (these were internal but exported — use new with the corresponding class instead):

    • errorWithCode()
    • platformErrorFromResult() → new WebAPIPlatformError(...)
    • requestErrorWithOriginal() → new WebAPIRequestError(...)
    • httpErrorFromResponse() → new WebAPIHTTPError(...)
    • rateLimitedErrorWithDelay() → new WebAPIRateLimitedError(...)

    Other breaking type changes:

    • WebAPIHTTPError.headers type changed from IncomingHttpHeaders to Record<string, string>.
    • The CodedError interface is deprecated — use instanceof checks with specific error classes instead.
    • Error .name values changed from generic 'Error' to descriptive class names (e.g., 'WebAPIPlatformError').
  • fc98c8c: Replaced axios with the standard Fetch API for all HTTP transport. The following options and types have been removed from WebClientOptions:

    • agent — Use the new fetch option to provide a custom fetch implementation with proxy or keep-alive support. For proxies, prefer the built-in http.setGlobalProxyFromEnv() or NODE_USE_ENV_PROXY=1 (Node.js 24+). For advanced use cases:
      import { fetch, Agent } from "undici";
      const client = new WebClient(token, {
        fetch: (url, init) =>
          fetch(url, {
            ...init,
            dispatcher: new Agent({ keepAliveTimeout: 60_000 }),
          }),
      });
    • tls and TLSOptions — Configure TLS via a custom fetch implementation with an undici Agent, or use the NODE_EXTRA_CA_CERTS environment variable.
    • requestInterceptor and RequestInterceptor type — Wrap the fetch function to intercept or modify requests before they are sent.
    • adapter and AdapterConfig type — Use the fetch option instead.
    • RequestConfig type (was an alias for Axios' InternalAxiosRequestConfig) — Removed entirely.
    • attachOriginalToWebAPIRequestError option — Removed. The original error is now always available via the standard cause property on WebAPIRequestError.

    The dependencies axios, form-data, is-electron, and is-stream have been removed. The default fetch implementation is globalThis.fetch (available in Node.js 20+).

    New exported types for custom fetch implementations: FetchFunction, FetchResponse, FetchRequestInit, FetchHeaders.

  • fc98c8c: Removed previously-deprecated API methods and their associated request/response types:

    • files.upload — Use filesUploadV2 instead (available since v6.7). The filesUploadV2 method handles the multi-step upload process automatically.
    • rtm.start — Use rtm.connect instead. The rtm.start method was deprecated by Slack in favor of the lighter-weight rtm.connect.
    • workflows.stepCompleted, workflows.stepFailed, workflows.updateStep — These methods supported the retired Steps from Apps feature (deprecated August 2023, retired September 2024). The workflows.featured.* and admin.workflows.* methods for the current Workflow Builder remain available.
Minor Changes
  • fc98c8c: feat: expand app manifest types — add agent_view and assistant_view features, recent agent events (app_context_changed, assistant_thread_started, assistant_thread_context_changed), optional OAuth scopes (bot_optional/user_optional), and event metadata_subscriptions
Patch Changes
  • bb49d99: fix: apply redact() to API response bodies in debug logs and recurse into nested objects, preventing tokens from leaking into logs when debug logging is enabled
  • Updated dependencies [fc98c8c]
  • Updated dependencies [fc98c8c]

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Monday through Friday (* * * * 1-5)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot requested a review from a team as a code owner July 21, 2026 18:50
@renovate
renovate Bot requested review from igorbelo and removed request for a team July 21, 2026 18:50
@renovate
renovate Bot force-pushed the renovate/slack-web-api-8.x branch from 32f560c to de7727c Compare July 27, 2026 19:45
@renovate
renovate Bot force-pushed the renovate/slack-web-api-8.x branch 5 times, most recently from 1288a68 to fb562a8 Compare August 10, 2026 09:05
@renovate
renovate Bot force-pushed the renovate/slack-web-api-8.x branch 5 times, most recently from 46187ae to 48eda26 Compare September 9, 2026 11:27
@renovate
renovate Bot force-pushed the renovate/slack-web-api-8.x branch from 48eda26 to 093f15d Compare September 9, 2026 12:47
@igorbelo
igorbelo merged commit 6d70996 into main Sep 9, 2026
4 checks passed
@igorbelo
igorbelo deleted the renovate/slack-web-api-8.x branch September 9, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant