From 46c85189c28a6c5697547d918d2288e6fffb2153 Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Wed, 19 Nov 2025 12:57:16 -0500 Subject: [PATCH 1/2] feat(NODE-7316): export number utils --- src/bson.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bson.ts b/src/bson.ts index b061e5ee..46678360 100644 --- a/src/bson.ts +++ b/src/bson.ts @@ -48,7 +48,8 @@ export { MinKey, MaxKey, BSONRegExp, - Decimal128 + Decimal128, + NumberUtils }; export { BSONValue, bsonType, type BSONTypeTag } from './bson_value'; export { BSONError, BSONVersionError, BSONRuntimeError, BSONOffsetError } from './error'; From 266ebdf9246fccdc6c07e5a9699aeb754f6326d0 Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Wed, 19 Nov 2025 14:39:12 -0500 Subject: [PATCH 2/2] test: fix exports test --- test/node/exports.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/node/exports.test.ts b/test/node/exports.test.ts index fbeefdb4..ba2da484 100644 --- a/test/node/exports.test.ts +++ b/test/node/exports.test.ts @@ -38,7 +38,8 @@ const EXPECTED_EXPORTS = [ 'calculateObjectSize', 'deserializeStream', 'BSON', - 'bsonType' + 'bsonType', + 'NumberUtils' ]; const EXPECTED_EJSON_EXPORTS = ['parse', 'stringify', 'serialize', 'deserialize'];