From 08dbfc4ee1c99cba3ec938002c2c4eda260e32b9 Mon Sep 17 00:00:00 2001 From: Himanshu Singh Date: Thu, 10 Jul 2025 17:34:06 +0200 Subject: [PATCH 1/2] chore: update required node to >=20.19.0 @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. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 53d6d2c6..6c95b0c3 100644 --- a/package.json +++ b/package.json @@ -78,6 +78,6 @@ "zod": "^3.25.76" }, "engines": { - "node": ">=20.10.0" + "node": ">=20.19.0" } } From 5bc1161618e3a446529060359ef59b286a9db625 Mon Sep 17 00:00:00 2001 From: Himanshu Singh Date: Thu, 10 Jul 2025 20:39:57 +0200 Subject: [PATCH 2/2] chore: update package.lock and readme for node requirements --- README.md | 2 +- package-lock.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ba05d843..101c6373 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ A Model Context Protocol server for interacting with MongoDB Databases and Mongo ## Prerequisites -- Node.js (v20.10.0 or later) +- Node.js (v20.19.0 or later) ```shell node -v diff --git a/package-lock.json b/package-lock.json index 29132ba3..96586b64 100644 --- a/package-lock.json +++ b/package-lock.json @@ -57,7 +57,7 @@ "yaml": "^2.8.0" }, "engines": { - "node": ">=20.10.0" + "node": ">=20.19.0" } }, "node_modules/@ampproject/remapping": {