Skip to content

Commit 9e5c1c2

Browse files
authored
chore: bump various driver dependencies (#1110)
- [email protected] - [email protected] - [email protected] - [email protected]
1 parent 485cada commit 9e5c1c2

File tree

11 files changed

+135
-129
lines changed

11 files changed

+135
-129
lines changed

package-lock.json

Lines changed: 12 additions & 12 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"karma-typescript": "^5.5.1",
123123
"lerna": "^4.0.0",
124124
"mocha": "^7.1.2",
125-
"mongodb": "^4.1.1",
125+
"mongodb": "^4.1.2",
126126
"mongodb-download-url": "^1.1.2",
127127
"mongodb-js-precommit": "^2.0.0",
128128
"nock": "^13.0.11",

packages/java-shell/src/main/js/all.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// The BSON package tries to use crypto.randomBytes(), but that throws
2+
// in the current browserify replacement for that package.
3+
// We provide a low-quality polyfill for now.
4+
// https://jira.mongodb.org/browse/MONGOSH-988
5+
const crypto = require('crypto');
6+
try {
7+
crypto.randomBytes(1);
8+
} catch (err) {
9+
crypto.randomBytes = function(size) {
10+
const uint8Array = new Uint8Array(size);
11+
for (var i = 0; i < uint8Array.length; i++) {
12+
uint8Array[i] = Math.random() * 256;
13+
}
14+
return size;
15+
};
16+
};
17+
118
const ShellApi = require('../../../../shell-api/');
219
const ShellEvaluator = require('../../../../shell-evaluator/').default;
320

packages/node-runtime-worker-thread/package-lock.json

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

packages/node-runtime-worker-thread/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@mongosh/service-provider-core": "0.0.0-dev.0",
4141
"@mongosh/service-provider-server": "0.0.0-dev.0",
4242
"@mongosh/types": "0.0.0-dev.0",
43-
"bson": "^4.4.1",
43+
"bson": "^4.5.2",
4444
"interruptor": "^1.0.1",
4545
"postmsg-rpc": "^2.4.0"
4646
}

packages/service-provider-core/package-lock.json

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

packages/service-provider-core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
"dependencies": {
3333
"@mongosh/errors": "0.0.0-dev.0",
3434
"@mongosh/i18n": "0.0.0-dev.0",
35-
"bson": "^4.4.1",
36-
"mongodb": "^4.1.1",
35+
"bson": "^4.5.2",
36+
"mongodb": "^4.1.2",
3737
"mongodb-build-info": "^1.2.0",
3838
"mongodb-connection-string-url": "^2.0.0"
3939
},
4040
"optionalDependencies": {
41-
"mongodb-client-encryption": "^1.2.6"
41+
"mongodb-client-encryption": "^1.2.7"
4242
},
4343
"dependency-check": {
4444
"entries": [

0 commit comments

Comments
 (0)