fetch-mock icon indicating copy to clipboard operation
fetch-mock copied to clipboard

Esm 4 realz

Open wheresrhys opened this issue 4 years ago • 3 comments

Waiting for node 14 to be released and gain market share

wheresrhys avatar Apr 11 '20 22:04 wheresrhys

See official advice from nodejs https://nodejs.org/dist/latest-v12.x/docs/api/esm.html#esm_dual_commonjs_es_module_packages

wheresrhys avatar May 02 '20 17:05 wheresrhys

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

gr2m avatar Jul 19 '21 23:07 gr2m

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?

gr2m avatar Sep 23 '22 23:09 gr2m