-
Notifications
You must be signed in to change notification settings - Fork 18
Conversation
I wanted to write some tests but they're failing because jest cannot consume the newest
@gabro is this an issue? Will this PR and ESM only thing affect metals-vscode and metals-coc? I'm not an expert in commonjs/esm modules stuff. |
It should be ok since typescript should take care of it, but in case it generates issues we can change the build target to esm as well. Unfortunately I'm not uber-expert of ESM neither, so I recommend trying locally that the applications using this library still work. |
Also heads up that |
I did some study about ESM, we have three choices. My conclusion: stay v2 1) Wait for VSCode (Electron) to support ESM
2) Wait TypeScript to stabilize
|
Opened a PR dependabot not to upgrade node-fetch to v3 #434 |
Thanks for the analysis @tanishiking, I was never brave enough to do such thing and deep dive into JS modules worlds :D I think we can close this PR. |
There is one change in the source code.
"@types/node-fetch"
has been deprecated -This is a stub types definition. node-fetch provides its own type definitions, so you do not need this installed.