Skip to content

Commit 4ce6e4c

Browse files
authored
fix(NODE-4555): export BSON internally (#3367)
1 parent 5086ead commit 4ce6e4c

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.evergreen/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,7 @@ tasks:
17071707
- func: bootstrap kms servers
17081708
- func: run custom csfle tests
17091709
vars:
1710-
CSFLE_GIT_REF: 41afd44ca04d246998969c53de4e0f22802b0c8a
1710+
CSFLE_GIT_REF: 4e4613a0e725a8ba10f2c6ce8bff666e2f184549
17111711
- name: run-custom-csfle-tests-5.0-master
17121712
tags:
17131713
- run-custom-dependency-tests
@@ -1737,7 +1737,7 @@ tasks:
17371737
- func: bootstrap kms servers
17381738
- func: run custom csfle tests
17391739
vars:
1740-
CSFLE_GIT_REF: 41afd44ca04d246998969c53de4e0f22802b0c8a
1740+
CSFLE_GIT_REF: 4e4613a0e725a8ba10f2c6ce8bff666e2f184549
17411741
- name: run-custom-csfle-tests-rapid-master
17421742
tags:
17431743
- run-custom-dependency-tests
@@ -1767,7 +1767,7 @@ tasks:
17671767
- func: bootstrap kms servers
17681768
- func: run custom csfle tests
17691769
vars:
1770-
CSFLE_GIT_REF: 41afd44ca04d246998969c53de4e0f22802b0c8a
1770+
CSFLE_GIT_REF: 4e4613a0e725a8ba10f2c6ce8bff666e2f184549
17711771
- name: run-custom-csfle-tests-latest-master
17721772
tags:
17731773
- run-custom-dependency-tests

.evergreen/generate_evergreen_tasks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ const oneOffFuncAsTasks = oneOffFuncs.map(oneOffFunc => ({
550550
}));
551551

552552
[ '5.0', 'rapid', 'latest' ].forEach(version => {
553-
[ '41afd44ca04d246998969c53de4e0f22802b0c8a', 'master' ].forEach(ref => {
553+
[ '4e4613a0e725a8ba10f2c6ce8bff666e2f184549', 'master' ].forEach(ref => {
554554
oneOffFuncAsTasks.push({
555555
name: `run-custom-csfle-tests-${version}-${ref === 'master' ? ref : 'pinned-commit'}`,
556556
tags: ['run-custom-dependency-tests'],

src/bson.ts

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import type {
66
SerializeOptions
77
} from 'bson';
88

9+
/** @internal */
910
// eslint-disable-next-line @typescript-eslint/no-var-requires
1011
let BSON = require('bson');
1112

@@ -39,6 +40,9 @@ export {
3940
Timestamp
4041
} from 'bson';
4142

43+
/** @internal */
44+
export { BSON };
45+
4246
/**
4347
* BSON Serialization options.
4448
* @public

src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import { MongoClient } from './mongo_client';
1313
import { CancellationToken } from './mongo_types';
1414
import { PromiseProvider } from './promise_provider';
1515

16+
/** @internal */
17+
export { BSON } from './bson';
1618
export {
1719
Binary,
1820
BSONRegExp,

0 commit comments

Comments
 (0)