['(OS=="mac" or OS=="linux" or OS=="freebsd") and (kerberos_use_rtld=="true")', { - 'defines': ['KERBEROS_USE_RTLD=1'], - 'link_settings': { - 'libraries': [ diff --git a/databases/mongosh/files/node-modules-patches/patch-node__modules_kerberos_src_kerberos__common.h b/databases/mongosh/files/node-modules-patches/patch-node__modules_kerberos_src_kerberos__common.h deleted file mode 100644 index ca2ad82d6d29..000000000000 --- a/databases/mongosh/files/node-modules-patches/patch-node__modules_kerberos_src_kerberos__common.h +++ /dev/null @@ -1,11 +0,0 @@ ---- node_modules/kerberos/src/kerberos_common.h.orig 2024-05-13 16:09:25 UTC -+++ node_modules/kerberos/src/kerberos_common.h -@@ -1,7 +1,7 @@ - #ifndef KERBEROS_COMMON_H - #define KERBEROS_COMMON_H - --#if defined(__linux__) || defined(__APPLE__) -+#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) - #include "unix/kerberos_gss.h" - - namespace node_kerberos { diff --git a/databases/mongosh/files/node-modules-patches/patch-packages_build_node__modules_boxednode_lib_index.js b/databases/mongosh/files/node-modules-patches/patch-packages_build_node__modules_boxednode_lib_index.js new file mode 100644 index 000000000000..1d0839c2e361 --- /dev/null +++ b/databases/mongosh/files/node-modules-patches/patch-packages_build_node__modules_boxednode_lib_index.js @@ -0,0 +1,13 @@ +--- packages/build/node_modules/boxednode/lib/index.js.orig 2026-04-29 13:15:26 UTC ++++ packages/build/node_modules/boxednode/lib/index.js +@@ -170,6 +170,10 @@ async function compileNode(sourcePath, linkedJSModules + for (const module of linkedJSModules) { + configure.push('--link-module', module); + } ++ for (const static_lib of ['ada', 'brotli', 'cares', 'corepack', 'googletest', 'histogram', 'icu-small', 'llhttp', ++ 'merve', 'nbytes', 'nghttp2', 'ngtcp2', 'npm', 'simdjson', 'sqlite', 'uv', 'uvwasi', 'zlib', 'zstd']) { ++ await fs_1.promises.rm(path_1.default.join(sourcePath, 'deps', static_lib), { recursive: true, force: true }); ++ } + await helpers_1.spawnBuildCommand(configure, options); + if (configure.includes('--fully-static') || configure.includes('--partly-static')) { + for (const file of [ diff --git a/databases/mongosh/files/node-patches/011-deps-v8-src-base-small-vector.h b/databases/mongosh/files/node-patches/011-deps-v8-src-base-small-vector.h deleted file mode 100644 index be80d9bd1c9f..000000000000 --- a/databases/mongosh/files/node-patches/011-deps-v8-src-base-small-vector.h +++ /dev/null @@ -1,10 +0,0 @@ ---- a/deps/v8/src/base/small-vector.h 2024-04-24 14:03:50 UTC -+++ b/deps/v8/src/base/small-vector.h -@@ -22,7 +22,6 @@ class SmallVector { - class SmallVector { - // Currently only support trivially copyable and trivially destructible data - // types, as it uses memcpy to copy elements and never calls destructors. -- ASSERT_TRIVIALLY_COPYABLE(T); - static_assert(std::is_trivially_destructible::value); - - public: diff --git a/databases/mongosh/files/node-patches/011-src_node__cjs__lexer.cc b/databases/mongosh/files/node-patches/011-src_node__cjs__lexer.cc new file mode 100644 index 000000000000..2c15ef7be6a4 --- /dev/null +++ b/databases/mongosh/files/node-patches/011-src_node__cjs__lexer.cc @@ -0,0 +1,21 @@ +Obtained from: https://github.com/nodejs/node/commit/59a522af24173b244cb86829de145d46b143a45c + +--- a/src/node_cjs_lexer.cc.orig 2026-04-29 21:32:48 UTC ++++ b/src/node_cjs_lexer.cc +@@ -71,14 +71,14 @@ void Parse(const FunctionCallbackInfo& args) { + // Convert exports to JS Set + Local exports_set = Set::New(isolate); + for (const auto& exp : analysis.exports) { +- exports_set->Add(context, CreateString(isolate, exp)).ToLocalChecked(); ++ exports_set->Add(context, CreateString(isolate, exp.name)).ToLocalChecked(); + } + + // Convert reexports to JS array using batch creation + LocalVector reexports_vec(isolate); + reexports_vec.reserve(analysis.re_exports.size()); + for (const auto& reexp : analysis.re_exports) { +- reexports_vec.push_back(CreateString(isolate, reexp)); ++ reexports_vec.push_back(CreateString(isolate, reexp.name)); + } + + // Create result array [exports (Set), reexports (Array)] diff --git a/databases/mongosh/files/patch-package.json b/databases/mongosh/files/patch-package.json index 4bdeea2d4eea..90f9991fb228 100644 --- a/databases/mongosh/files/patch-package.json +++ b/databases/mongosh/files/patch-package.json @@ -1,6 +1,6 @@ ---- package.json.orig 2025-07-02 13:57:45 UTC +--- package.json.orig 2026-04-30 23:25:01 UTC +++ package.json -@@ -29,7 +29,7 @@ +@@ -30,7 +30,7 @@ "pretest-smoke": "npm run compile-cli", "test-smoke": "npm run test-smoke -w @mongosh/cli-repl", "compile": "npm run compile --workspaces --if-present", @@ -9,7 +9,7 @@ "prestart-cli": "npm run compile-cli", "start-cli": "npm run start -w @mongosh/cli-repl", "start-browser": "npm run start --workspace @mongosh/browser-repl", -@@ -69,7 +69,6 @@ +@@ -68,7 +68,6 @@ "postcreate-static-analysis-report": "mongodb-sbom-tools sarif-to-markdown --sarif=.sbom/codeql.sarif.json --md=.sbom/codeql.md", "where": "monorepo-where", "reformat": "npm run reformat --workspaces --if-present", @@ -17,11 +17,11 @@ "precommit": "precommit", "preinstall": "node scripts/sort-workspaces.js", "bump-auxiliary": "npm run bump-auxiliary --workspace @mongosh/build", -@@ -114,7 +113,6 @@ - "duplexpair": "^1.0.2", +@@ -108,7 +107,6 @@ + "cross-env": "^6.0.3", "find-up": "^5.0.0", "glob": "^10.3.12", - "husky": "^9.0.11", - "mocha": "^10.2.0", - "mongodb": "^6.16.0", - "mongodb-runner": "^5.7.1", + "knip": "^5.71.0", + "mocha": "^11.7.5", + "mongodb-runner": "^6.5.3",