Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(NODE-4555): export BSON internally #3367

Merged
merged 3 commits into from
Aug 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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