Skip to content

feat(repo): drop Node.js 20 support - #2482

Merged
mandarini merged 2 commits into
masterfrom
feat/drop-node-20-support
Jun 30, 2026
Merged

mandarini merged 2 commits into
masterfrom
feat/drop-node-20-support

Conversation

@mandarini

@mandarini mandarini commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

Drops support for Node.js 20 across all packages in the monorepo. Node.js 20 reached end-of-life on April 30, 2026, so per the repository Support Policy it is dropped in a minor release and is not treated as a breaking change (same precedent as the Node.js 18 drop in 2.79.0).

What changed?

  • Bumped engines.node from >=20.0.0 to >=22.0.0 in every package: supabase-js, auth-js, realtime-js, postgrest-js, storage-js, functions-js, and shared/tracing.
  • Added a "Node.js 20 Deprecation Notice" block to the Support Policy section of both README.md and packages/core/supabase-js/README.md, mirroring the existing Node.js 18 notice. It links the deprecation discussion, names 2.110.0 as the release that drops support, and 2.109.0 as the last version that supported Node.js 20.
  • Removed the dead Node-below-22 code paths in realtime-js that only existed for runtimes without a native globalThis.WebSocket:
    • Removed the 'ws' member from the WebSocketEnvironment.type union and the corresponding env.type === 'ws' branch in isWebSocketSupported().
    • Collapsed the Node version parsing in detectEnvironment(). With native WebSocket guaranteed on Node 22+, reaching the Node branch now returns a single generic "native WebSocket not found" result instead of branching on the major version and suggesting the ws package.
    • Removed the connect() special-case error message in RealtimeClient.ts that instructed users to install ws; it now uniformly throws WebSocket not available: ....
  • Removed the now-obsolete isNodeHigherThan18 guard in the auth-js asymmetric JWT docker tests, so the crypto.subtle assertions always run.
  • Updated realtime-js tests to match: dropped the Node 16/18/20 detection cases and the ws-package support case, and adjusted the remaining assertions to the new generic messages.

Why was this change needed?

Node.js 20 is end-of-life and no longer receives security or critical fixes. Supporting unsupported runtimes carries risk, and keeping the ws fallback paths and version-parsing logic around added dead code now that the minimum supported version (22) ships native WebSocket.

Screenshots/Examples

N/A

Breaking changes

Per the Support Policy, dropping an end-of-life Node.js version in a minor release is not considered a breaking change. The public API is unchanged.

  • This PR contains no breaking changes

Checklist

  • I have read the Contributing Guidelines
  • My PR title follows the conventional commit format: <type>(<scope>): <description>
  • I have run pnpm nx format to ensure consistent code formatting
  • I have added tests for new functionality (if applicable)
  • I have updated documentation (if applicable)

Additional notes

@mandarini mandarini self-assigned this Jun 30, 2026
@mandarini
mandarini marked this pull request as ready for review June 30, 2026 07:45
@mandarini
mandarini requested review from a team as code owners June 30, 2026 07:45
@pkg-pr-new

pkg-pr-new Bot commented Jun 30, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@supabase/auth-js

npm i https://pkg.pr.new/@supabase/auth-js@2482

@supabase/functions-js

npm i https://pkg.pr.new/@supabase/functions-js@2482

@supabase/postgrest-js

npm i https://pkg.pr.new/@supabase/postgrest-js@2482

@supabase/realtime-js

npm i https://pkg.pr.new/@supabase/realtime-js@2482

@supabase/storage-js

npm i https://pkg.pr.new/@supabase/storage-js@2482

@supabase/supabase-js

npm i https://pkg.pr.new/@supabase/supabase-js@2482

commit: 4cba353

Tr00d
Tr00d previously approved these changes Jun 30, 2026
spydon
spydon previously approved these changes Jun 30, 2026
@mandarini
mandarini dismissed stale reviews from spydon and Tr00d via 4cba353 June 30, 2026 11:12
@mandarini
mandarini requested review from Tr00d and spydon June 30, 2026 11:12

@spydon spydon left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the Node 18 deprecation notices still needed?

@mandarini
mandarini merged commit c3d5e6d into master Jun 30, 2026
52 of 56 checks passed
@mandarini
mandarini deleted the feat/drop-node-20-support branch June 30, 2026 11:31
@mandarini

Copy link
Copy Markdown
Contributor Author

@spydon left them there just in case someone needs the Node 18 versions

mandarini pushed a commit to supabase/ssr that referenced this pull request Jun 30, 2026
This PR updates `@supabase/supabase-js` to v2.110.0.

**Source**: supabase-js-stable-release

---

## Release Notes

## v2.110.0

## 2.110.0 (2026-06-30)

### 🚀 Features

- **repo:** drop Node.js 20 support
([#2482](supabase/supabase-js#2482))

### ❤️ Thank You

- Katerina Skroumpelou @mandarini
## v2.109.0

## 2.109.0 (2026-06-30)

### 🚀 Features

- **auth:** add custom_claims_allowlist to custom providers admin API
([#2473](supabase/supabase-js#2473))
- **realtime:** add postgres_changes filter builder, new operators and
select ([#2463](supabase/supabase-js#2463))
- **storage:** expose purgeCache for buckets and single objects
([#2429](supabase/supabase-js#2429))

### 🩹 Fixes

- **functions:** honor a caller's Content-Type override regardless of
casing ([#2455](supabase/supabase-js#2455))
- **realtime:** pin @supabase/phoenix and browser test CDN deps
([#2457](supabase/supabase-js#2457))
- **realtime:** add replication connection system message option
([#2470](supabase/supabase-js#2470))
- **storage:** keep sortBy defaults when list() is given a partial
sortBy ([#2454](supabase/supabase-js#2454))

### ❤️ Thank You

- Anubhav Anand @i-anubhav-anand
- Cemal Kılıç @cemalkilic
- Claude Opus 4.8 (1M context)
- Filipe Cabaço @filipecabaco
- Katerina Skroumpelou @mandarini
- Lenny
- Rodrigo Mansueli @mansueli
## v2.108.2

## 2.108.2 (2026-06-15)

### 🩹 Fixes

- **auth:** preserve valid session on refresh failure and cooldown
repeat failures
([#2436](supabase/supabase-js#2436))
- **realtime:** clarify httpSend() 404 error and server migration note
([#2444](supabase/supabase-js#2444))
- **release:** pin Deno and bound JSR publish to survive stranded-task
hangs ([#2439](supabase/supabase-js#2439))
- **release:** restore JSR publish flags and enable for beta
([#2440](supabase/supabase-js#2440))

### ❤️ Thank You

- Katerina Skroumpelou @mandarini
## v2.108.1

## 2.108.1 (2026-06-09)

### 🩹 Fixes

- **ci:** forward DOGFOOD_APP_CLIENT_ID to dogfood workflow
([#2434](supabase/supabase-js#2434))
- **postgrest:** then typing
([#2349](supabase/supabase-js#2349))

### ❤️ Thank You

- Katerina Skroumpelou @mandarini
- Vaibhav @7ttp

This PR was created automatically.

Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
mandarini pushed a commit to supabase/supabase that referenced this pull request Jul 7, 2026
This PR updates @supabase/*-js libraries to version 2.110.1.

**Source**: supabase-js-stable-release

**Changes**:
- Updated @supabase/supabase-js to 2.110.1
- Updated @supabase/auth-js to 2.110.1
- Updated @supabase/realtime-js to 2.110.1
- Updated @supabase/postgest-js to 2.110.1
- Refreshed pnpm-lock.yaml

---

## Release Notes

## v2.110.1

## 2.110.1 (2026-07-07)

### 🩹 Fixes

- **auth:** defer init-time notifications until initializePromise
resolves ([#2498](supabase/supabase-js#2498))
- **realtime:** suppress disconnected status from onHeartbeat consumers
([#2496](supabase/supabase-js#2496))

### ❤️ Thank You

- Katerina Skroumpelou @mandarini
## v2.110.0

## 2.110.0 (2026-06-30)

### 🚀 Features

- **repo:** drop Node.js 20 support
([#2482](supabase/supabase-js#2482))

### ❤️ Thank You

- Katerina Skroumpelou @mandarini
## v2.109.0

## 2.109.0 (2026-06-30)

### 🚀 Features

- **auth:** add custom_claims_allowlist to custom providers admin API
([#2473](supabase/supabase-js#2473))
- **realtime:** add postgres_changes filter builder, new operators and
select ([#2463](supabase/supabase-js#2463))
- **storage:** expose purgeCache for buckets and single objects
([#2429](supabase/supabase-js#2429))

### 🩹 Fixes

- **functions:** honor a caller's Content-Type override regardless of
casing ([#2455](supabase/supabase-js#2455))
- **realtime:** pin @supabase/phoenix and browser test CDN deps
([#2457](supabase/supabase-js#2457))
- **realtime:** add replication connection system message option
([#2470](supabase/supabase-js#2470))
- **storage:** keep sortBy defaults when list() is given a partial
sortBy ([#2454](supabase/supabase-js#2454))

### ❤️ Thank You

- Anubhav Anand @i-anubhav-anand
- Cemal Kılıç @cemalkilic
- Claude Opus 4.8 (1M context)
- Filipe Cabaço @filipecabaco
- Katerina Skroumpelou @mandarini
- Lenny
- Rodrigo Mansueli @mansueli

This PR was created automatically.

Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
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.

4 participants