fetch-mock
fetch-mock copied to clipboard
Esm 4 realz
Waiting for node 14 to be released and gain market share
See official advice from nodejs https://nodejs.org/dist/latest-v12.x/docs/api/esm.html#esm_dual_commonjs_es_module_packages
hey just a heads up: fetch-mock
will start failing with the upcoming node-fetch
version, which will be a native ES Module. You can test it today by installing node-fetch
with
npm install node-fetch@next
We expect to release node-fetch
v3 stable in 2-4 weeks, see https://github.com/node-fetch/node-fetch/issues/668#issuecomment-882373115.
I'm not sure if making the current fetch-mock compatible with node-fetch
v3 is possible at all? If you think it is but don't have time to look into it I can try to send a PR, I'd appreciate some pointers though
Node 14 is now in maintenance. Would you like to release a native ESM version of fetch-mock
now? Do you still have any blockers?