Skip to content

Releases

@slack/web-api@8.4.0

Choose a tag to compare

@slackapi slackapi released this 13 Nov 08:28
d8ee9b1

Minor Changes

Patch Changes

  • e1b15b2: Retry API calls whose response body is interrupted mid-read, as v7 did (#2738). A dropped connection or a timeout that fires while the body downloads now rejects with a WebAPIRequestError (with code and original) after the configured retries, instead of a raw TypeError: terminated with no retry.

@slack/socket-mode@3.2.0

Choose a tag to compare

@slackapi slackapi released this 10 Nov 16:35
5e8d3f0

Minor Changes

  • 7bd6b38: Fix an unhandled promise rejection of undefined that could crash the process when disconnect() raced a pending automatic reconnect (#2656). A reconnect that fails for good still rejects as before, with its cause.

    Also, disconnect() called before start() finishes connecting (while fetching the WebSocket URL, waiting to retry it, or during the WebSocket handshake) no longer leaves a connection opening afterwards: start() rejects with the new SMConnectAbortedError instead of hanging or rejecting with undefined.

    Calling start() right after disconnect(), while a reconnect is waiting or fetching its URL, now opens one connection instead of two.

Patch Changes

  • 1d3a1af: Fix disconnect() taking 5 seconds or more (#2752). Slack does not close the TCP connection after the close handshake, so disconnect() waited until the pong watchdog gave up and logged "A pong wasn't received". The close handshake now times out after 1 second, the heartbeat stops once the close frame is sent, and a close handshake started by Slack is cleaned up on the next heartbeat tick.

  • 7bd6b38: Fix a 5 to 12 second gap without a connection each time Slack refreshes a Socket Mode connection (#2767). On a disconnect message with the warning or refresh_requested reason, the client now opens the replacement connection right away, without a reconnect backoff, and leaves the old connection open until Slack sends it a disconnect message too, so payloads Slack still sends on it during the switch are received instead of dropped. Each payload is acknowledged on the connection it arrived on. While the replacement is being opened, the current connection keeps serving, and overlapping disconnect messages open one replacement. A replacement that fails for good rejects with its cause, as a failed reconnect does. Any other reason, such as link_disabled, still closes the connection first and reconnects after the usual delay.

    Note: during each refresh, a client now holds two connections for about 60 seconds, until Slack sends the old one its own disconnect (refresh_requested, about a minute after the warning). Both count toward Slack's limit of 10 open Socket Mode connections per app, so apps that run many instances at once should leave room for one extra connection per instance while they refresh.

@slack/web-api@8.3.0

Choose a tag to compare

@slackapi slackapi released this 30 Oct 05:30
d8df118

Minor Changes

  • 604135c: feat: add support for apps.user.connection.requestAuth and apps.user.connection.bulkUpdate
  • bf3ca27: feat(web-api): add 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)
  • Updated dependencies [1fabb45]
  • Updated dependencies [6f6fbd1]
  • Updated dependencies [e02e7fe]
  • Updated dependencies [7c310ea]
    • @slack/types@3.3.0

@slack/types@3.3.0

Choose a tag to compare

@slackapi slackapi released this 30 Oct 05:30
d8df118

Minor Changes

Patch Changes

  • 6f6fbd1: fix(types): add the agent_prompt, agent_prompt_display, and visible_to_user_ids fields to the Button block element
  • e02e7fe: fix: add the files, upload, display_as_bot, and parent_user_id fields to ThreadBroadcastMessageEvent

@slack/socket-mode@3.1.1

Choose a tag to compare

@slackapi slackapi released this 30 Oct 05:30
d8df118

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). 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

@slack/web-api@8.2.0

Choose a tag to compare

@slackapi slackapi released this 30 Sep 22:07
a98047a

Minor Changes

Patch Changes

  • Updated dependencies [ca6f416]
  • Updated dependencies [abf184e]
  • Updated dependencies [d420d00]
  • Updated dependencies [52eeb05]
    • @slack/types@3.2.0

@slack/types@3.2.0

Choose a tag to compare

@slackapi slackapi released this 30 Sep 22:07
a98047a

Minor Changes

@slack/socket-mode@3.1.0

Choose a tag to compare

@slackapi slackapi released this 30 Sep 22:07
a98047a

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). 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

@slack/webhook@8.0.2

Choose a tag to compare

@slackapi slackapi released this 27 Aug 20:20
e026671

Patch Changes

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

@slack/webhook@8.0.1

Choose a tag to compare

@slackapi slackapi released this 27 Aug 06:50
c663dc0

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