supabase / node-fetch

A light-weight module that brings the Fetch API to Node.js
MIT License
0 stars 3 forks source link

Dependency `whatwg-url` causes big file to be included #6

Open remorses opened 3 months ago

remorses commented 3 months ago

You are importing the package whatwg-url which then imports tr46, this package includes a file that is 500kb big. The file is tr46/lib/mappingTable.json

nielsvanrijn commented 2 months ago

Specifically whatwg-url@5.0.0 still uses tr46@0.0.3 while whatwg-url@14.0.0 is out wich uses tr46@5.0.0 and since tr46@2.0.2 the size of mappingTable.json is greatly reduced. From 5.0.0 to 14.0.0 can be a big change, the oldest version that uses at least tr46@2.0.2 is 8.1.0. Please update if possible.

riderx commented 1 month ago

I'm not sure to understand why we have that as node18+ has fetch and browser too