Skip to content

Commit 2d5cb6f

Browse files
authored
chore(deps): bump mongodb-connection-string-url to 2.0.0 (#1064)
This is only a major bump because the release dropped out-of-the-box Node.js 10.x support, which we don’t care about here.
1 parent fae1307 commit 2d5cb6f

File tree

5 files changed

+47
-15
lines changed

5 files changed

+47
-15
lines changed

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

Lines changed: 24 additions & 5 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"bson": "^4.4.1",
3636
"mongodb": "^4.1.0",
3737
"mongodb-build-info": "^1.2.0",
38-
"mongodb-connection-string-url": "^1.1.2"
38+
"mongodb-connection-string-url": "^2.0.0"
3939
},
4040
"optionalDependencies": {
4141
"mongodb-client-encryption": "^1.2.6"

packages/service-provider-core/src/textencoder-polyfill.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
// so we need to (crudely) polyfill that as well in order to use that
44
// pure-JS implementation.
55
if (
6-
typeof require('util').TextDecoder !== 'function' ||
7-
typeof require('util').TextEncoder !== 'function'
6+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
7+
// @ts-ignore
8+
typeof TextDecoder !== 'function' || typeof TextEncoder !== 'function'
89
) {
9-
Object.assign(require('util'), textEncodingPolyfill());
10+
// eslint-disable-next-line no-new-func
11+
Object.assign(Function('return this')(), textEncodingPolyfill());
1012
}
1113

1214
// Basic encoder/decoder polyfill for java-shell environment (see above)

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

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

packages/service-provider-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@types/sinon-chai": "^3.2.3",
4545
"mongodb": "^4.1.0",
4646
"saslprep": "mongodb-js/saslprep#v1.0.4",
47-
"mongodb-connection-string-url": "^1.1.2"
47+
"mongodb-connection-string-url": "^2.0.0"
4848
},
4949
"optionalDependencies": {
5050
"mongodb-client-encryption": "^1.2.6",

0 commit comments

Comments
 (0)