Skip to content

feat: add Node 24 support#640

Merged
itsmeadi merged 7 commits intomainfrom
feat/node-24-support
Mar 11, 2026
Merged

feat: add Node 24 support#640
itsmeadi merged 7 commits intomainfrom
feat/node-24-support

Conversation

@itsmeadi
Copy link
Contributor

Summary

Adds Node.js 24 support by migrating away from the deprecated url.parse() API (DEP0169), which became a runtime deprecation in Node 24.

Changes

Source

  • src/redirect_url.ts: Replace Url.parse() / Url.format() with the WHATWG URL constructor

Tests

  • test/unit/node/redirect_test.js: Replace url.parse(x).query with new URL(x).search + qs.parse(..., { ignoreQueryPrefix: true })
  • test/integration/cloud/reaction.js: Replace url.parse(x, true) with new URL(x, base) + searchParams

CI

  • Add Node 24 to unit test matrix

- Migrate url.parse() to WHATWG URL API (DEP0169 runtime deprecation in Node 24)
  - src/redirect_url.ts: Url.parse() → new URL()
  - test/unit/node/redirect_test.js: url.parse().query → new URL().search
  - test/integration/cloud/reaction.js: url.parse(x, true) → new URL()
- Add Node 24 to unit test matrix
@github-actions
Copy link
Contributor

github-actions bot commented Mar 10, 2026

Size Change: 0 B

Total Size: 109 kB

ℹ️ View Unchanged
Filename Size
dist/js_min/getstream.js 35.5 kB
dist/js/getstream.js 73.9 kB

compressed-size-action

@itsmeadi itsmeadi enabled auto-merge (squash) March 11, 2026 09:56
@itsmeadi itsmeadi merged commit f758b05 into main Mar 11, 2026
11 checks passed
@itsmeadi itsmeadi deleted the feat/node-24-support branch March 11, 2026 09:56
@github-actions github-actions bot mentioned this pull request Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants