-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node.js module changes #6855
Comments
This is best discussed in https://github.com/npm/rfcs |
@wraithgar This landed in Node and was released in 21.1.0: We hope to make this enabled by default, without requiring a flag, in a future version of Node (potentially as soon as Node 22 in April 2024). This will mean that any Node app and dependency without a
npm/rfcs#620 is already open, which suggests one of these changes. Perhaps now that this performance penalty to |
We can get this into the |
More specifically, packages that don't currently include a |
… which is the vast majority of packages, for the foreseeable future. |
@wraithgar FYI this has been backported and released in Node 20.10.0: https://nodejs.org/en/blog/release/v20.10.0 |
Hey,
Node.js is debating some changes with regards to modules and we'd like your help.
The changes are outlined here: nodejs/TSC#1445 (comment)
The migration path for package authors is outlined here: nodejs/TSC#1445 (comment)
What we'd hopefully like is:
npm publish
to warn if the publishedpackage.json
file does not have a"type"
field.npm init
to set"type": "module"
in "new" Node.js by default.This is still all in discussion in Node.js, the above list is just some ideas and this issue is mostly so we can discuss things.
The text was updated successfully, but these errors were encountered: