build(deps): bump @slack/web-api from 7.19.0 to 8.0.0 in /services/socket-mode #95

Merged
dependabot[bot] merged 1 commit from dependabot/npm_and_yarn/services/socket-mode/slack/web-api-8.0.0 into main 2026-07-23 15:33:42 +00:00
dependabot[bot] commented 2026-07-21 07:35:15 +00:00 (Migrated from github.com)

Bumps @slack/web-api from 7.19.0 to 8.0.0.

Release notes

Sourced from @​slack/web-api's releases.

@​slack/web-api@​8.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:
      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.

... (truncated)

Commits

Bumps [@slack/web-api](https://github.com/slackapi/node-slack-sdk) from 7.19.0 to 8.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/slackapi/node-slack-sdk/releases">@​slack/web-api's releases</a>.</em></p> <blockquote> <h2><code>@​slack/web-api</code><a href="https://github.com/8"><code>@​8</code></a>.0.0</h2> <h3>Major Changes</h3> <ul> <li> <p>fc98c8c: Drop Node.js 18 support. The minimum supported Node.js version is now 20.</p> </li> <li> <p>fc98c8c: Redesigned error handling to use proper <code>Error</code> subclasses instead of plain objects with a <code>code</code> property.</p> <p><strong>Migration:</strong> Replace <code>if (error.code === ErrorCode.PlatformError)</code> with <code>if (error instanceof WebAPIPlatformError)</code>. All error classes extend a common <code>SlackError</code> base class (which extends <code>Error</code>), so you can also catch all SDK errors with <code>if (error instanceof SlackError)</code>.</p> <p><strong>New error class hierarchy:</strong></p> <ul> <li><code>SlackError</code> (abstract base) <ul> <li><code>WebAPIPlatformError</code> — Slack API returned <code>ok: false</code></li> <li><code>WebAPIRequestError</code> — Network/transport failure (original error in <code>cause</code>)</li> <li><code>WebAPIHTTPError</code> — Non-200 HTTP status from Slack</li> <li><code>WebAPIRateLimitedError</code> — HTTP 429 with <code>retryAfter</code> seconds</li> <li><code>WebAPIFileUploadInvalidArgumentsError</code> — Invalid file upload arguments</li> <li><code>WebAPIFileUploadReadFileDataError</code> — Failed to read file data for upload</li> </ul> </li> </ul> <p><strong>Removed factory functions</strong> (these were internal but exported — use <code>new</code> with the corresponding class instead):</p> <ul> <li><code>errorWithCode()</code></li> <li><code>platformErrorFromResult()</code> → <code>new WebAPIPlatformError(...)</code></li> <li><code>requestErrorWithOriginal()</code> → <code>new WebAPIRequestError(...)</code></li> <li><code>httpErrorFromResponse()</code> → <code>new WebAPIHTTPError(...)</code></li> <li><code>rateLimitedErrorWithDelay()</code> → <code>new WebAPIRateLimitedError(...)</code></li> </ul> <p><strong>Other breaking type changes:</strong></p> <ul> <li><code>WebAPIHTTPError.headers</code> type changed from <code>IncomingHttpHeaders</code> to <code>Record&lt;string, string&gt;</code>.</li> <li>The <code>CodedError</code> interface is deprecated — use <code>instanceof</code> checks with specific error classes instead.</li> <li>Error <code>.name</code> values changed from generic <code>'Error'</code> to descriptive class names (e.g., <code>'WebAPIPlatformError'</code>).</li> </ul> </li> <li> <p>fc98c8c: Replaced <code>axios</code> with the standard Fetch API for all HTTP transport. The following options and types have been removed from <code>WebClientOptions</code>:</p> <ul> <li><strong><code>agent</code></strong> — Use the new <code>fetch</code> option to provide a custom fetch implementation with proxy or keep-alive support. For proxies, prefer the built-in <code>http.setGlobalProxyFromEnv()</code> or <code>NODE_USE_ENV_PROXY=1</code> (Node.js 24+). For advanced use cases: <pre lang="ts"><code>import { fetch, Agent } from &quot;undici&quot;; const client = new WebClient(token, { fetch: (url, init) =&gt; fetch(url, { ...init, dispatcher: new Agent({ keepAliveTimeout: 60_000 }), }), }); </code></pre> </li> <li><strong><code>tls</code></strong> and <strong><code>TLSOptions</code></strong> — Configure TLS via a custom <code>fetch</code> implementation with an undici <code>Agent</code>, or use the <code>NODE_EXTRA_CA_CERTS</code> environment variable.</li> <li><strong><code>requestInterceptor</code></strong> and <strong><code>RequestInterceptor</code></strong> type — Wrap the <code>fetch</code> function to intercept or modify requests before they are sent.</li> <li><strong><code>adapter</code></strong> and <strong><code>AdapterConfig</code></strong> type — Use the <code>fetch</code> option instead.</li> <li><strong><code>RequestConfig</code></strong> type (was an alias for Axios' <code>InternalAxiosRequestConfig</code>) — Removed entirely.</li> <li><strong><code>attachOriginalToWebAPIRequestError</code></strong> option — Removed. The original error is now always available via the standard <code>cause</code> property on <code>WebAPIRequestError</code>.</li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/slackapi/node-slack-sdk/commit/70e15b8442745d215f9ae259a2c970b306aff51a"><code>70e15b8</code></a> chore: release (<a href="https://redirect.github.com/slackapi/node-slack-sdk/issues/2653">#2653</a>)</li> <li><a href="https://github.com/slackapi/node-slack-sdk/commit/fc98c8c05eaca521d949ffcf4c3fcf4573b008fc"><code>fc98c8c</code></a> feat: Node Slack SDK major version release candidate (<a href="https://redirect.github.com/slackapi/node-slack-sdk/issues/2603">#2603</a>)</li> <li><a href="https://github.com/slackapi/node-slack-sdk/commit/c37b47ef0df14b291f79600e8c51c47ff72dfae2"><code>c37b47e</code></a> docs: updates webhook page to match readme (<a href="https://redirect.github.com/slackapi/node-slack-sdk/issues/2658">#2658</a>)</li> <li><a href="https://github.com/slackapi/node-slack-sdk/commit/bb49d995ca44cacb1cd8973803e767210aaa6dc1"><code>bb49d99</code></a> fix(web-api): redact response body in debug logs (<a href="https://redirect.github.com/slackapi/node-slack-sdk/issues/2652">#2652</a>)</li> <li><a href="https://github.com/slackapi/node-slack-sdk/commit/2b6a0cea8ef56dd36de137d48bc159668075fa18"><code>2b6a0ce</code></a> chore: release (<a href="https://redirect.github.com/slackapi/node-slack-sdk/issues/2650">#2650</a>)</li> <li><a href="https://github.com/slackapi/node-slack-sdk/commit/a2f6e77a5f40e35e9479ee80ffb9d8cba1e32f93"><code>a2f6e77</code></a> feat(webhook): add opt-in retries to IncomingWebhook and WebhookTrigger (<a href="https://redirect.github.com/slackapi/node-slack-sdk/issues/2641">#2641</a>)</li> <li><a href="https://github.com/slackapi/node-slack-sdk/commit/a5bd5c89a193e32fc3fc740691834d3f7e4378a7"><code>a5bd5c8</code></a> feat(webhook): add WebhookTrigger class for Workflow Builder triggers (<a href="https://redirect.github.com/slackapi/node-slack-sdk/issues/2615">#2615</a>)</li> <li>See full diff in <a href="https://github.com/slackapi/node-slack-sdk/compare/@slack/web-api@7.19.0...@slack/web-api@8.0.0">compare view</a></li> </ul> </details> <br />
seahaven-openswe[bot] (Migrated from github.com) reviewed 2026-07-21 07:38:13 +00:00
seahaven-openswe[bot] (Migrated from github.com) left a comment

✅ Open SWE Review: No issues found

Open SWE reviewed this PR and found no potential bugs to report.

Open in Web

## ✅ Open SWE Review: No issues found Open SWE reviewed this PR and found no potential bugs to report. [Open in Web](https://openswe.seahaven.com/agents/reviews/Sea-Haven-Industries/seahaven-slack-bot/95) <!-- open-swe-reviewer pr=95 -->
amoussa1229 (Migrated from github.com) approved these changes 2026-07-23 15:33:31 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.