---
name: Node SDK
slug: slack-node-sdk
type: github
source_url: https://github.com/slackapi/node-slack-sdk
organization: Slack
organization_slug: slack
total_releases: 129
latest_version: @slack/socket-mode@3.1.1
latest_date: 2026-10-30
last_updated: 2026-11-06
tracking_since: 2023-12-20
canonical: https://releases.sh/slack/slack-node-sdk
organization_url: https://releases.sh/slack
---

<Release version="@slack/socket-mode@3.1.1" date="October 30, 2026" published="2026-10-30T05:30:54.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/socket-mode%403.1.1">
### Patch Changes

- b0706c6: Fix Events API dispatch for payloads without an inner event, including app_rate_limited. Keep malformed payloads available to generic slack_event listeners for acknowledgement.
- 8730b5e: Fix an orphaned close-handshake timer ([#2771](https://github.com/slackapi/node-slack-sdk/issues/2771)). When the connection closed while a close frame was in flight, the 30s timer armed by `disconnect()` outlived the connection, then logged a false "Peer did not complete the close handshake" warning and emitted a second `close`, which could start a duplicate reconnect.
  
  - `disconnect()` on an already closed socket now cleans up immediately instead of sending a close frame and arming a second timer. This is the path when Slack drops the TCP connection after a `disconnect` message.
  - `disconnect()` before the connection opens no longer leaves the timer behind: undici fails a connecting socket synchronously inside `close()`, so the timer is now armed before it.
- Updated dependencies [604135c]
- Updated dependencies [bf3ca27]
- Updated dependencies [28bd9f9]
- Updated dependencies [4483395]
- Updated dependencies [651c298]
- Updated dependencies [9c6893e]
  - @slack/web-api@8.3.0
</Release>

<Release version="@slack/web-api@8.3.0" date="October 30, 2026" published="2026-10-30T05:30:51.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/web-api%408.3.0">
### Minor Changes

- 604135c: feat: add support for apps.user.connection.requestAuth and apps.user.connection.bulkUpdate
- bf3ca27: feat(web-api): add [`canvases.getContent`](https://docs.slack.dev/reference/methods/canvases.getContent) method
- 4483395: feat: add the `code_channels` app manifest feature and the `code_channels:manage` bot scope to manifest types
- 651c298: feat: add the `user_connections` feature (`is_enabled`, `auth_hosts`) and the `user_connection` and `user_connection_status_requested` events to the app manifest types
- 9c6893e: Add the optional `include_slackbot_availability` argument and `team.slackbot_availability` response field to `team.info`.

### Patch Changes

- 28bd9f9: fix: image alt text passed to `files.uploadV2` is now saved. Before, it was sent as `alt_text`, which Slack ignores. Add `alt_txt` to `files.uploadV2` and `files.getUploadURLExternal` arguments, and deprecate `alt_text` in both. A deprecated `alt_text` passed to `files.uploadV2` is still sent as `alt_txt` ([#2788](https://github.com/slackapi/node-slack-sdk/issues/2788))
- Updated dependencies [1fabb45]
- Updated dependencies [6f6fbd1]
- Updated dependencies [e02e7fe]
- Updated dependencies [7c310ea]
  - @slack/types@3.3.0
</Release>

<Release version="@slack/types@3.3.0" date="October 30, 2026" published="2026-10-30T05:30:48.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/types%403.3.0">
### Minor Changes

- 1fabb45: feat(types): add [`AuthProviderBlock`](https://docs.slack.dev/reference/block-kit/blocks/auth-provider-block) block interface
- 7c310ea: feat(types): add the [`user_connection`](https://docs.slack.dev/reference/events/user_connection) and [`user_connection_status_requested`](https://docs.slack.dev/reference/events/user_connection_status_requested) event interfaces

### Patch Changes

- 6f6fbd1: fix(types): add the `agent_prompt`, `agent_prompt_display`, and `visible_to_user_ids` fields to the [`Button`](https://docs.slack.dev/reference/block-kit/block-elements/button-element) block element
- e02e7fe: fix: add the `files`, `upload`, `display_as_bot`, and `parent_user_id` fields to `ThreadBroadcastMessageEvent`
</Release>

<Release version="@slack/socket-mode@3.1.0" date="September 30, 2026" published="2026-09-30T22:07:27.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/socket-mode%403.1.0">
### Minor Changes

- 334e6a6: Support `undici@^8` as a peer dependency in addition to `undici@^7`. `undici@^8` requires Node.js >=22.19; `undici@^7` continues to support Node.js >=20.
  
  The default dispatcher now pins the WebSocket connection to HTTP/1.1, since `undici@^8` offers HTTP/2 by default. To do the same with a custom `ProxyAgent` dispatcher, pass `requestTls: { allowH2: false }`.

### Patch Changes

- e22facd: fix(socket-mode): stop spurious ping/pong WARN from other undici WebSockets ([#2743](https://github.com/slackapi/node-slack-sdk/issues/2743)). Route diagnostics frames by reference identity instead of `instanceof`, which failed across undici copies (e.g. Node's global `WebSocket`).
- Updated dependencies [c523063]
  - @slack/web-api@8.2.0
</Release>

<Release version="@slack/web-api@8.2.0" date="September 30, 2026" published="2026-09-30T22:07:24.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/web-api%408.2.0">
### Minor Changes

- c523063: feat: add the `agents.conversations.*` methods for [Slack Code](https://docs.slack.dev/changelog/2026/08/20/slack-code) ([`create`](https://docs.slack.dev/reference/methods/agents.conversations.create), [`archive`](https://docs.slack.dev/reference/methods/agents.conversations.archive), [`setProperties`](https://docs.slack.dev/reference/methods/agents.conversations.setProperties), [`setView`](https://docs.slack.dev/reference/methods/agents.conversations.setView), [`setCommands`](https://docs.slack.dev/reference/methods/agents.conversations.setCommands), [`listViews`](https://docs.slack.dev/reference/methods/agents.conversations.listViews), [`removeView`](https://docs.slack.dev/reference/methods/agents.conversations.removeView), [`getCanvas`](https://docs.slack.dev/reference/methods/agents.conversations.getCanvas), [`setCanvasContent`](https://docs.slack.dev/reference/methods/agents.conversations.setCanvasContent)).

### Patch Changes

- Updated dependencies [ca6f416]
- Updated dependencies [abf184e]
- Updated dependencies [d420d00]
- Updated dependencies [52eeb05]
  - @slack/types@3.2.0
</Release>

<Release version="@slack/types@3.2.0" date="September 30, 2026" published="2026-09-30T22:07:21.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/types%403.2.0">
### Minor Changes

- ca6f416: feat(types): add [`ContainerBlock`](https://docs.slack.dev/reference/block-kit/blocks/container-block/) block interface
- abf184e: feat: add the [`data_table`](https://docs.slack.dev/reference/block-kit/blocks/data-table-block) Block Kit block type (`DataTableBlock`)
- d420d00: feat: allow `raw_number` cells in [`TableBlock`](https://docs.slack.dev/reference/block-kit/blocks/table-block) rows (adds `RawNumberElement`)
- 52eeb05: feat(types): add optional `action_id` property to the [`WorkflowButton`](https://docs.slack.dev/reference/block-kit/block-elements/workflow-button-element) block element
</Release>

<Release version="@slack/socket-mode@3.0.1" date="August 27, 2026" published="2026-08-27T20:34:35.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/socket-mode%403.0.1">
### Patch Changes

- 5c2362c: Fix leaked TCP sockets on disconnect ([#2709](https://github.com/slackapi/node-slack-sdk/issues/2709)). Moving from `ws` to undici's `WebSocket` in 3.0.0 dropped every force-close mechanism, so `ESTABLISHED` sockets were never torn down and accumulated toward Slack's per-app connection cap.
  
  - `disconnect()` now arms a 30s close-handshake timeout, so a peer that never replies to the close frame no longer leaves the socket stuck in `CLOSING` indefinitely.
  - On the default dispatcher path, the underlying TCP socket is now captured and force-destroyed during cleanup. A user-supplied `dispatcher` owns its own socket and instead relies on the close-handshake timeout — this limitation is documented on the `dispatcher` option.
  - The `close` handler no longer schedules a reconnect on stale or overlapping close events, so at most one reconnect is scheduled per disconnect.
</Release>

<Release version="@slack/web-api@8.1.1" date="August 27, 2026" published="2026-08-27T20:20:41.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/web-api%408.1.1">
### Patch Changes

- 0ee1d99: fix: revert internal packages requiring esm loading for backward compatible support ([#2711](https://github.com/slackapi/node-slack-sdk/issues/2711))
</Release>

<Release version="@slack/webhook@8.0.1" date="August 27, 2026" published="2026-08-27T06:50:29.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/webhook%408.0.1">
### Patch Changes

- 3a459f6: fix: stop `WebhookTrigger.send()` from retrying after a successful delivery

  A 2xx response with an empty or non-JSON body no longer throws. It now resolves to `{ ok: true }`. Before this fix that body threw a parse error, which was retried as a request error and caused duplicate Workflow Builder runs. A valid `{ ok: false, error }` body is still surfaced to the caller.

- Updated dependencies [916d8e9]
- Updated dependencies [f5e9a01]
  - @slack/types@3.1.0
</Release>

<Release version="@slack/web-api@8.1.0" date="August 27, 2026" published="2026-08-27T06:50:26.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/web-api%408.1.0">
### Minor Changes

- 955e6b9: feat(web-api): add support for [`admin.users.getExpiration`](https://docs.slack.dev/reference/methods/admin.users.getExpiration)
- 4322e14: feat(web-api): add [`agents.sessions.rename`](https://docs.slack.dev/reference/methods/agents.sessions.rename) and [`agents.sessions.setStatus`](https://docs.slack.dev/reference/methods/agents.sessions.setStatus)
- 4ba30a1: feat(web-api): add `session_status` to [`chat.stopStream`](https://docs.slack.dev/reference/methods/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`](https://docs.slack.dev/reference/methods/blocks.validate) method

### Patch Changes

- Updated dependencies [916d8e9]
- Updated dependencies [f5e9a01]
  - @slack/types@3.1.0
</Release>

<Release version="@slack/types@3.1.0" date="August 27, 2026" published="2026-08-27T06:44:52.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/types%403.1.0">
### Minor Changes

- 916d8e9: feat(types): add [`agent_session_stopped`](https://docs.slack.dev/reference/events/agent_session_stopped) and [`agent_session_title_changed`](https://docs.slack.dev/reference/events/agent_session_title_changed) events
- f5e9a01: feat(types): add optional `min_lines` and `max_lines` properties to `RichTextInput` element
</Release>

<Release version="@slack/web-api@8.0.0" date="July 14, 2026" published="2026-07-14T17:55:30.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/web-api%408.0.0">
### 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:
    ```ts
    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](https://api.slack.com/changelog/2023-08-workflow-steps-from-apps-step-back) 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]
  - @slack/logger@5.0.0
  - @slack/types@3.0.0
</Release>

<Release version="@slack/webhook@7.2.0" date="July 8, 2026" published="2026-07-08T20:42:16.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/webhook%407.2.0">
### Minor Changes

- a2f6e77: feat: add opt-in retries to `IncomingWebhook` and `WebhookTrigger`
- a5bd5c8: feat: add `WebhookTrigger` class for Workflow Builder webhook triggers
</Release>

<Release version="@slack/web-api@7.19.0" date="July 6, 2026" published="2026-07-06T22:11:16.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/web-api%407.19.0">
### Minor Changes

- a795b86: 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`
</Release>

<Release version="@slack/types@2.22.0" date="July 2, 2026" published="2026-07-02T17:22:14.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/types%402.22.0">
### Minor Changes

- 50828f5: feat: add the `app_context_changed` event type for agent [active view context](https://docs.slack.dev/ai/agent-context-management/#active-view-context)
</Release>

<Release version="@slack/webhook@7.1.0" date="June 30, 2026" published="2026-06-30T18:25:14.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/webhook%407.1.0">
### Minor Changes

- 59124ef: feat: export `addAppMetadata` for external instrumentation use
</Release>

<Release version="@slack/web-api@7.18.0" date="June 30, 2026" published="2026-06-30T18:25:11.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/web-api%407.18.0">
### Minor Changes

- 07744de: feat: make `thread_ts` optional for `assistant.threads.setSuggestedPrompts`
</Release>

<Release version="@slack/web-api@7.17.0" date="June 11, 2026" published="2026-06-11T16:37:56.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/web-api%407.17.0">
### Minor Changes

- 2085900: feat: expose public read-only `ts` getter on `ChatStreamer` for fallback to [`chat.update`](https://docs.slack.dev/reference/methods/chat.update) when a stream expires server-side

  ```js
  import { WebClient } from "@slack/web-api";

  const client = new WebClient(process.env.SLACK_BOT_TOKEN);

  const streamer = client.chatStream({
    channel: "C0123456789",
    thread_ts: "1700000001.123456",
    recipient_team_id: "T0123456789",
    recipient_user_id: "U0123456789",
  });

  await streamer.append({ markdown_text: "hello!" });
  // streamer.ts is now set after the first flush
  console.log(streamer.ts);

  await streamer.stop();
  ```
</Release>

<Release version="@slack/cli-hooks@1.3.3" date="June 11, 2026" published="2026-06-11T16:37:53.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/cli-hooks%401.3.3">
### Patch Changes

- f430ae8: fix: use correct bolt-js release notes tag format
</Release>

<Release version="@slack/cli-test@4.0.0" date="June 11, 2026" published="2026-06-11T16:37:50.000Z" url="https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack/cli-test%404.0.0">
### Major Changes

- e8fbfd5: fix: remove default "--app deployed" global flag from commands

  Commands running for a specific app must now provide the "app" argument:

  ```diff
    await SlackCLI.app.delete({
      appPath: "my-app",
      team: "T0123456789",
  +   app: "deployed",
    });
  ```

  The options "local" or "deployed" or app ID all remain available to use.
</Release>

<Pagination cursor="2026-06-11T16:37:50.000Z|2026-06-11T20:01:43.113Z|rel_e095HBy7hWaz7oUVXc9oi" next="https://releases.sh/slack/slack-node-sdk.md?cursor=2026-06-11T16%3A37%3A50.000Z%7C2026-06-11T20%3A01%3A43.113Z%7Crel_e095HBy7hWaz7oUVXc9oi&limit=20" />
