Skip to content

feat(socket-mode): support undici v8 as a peer dependency - #2694

Open
WilliamBergamin wants to merge 4 commits into
mainfrom
expand-undici-support
Open

feat(socket-mode): support undici v8 as a peer dependency#2694
WilliamBergamin wants to merge 4 commits into
mainfrom
expand-undici-support

Conversation

@WilliamBergamin

@WilliamBergamin WilliamBergamin commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Expand @slack/socket-mode to support both undici@^7 and undici@^8 as a peer dependency.

  • Widen peerDependencies.undici to ^7.0.0 || ^8.0.0. The source needs no logic changes
  • CI now pairs each Node version with an undici major via a versions: [{ node, undici }] matrix and forces the socket-mode workspace onto that major before running the suite.

Requirements

Widen the `undici` peer dependency range to `^7.0.0 || ^8.0.0` so consumers
can bring either major. undici v8 requires Node >=22.19, while v7 continues to
support Node >=20 — the source needs no changes, as v8 preserves every API
socket-mode uses.

CI now pairs each Node version with an undici major via a `versions` matrix
and forces the socket-mode workspace onto that major before running the suite,
so v8 support is actually exercised on capable Node versions. A new guardrail
test asserts the Node/undici pairing (and never allows v8 on Node <22.19).

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@changeset-bot

changeset-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3e6270d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@slack/socket-mode Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

WilliamBergamin and others added 2 commits August 10, 2026 14:38
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@codecov

codecov Bot commented Aug 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.11%. Comparing base (1228651) to head (3e6270d).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2694   +/-   ##
=======================================
  Coverage   89.11%   89.11%           
=======================================
  Files          65       65           
  Lines       10351    10351           
  Branches      473      473           
=======================================
  Hits         9224     9224           
  Misses       1096     1096           
  Partials       31       31           
Flag Coverage Δ
cli-hooks 89.11% <ø> (ø)
cli-test 89.11% <ø> (ø)
logger 89.11% <ø> (ø)
oauth 89.11% <ø> (ø)
socket-mode 89.11% <ø> (ø)
web-api 89.11% <ø> (ø)
webhook 89.11% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@WilliamBergamin WilliamBergamin self-assigned this Aug 10, 2026
@WilliamBergamin WilliamBergamin added tests M-T: Testing work only dependencies Pull requests that update a dependency file labels Aug 10, 2026
@WilliamBergamin
WilliamBergamin requested a review from zimeg August 10, 2026 18:58
@WilliamBergamin
WilliamBergamin marked this pull request as ready for review August 10, 2026 18:58
@WilliamBergamin
WilliamBergamin requested a review from a team as a code owner August 10, 2026 18:58
@WilliamBergamin WilliamBergamin added this to the socket-mode@next milestone Aug 10, 2026
Reduce the undici peer-dependency test to its two assertions, drop the
comment essays and the general-purpose version-comparison helper in favor
of a plain Node major check, and rename SOCKET_MODE_EXPECT_UNDICI_MAJOR to
SOCKET_MODE_UNDICI_VERSION.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file tests M-T: Testing work only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant