Skip to content

Conversation

@mandarini
Copy link
Contributor

@mandarini mandarini commented Nov 4, 2025

Remove @supabase/node-fetch polyfill in favor of native fetch API available in Node.js 20+. This change drops support for Node.js 18, which reached end-of-life on April 30, 2025.

All target environments (Node 20+, browsers, Deno, Bun, React Native) have native fetch support. No API changes for users on supported platforms.

Changes:

  • Remove @supabase/node-fetch dependency from all packages
  • Simplify fetch resolution logic to use native fetch
  • Add Node.js >= 20 engine constraint to all packages
  • Update documentation with migration guide
  • Remove Node 18 CI workflow

See: https://github.com/orgs/supabase/discussions/37217

Node.js 18 is no longer supported. Minimum version is now Node.js 20.

Breaking

This will be a breaking change since we're not supporting Node 18 any more.

@mandarini mandarini force-pushed the feat/remove-node-fetch branch from 3a03f88 to 9692ee9 Compare November 4, 2025 11:13
@mandarini mandarini force-pushed the feat/remove-node-fetch branch from 7835b17 to 269b935 Compare November 4, 2025 11:45
@coveralls
Copy link

coveralls commented Nov 4, 2025

Coverage Status

coverage: 80.698% (-0.6%) from 81.278%
when pulling dafa160 on feat/remove-node-fetch
into 7511686 on master.

@mandarini mandarini force-pushed the feat/remove-node-fetch branch from 9842429 to 021be1b Compare November 4, 2025 11:57
@mandarini mandarini self-assigned this Nov 4, 2025
@mandarini mandarini force-pushed the feat/remove-node-fetch branch from dd1deb2 to 3b01a6c Compare November 4, 2025 13:21
@mandarini mandarini force-pushed the feat/remove-node-fetch branch from 3b01a6c to 29f840a Compare November 4, 2025 13:36
@mandarini mandarini marked this pull request as ready for review November 4, 2025 14:53
@mandarini mandarini requested review from a team as code owners November 4, 2025 14:53
@soedirgo
Copy link
Member

soedirgo commented Nov 4, 2025

Some failures in auth-js tests

@mandarini mandarini enabled auto-merge (squash) November 4, 2025 15:25
@mandarini mandarini merged commit 53949f3 into master Nov 4, 2025
28 checks passed
@mandarini mandarini deleted the feat/remove-node-fetch branch November 4, 2025 15:26
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.

Request to dynamic import @supabase/node-fetch DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.

5 participants