Skip to content

Commit 44d8161

Browse files
authored
fix(mongodb-build-info): add back missing default export (#588)
Currently published versions of mongosh fail to install via `npm` because the typescript migration in c6ad0b0 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.
1 parent e5e4994 commit 44d8161

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/mongodb-build-info/src/index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,16 @@ export function getBuildEnv(buildInfo: unknown): {
235235
: null,
236236
};
237237
}
238+
239+
/** @deprecated */
240+
export default {
241+
getDataLake,
242+
isEnterprise,
243+
isAtlas,
244+
isAtlasStream,
245+
isLocalhost,
246+
isDigitalOcean,
247+
getGenuineMongoDB,
248+
identifyServerName,
249+
getBuildEnv,
250+
};

0 commit comments

Comments
 (0)