-
Notifications
You must be signed in to change notification settings - Fork 2k
Publish as ESM only #4385
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
Publish as ESM only #4385
Conversation
Hi @JoviDeCroock, I'm @github-actions bot happy to help you with this PR 👋 Supported commandsPlease post this commands in separate comments and only one per comment:
|
8fc1d0a
to
09613a3
Compare
Co-authored-by: Benjie <[email protected]>
@@ -26,7 +26,7 @@ | |||
"graphql-js" | |||
], | |||
"engines": { | |||
"node": "^16.19.0 || ^18.14.0 || >=19.7.0" | |||
"node": ">=20.19.0 || >=22.12.0 || >=23.0.0 || >=24.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"node": ">=20.19.0 || >=22.12.0 || >=23.0.0 || >=24.0.0" | |
"node": "^20.19.0 || ^22.12.0 || >=23.0.0" |
I believe the >= meaning anything greater than, so 22.11.0 incorrectly passes for me with existing specifiers.
For same reason we only need one >=, as >=23.0.0 implies >=24.0.0
@@ -30,7 +30,7 @@ | |||
"typescript-eslint": "^8.17.0" | |||
}, | |||
"engines": { | |||
"node": "^16.19.0 || ^18.14.0 || >=19.7.0" | |||
"node": ">=19.7.0 || >=20.0.0 || >=22.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"node": ">=19.7.0 || >=20.0.0 || >=22.0.0" | |
"node": "^20.19.0 || ^22.12.0 || >=23.0.0" |
This removes the dual package hazard and a lot of concerns we had for the
instanceof
checks going forward. This change will make it safer to remove the dev-check and just be ESM only, this change is motivated by Node 18 being dropped and Node 20 and onwards supportingrequire(esm)