-
Notifications
You must be signed in to change notification settings - Fork 72
chore: update required node to >=20.19.0 #353
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
Conversation
@mongodb-js/oidc-plugin requires openid-client (a universal ESM module) using `require()` in the dist. CJS style require for universal ESMs are supported by default in node ^20.19.0 || ^22.12.0 || >=23.0.0. Ref: https://www.npmjs.com/package/openid-client#fn-universal For that reason it would be better to hint that we work best with at-least 20.19.0 instead of what we have currently.
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.
Pull Request Overview
This PR updates the minimum Node.js engine version to 20.19.0 to ensure compatibility with using require()
for universal ESM modules like openid-client
.
- Bump Node.js engine requirement from
>=20.10.0
to>=20.19.0
Comments suppressed due to low confidence (1)
package.json:81
- [nitpick] Consider updating the project README or other user-facing documentation to mention the new minimum Node.js requirement (>=20.19.0).
"node": ">=20.19.0"
Pull Request Test Coverage Report for Build 16203278003Details
💛 - Coveralls |
@@ -78,6 +78,6 @@ | |||
"zod": "^3.25.76" | |||
}, | |||
"engines": { | |||
"node": ">=20.10.0" | |||
"node": ">=20.19.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.
can we also update the readme and open a docs ticket to update the requirement? thanks!
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.
Thanks for pointing that out, missed it. Just updated it in my last commit. Will open a docs ticket as well as soon as I merge it.
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.
Here's the docs update ticket.
Proposed changes
@mongodb-js/oidc-plugin requires openid-client (a universal ESM module) using
require()
in the dist. CJS style require for universal ESMs are supported by default in node ^20.19.0 || ^22.12.0 || >=23.0.0.Ref: https://www.npmjs.com/package/openid-client#fn-universal
For that reason it would be better to hint that we work best with at-least 20.19.0 instead of what we have currently.
Related to #348
Checklist