From 61b694262882936e155cf4fd0e0659f76a916955 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 4 Nov 2025 21:12:30 -0500 Subject: [PATCH] fix(mongodb-build-info): add back missing default export Currently published versions of mongosh fail to install via `npm` because the typescript migration in c6ad0b0f6194b removed the ability to consume this package through its default export. While I am generally strongly in favor of avoiding default exports, this particular change was an unintentional breaking change that should have been labeled as such. Let's bring back the prior behavior for now and remove separately as an intentional breaking change. --- packages/mongodb-build-info/src/index.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/mongodb-build-info/src/index.ts b/packages/mongodb-build-info/src/index.ts index 07111a9f..3e111500 100644 --- a/packages/mongodb-build-info/src/index.ts +++ b/packages/mongodb-build-info/src/index.ts @@ -235,3 +235,16 @@ export function getBuildEnv(buildInfo: unknown): { : null, }; } + +/** @deprecated */ +export default { + getDataLake, + isEnterprise, + isAtlas, + isAtlasStream, + isLocalhost, + isDigitalOcean, + getGenuineMongoDB, + identifyServerName, + getBuildEnv, +};