Skip to content

chore: remove node-fetch in favor of Node.js 18+ built-in fetch#201796

Open
beenotung wants to merge 2 commits into
wwebjs:mainfrom
beenotung:chore/remove-node-fetch
Open

chore: remove node-fetch in favor of Node.js 18+ built-in fetch#201796
beenotung wants to merge 2 commits into
wwebjs:mainfrom
beenotung:chore/remove-node-fetch

Conversation

@beenotung

Copy link
Copy Markdown

Node.js 18+ provides a built-in fetch API, and since this project requires Node.js >=18.0.0, the node-fetch dependency is no longer necessary.

Changes

  • Removed node-fetch from dependencies
  • Removed @types/node-fetch from devDependencies
  • Removed node-fetch import from MessageMedia.js and RemoteWebCache.js
  • Removed RequestInit import from index.d.ts (now uses global fetch types)

Notes

The existing code in MessageMedia.js already handles native fetch via the arrayBuffer() fallback when response.buffer is unavailable.

@github-actions github-actions Bot added dependencies Dependency updates api changes API modifications typings Type definitions labels Jun 14, 2026
@beenotung beenotung force-pushed the chore/remove-node-fetch branch from a9f5732 to 4f8f9c3 Compare June 14, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api changes API modifications dependencies Dependency updates typings Type definitions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant