Skip to content

Commit

Permalink
fix(NODE-4555): export BSON internally (#3367)
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Aug 17, 2022
1 parent 5086ead commit 4ce6e4c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .evergreen/config.yml
Expand Up @@ -1707,7 +1707,7 @@ tasks:
- func: bootstrap kms servers
- func: run custom csfle tests
vars:
CSFLE_GIT_REF: 41afd44ca04d246998969c53de4e0f22802b0c8a
CSFLE_GIT_REF: 4e4613a0e725a8ba10f2c6ce8bff666e2f184549
- name: run-custom-csfle-tests-5.0-master
tags:
- run-custom-dependency-tests
Expand Down Expand Up @@ -1737,7 +1737,7 @@ tasks:
- func: bootstrap kms servers
- func: run custom csfle tests
vars:
CSFLE_GIT_REF: 41afd44ca04d246998969c53de4e0f22802b0c8a
CSFLE_GIT_REF: 4e4613a0e725a8ba10f2c6ce8bff666e2f184549
- name: run-custom-csfle-tests-rapid-master
tags:
- run-custom-dependency-tests
Expand Down Expand Up @@ -1767,7 +1767,7 @@ tasks:
- func: bootstrap kms servers
- func: run custom csfle tests
vars:
CSFLE_GIT_REF: 41afd44ca04d246998969c53de4e0f22802b0c8a
CSFLE_GIT_REF: 4e4613a0e725a8ba10f2c6ce8bff666e2f184549
- name: run-custom-csfle-tests-latest-master
tags:
- run-custom-dependency-tests
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/generate_evergreen_tasks.js
Expand Up @@ -550,7 +550,7 @@ const oneOffFuncAsTasks = oneOffFuncs.map(oneOffFunc => ({
}));

[ '5.0', 'rapid', 'latest' ].forEach(version => {
[ '41afd44ca04d246998969c53de4e0f22802b0c8a', 'master' ].forEach(ref => {
[ '4e4613a0e725a8ba10f2c6ce8bff666e2f184549', 'master' ].forEach(ref => {
oneOffFuncAsTasks.push({
name: `run-custom-csfle-tests-${version}-${ref === 'master' ? ref : 'pinned-commit'}`,
tags: ['run-custom-dependency-tests'],
Expand Down
4 changes: 4 additions & 0 deletions src/bson.ts
Expand Up @@ -6,6 +6,7 @@ import type {
SerializeOptions
} from 'bson';

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

Expand Down Expand Up @@ -39,6 +40,9 @@ export {
Timestamp
} from 'bson';

/** @internal */
export { BSON };

/**
* BSON Serialization options.
* @public
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Expand Up @@ -13,6 +13,8 @@ import { MongoClient } from './mongo_client';
import { CancellationToken } from './mongo_types';
import { PromiseProvider } from './promise_provider';

/** @internal */
export { BSON } from './bson';
export {
Binary,
BSONRegExp,
Expand Down

0 comments on commit 4ce6e4c

Please sign in to comment.