Skip to content

Commit 00ac1dc

Browse files
authored
chore(deps): update driver, bson to 5.x COMPASS-6471 (#4053)
1 parent 6f0050b commit 00ac1dc

File tree

64 files changed

+1123
-882
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1123
-882
lines changed

.depalignrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
"babel-loader": ["^7.1.5"],
132132
"@babel/core": ["7.16.0"],
133133
"@babel/parser": ["7.16.0"],
134-
"js-yaml": ["^3.13.1"]
134+
"js-yaml": ["^3.13.1"],
135+
"bson": ["^4.4.1", "^5.0.0"]
135136
}
136137
}

configs/webpack-config-compass/src/loaders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const cloudSupportedBrowserslistConfig =
1818
'last 2 Chrome versions, last 2 Safari versions, last 2 Firefox versions';
1919

2020
export const javascriptLoader = (args: ConfigArgs, web = false) => ({
21-
test: /\.(mjs|jsx?|tsx?)$/,
21+
test: /\.(mjs|c?jsx?|tsx?)$/,
2222
exclude: [
2323
/\bnode_modules\b/,
2424
// Otherwise core-js will polyfill itself with core-js and this doesn't work

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"scripts": {
1212
"bootstrap": "npm install && lerna run bootstrap --stream",
1313
"bootstrap-ci": "npm ci && lerna run bootstrap",
14+
"postinstall": "node scripts/fixup-bson5-packagejson.js",
1415
"precheck": "npm run depcheck && npm run check-logids && npm run check-leafygreen-dependency-usage",
1516
"changed": "node ./scripts/changed.js",
1617
"check": "lerna run check --stream",

packages/bson-transpilers/codegeneration/javascript/Visitor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,8 @@ module.exports = (CodeGenerationVisitor) => class Visitor extends CodeGeneration
585585
Map: bson.Map,
586586
MaxKey: bson.MaxKey,
587587
MinKey: bson.MinKey,
588-
ObjectID: bson.ObjectID,
589-
ObjectId: bson.ObjectID,
588+
ObjectID: bson.ObjectId,
589+
ObjectId: bson.ObjectId,
590590
BSONSymbol: bson.BSONSymbol,
591591
Timestamp: bson.Timestamp,
592592
Code: function(c, s) {

packages/bson-transpilers/codegeneration/shell/Visitor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = (JavascriptVisitor) => class Visitor extends JavascriptVisitor
2929
Map: bson.Map,
3030
MaxKey: bson.MaxKey,
3131
MinKey: bson.MinKey,
32-
ObjectId: bson.ObjectID,
32+
ObjectId: bson.ObjectId,
3333
BSONSymbol: bson.BSONSymbol,
3434
Timestamp: bson.Timestamp,
3535
Code: function(c, s) {

packages/bson-transpilers/test/run-yaml.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const executeJavascript = (input) => {
4040
Map: bson.Map,
4141
MaxKey: bson.MaxKey,
4242
MinKey: bson.MinKey,
43-
ObjectID: bson.ObjectID,
44-
ObjectId: bson.ObjectID,
43+
ObjectID: bson.ObjectId,
44+
ObjectId: bson.ObjectId,
4545
BSONSymbol: bson.BSONSymbol,
4646
Timestamp: bson.Timestamp,
4747
Code: function(c, s) {

packages/compass-aggregations/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@mongodb-js/explain-plan-helper": "^1.0.2",
4848
"@mongodb-js/mongodb-constants": "^0.1.5",
4949
"@mongodb-js/mongodb-redux-common": "^2.0.4",
50-
"bson": "^4.4.1",
50+
"bson": "^5.0.0",
5151
"compass-preferences-model": "^2.5.1",
5252
"hadron-document": "^8.1.0",
5353
"react": "^17.0.2"
@@ -72,17 +72,17 @@
7272
"chai": "^4.3.6",
7373
"debug": "^4.2.0",
7474
"depcheck": "^1.4.1",
75-
"ejson-shell-parser": "^1.2.0",
75+
"ejson-shell-parser": "^1.2.1",
7676
"electron": "^22.0.2",
7777
"enzyme": "^3.11.0",
7878
"eslint": "^7.25.0",
7979
"hadron-app-registry": "^9.0.3",
8080
"lodash": "^4.17.21",
8181
"mocha": "^8.4.0",
82-
"mongodb": "^4.13.0",
82+
"mongodb": "^5.0.0",
8383
"mongodb-data-service": "^22.4.1",
8484
"mongodb-ns": "^2.4.0",
85-
"mongodb-query-parser": "^2.4.6",
85+
"mongodb-query-parser": "^2.4.8",
8686
"nyc": "^15.1.0",
8787
"prettier": "^2.7.1",
8888
"prop-types": "^15.7.2",
@@ -107,7 +107,7 @@
107107
"@mongodb-js/explain-plan-helper": "^1.0.2",
108108
"@mongodb-js/mongodb-constants": "^0.1.5",
109109
"@mongodb-js/mongodb-redux-common": "^2.0.4",
110-
"bson": "^4.4.1",
110+
"bson": "^5.0.0",
111111
"compass-preferences-model": "^2.5.1",
112112
"hadron-document": "^8.1.0"
113113
},

packages/compass-collection/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@
6060
"peerDependencies": {
6161
"@mongodb-js/compass-components": "^1.5.0",
6262
"@mongodb-js/compass-logging": "^1.1.2",
63-
"bson": "^4.4.1",
63+
"bson": "^5.0.0",
6464
"hadron-app-registry": "^9.0.3",
6565
"hadron-ipc": "^3.1.1",
6666
"react": "^17.0.2"
6767
},
6868
"dependencies": {
6969
"@mongodb-js/compass-components": "^1.5.0",
7070
"@mongodb-js/compass-logging": "^1.1.2",
71-
"bson": "^4.4.1",
71+
"bson": "^5.0.0",
7272
"hadron-app-registry": "^9.0.3",
7373
"hadron-ipc": "^3.1.1"
7474
},
@@ -92,7 +92,7 @@
9292
"eslint": "^7.25.0",
9393
"lodash": "^4.17.21",
9494
"mocha": "^8.4.0",
95-
"mongodb": "^4.13.0",
95+
"mongodb": "^5.0.0",
9696
"mongodb-collection-model": "^5.4.1",
9797
"mongodb-connection-string-url": "^2.6.0",
9898
"mongodb-data-service": "^22.4.1",

packages/compass-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"@react-aria/utils": "^3.13.1",
7777
"@react-aria/visually-hidden": "^3.3.1",
7878
"@react-stately/tooltip": "^3.0.5",
79-
"bson": "^4.7.1",
79+
"bson": "^5.0.0",
8080
"focus-trap-react": "^8.4.2",
8181
"hadron-document": "^8.1.0",
8282
"hadron-type-checker": "^7.0.0",

0 commit comments

Comments
 (0)