Repository navigation
Releases
@slack/web-api@8.4.0
Minor Changes
- 899eda5: feat(web-api): add
admin.apps.mcp.servers.listmethod - 1952a35: feat(web-api): add
admin.apps.mcp.servers.permissions.listmethod - a37e280: feat(web-api): add
admin.apps.mcp.servers.permissions.setmethod - 0f1d293: feat(web-api): add
admin.slackbot.skills.listmethod - 3d2a7af: feat(web-api): add
admin.slackbot.skills.publishmethod - d70965c: feat(web-api): add
admin.slackbot.skills.setAutoEnabledmethod - 8168eb6: feat(web-api): add
admin.slackbot.skills.unpublishmethod - c067369: feat(web-api): add
slackbot.skills.createmethod - 5b7f2a4: feat(web-api): add
slackbot.skills.deletemethod - f9da63c: feat(web-api): add
slackbot.skills.infomethod - 986cf60: feat(web-api): add
slackbot.skills.library.addmethod - 406f478: feat(web-api): add
slackbot.skills.library.removemethod - d67ffef: feat(web-api): add
slackbot.skills.listmethod - b576822: feat(web-api): add
slackbot.skills.updatemethod
Patch Changes
- e1b15b2: Retry API calls whose response body is interrupted mid-read, as v7 did (#2738). A dropped connection or a
timeoutthat fires while the body downloads now rejects with aWebAPIRequestError(withcodeandoriginal) after the configured retries, instead of a rawTypeError: terminatedwith no retry.
@slack/socket-mode@3.2.0
Minor Changes
-
7bd6b38: Fix an unhandled promise rejection of
undefinedthat could crash the process whendisconnect()raced a pending automatic reconnect (#2656). A reconnect that fails for good still rejects as before, with its cause.Also,
disconnect()called beforestart()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 newSMConnectAbortedErrorinstead of hanging or rejecting withundefined.Calling
start()right afterdisconnect(), 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, sodisconnect()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
disconnectmessage with thewarningorrefresh_requestedreason, the client now opens the replacement connection right away, without a reconnect backoff, and leaves the old connection open until Slack sends it adisconnectmessage 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 overlappingdisconnectmessages open one replacement. A replacement that fails for good rejects with its cause, as a failed reconnect does. Any other reason, such aslink_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 thewarning). 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
Minor Changes
- 604135c: feat: add support for apps.user.connection.requestAuth and apps.user.connection.bulkUpdate
- bf3ca27: feat(web-api): add
canvases.getContentmethod - 4483395: feat: add the
code_channelsapp manifest feature and thecode_channels:managebot scope to manifest types - 651c298: feat: add the
user_connectionsfeature (is_enabled,auth_hosts) and theuser_connectionanduser_connection_status_requestedevents to the app manifest types - 9c6893e: Add the optional
include_slackbot_availabilityargument andteam.slackbot_availabilityresponse field toteam.info.
Patch Changes
- 28bd9f9: fix: image alt text passed to
files.uploadV2is now saved. Before, it was sent asalt_text, which Slack ignores. Addalt_txttofiles.uploadV2andfiles.getUploadURLExternalarguments, and deprecatealt_textin both. A deprecatedalt_textpassed tofiles.uploadV2is still sent asalt_txt(#2788) - Updated dependencies [1fabb45]
- Updated dependencies [6f6fbd1]
- Updated dependencies [e02e7fe]
- Updated dependencies [7c310ea]
- @slack/types@3.3.0
@slack/types@3.3.0
Minor Changes
- 1fabb45: feat(types): add
AuthProviderBlockblock interface - 7c310ea: feat(types): add the
user_connectionanduser_connection_status_requestedevent interfaces
Patch Changes
@slack/socket-mode@3.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). 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 secondclose, 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 adisconnectmessage.disconnect()before the connection opens no longer leaves the timer behind: undici fails a connecting socket synchronously insideclose(), 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
Minor Changes
- c523063: feat: add the
agents.conversations.*methods for Slack Code (create,archive,setProperties,setView,setCommands,listViews,removeView,getCanvas,setCanvasContent).
Patch Changes
@slack/types@3.2.0
Minor Changes
- ca6f416: feat(types): add
ContainerBlockblock interface - abf184e: feat: add the
data_tableBlock Kit block type (DataTableBlock) - d420d00: feat: allow
raw_numbercells inTableBlockrows (addsRawNumberElement) - 52eeb05: feat(types): add optional
action_idproperty to theWorkflowButtonblock element
@slack/socket-mode@3.1.0
Minor Changes
-
334e6a6: Support
undici@^8as a peer dependency in addition toundici@^7.undici@^8requires Node.js >=22.19;undici@^7continues to support Node.js >=20.The default dispatcher now pins the WebSocket connection to HTTP/1.1, since
undici@^8offers HTTP/2 by default. To do the same with a customProxyAgentdispatcher, passrequestTls: { allowH2: false }.
Patch Changes
@slack/webhook@8.0.2
@slack/webhook@8.0.1
Patch Changes
-
3a459f6: fix: stop
WebhookTrigger.send()from retrying after a successful deliveryA 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