Skip to content

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

Merged
merged 2 commits into from
Jul 11, 2025
Merged

Conversation

himanshusinghs
Copy link
Collaborator

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

@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.
@Copilot Copilot AI review requested due to automatic review settings July 10, 2025 15:39
@himanshusinghs himanshusinghs requested a review from a team as a code owner July 10, 2025 15:39
Copy link
Contributor

@Copilot Copilot AI left a 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"

@coveralls
Copy link
Collaborator

coveralls commented Jul 10, 2025

Pull Request Test Coverage Report for Build 16203278003

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 75.076%

Totals Coverage Status
Change from base Build 16199582904: 0.0%
Covered Lines: 873
Relevant Lines: 1073

💛 - Coveralls

@@ -78,6 +78,6 @@
"zod": "^3.25.76"
},
"engines": {
"node": ">=20.10.0"
"node": ">=20.19.0"
Copy link
Collaborator

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!

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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.

@himanshusinghs himanshusinghs merged commit 1848414 into main Jul 11, 2025
18 checks passed
@himanshusinghs himanshusinghs deleted the chore/update-engine branch July 11, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants