Skip to content

Commit 68211bb

Browse files
replace with bson import
1 parent e2e36f9 commit 68211bb

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

package-lock.json

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/mongodb-constants/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"reformat": "npm run prettier -- --write ."
5353
},
5454
"peerDependencies": {
55-
"mongodb": "^6.9.0"
55+
"bson": "^6.10.3"
5656
},
5757
"devDependencies": {
5858
"@mongodb-js/eslint-config-devtools": "0.9.11",
@@ -63,13 +63,13 @@
6363
"@types/mocha": "^9.1.1",
6464
"@types/semver": "^7.7.0",
6565
"@types/sinon-chai": "^3.2.5",
66+
"bson": "^6.10.3",
6667
"acorn": "^8.14.1",
6768
"chai": "^4.5.0",
6869
"depcheck": "^1.4.7",
6970
"eslint": "^7.25.0",
7071
"gen-esm-wrapper": "^1.1.3",
7172
"mocha": "^8.4.0",
72-
"mongodb": "^6.9.0",
7373
"nyc": "^15.1.0",
7474
"prettier": "^3.5.3",
7575
"sinon": "^9.2.3",

packages/mongodb-constants/src/views.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from 'chai';
22
import { VIEW_PIPELINE_UTILS } from './views';
3-
import type { Document } from 'mongodb';
3+
import type { Document } from 'bson';
44

55
describe('views', function () {
66
describe('isPipelineSearchQueryable', function () {

packages/mongodb-constants/src/views.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** utils related to view pipeline **/
22

3-
import type { Document } from 'mongodb';
3+
import type { Document } from 'bson';
44
import semver from 'semver';
55

66
const MIN_VERSION_FOR_VIEW_SEARCH_COMPATIBILITY_DE = '8.0.0';

0 commit comments

Comments
 (0)