Skip to content

Commit 2eb85d2

Browse files
authored
chore: move ConnectionString into separate package MONGOSH-829 (#952)
1 parent 7227a29 commit 2eb85d2

15 files changed

+60
-413
lines changed

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

Lines changed: 8 additions & 16 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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@
3232
"bson": "^4.4.0",
3333
"mongodb": "4.0.0-beta.5",
3434
"mongodb-build-info": "^1.1.1",
35-
"whatwg-url": "^8.4.0"
35+
"mongodb-connection-string-url": "^1.0.0"
3636
},
3737
"devDependencies": {
38-
"@types/bl": "^2.1.0",
39-
"@types/whatwg-url": "^8.0.0"
38+
"@types/bl": "^2.1.0"
4039
},
4140
"optionalDependencies": {
4241
"mongodb-client-encryption": "^1.2.5"

packages/service-provider-core/src/connection-string.spec.ts

Lines changed: 0 additions & 168 deletions
This file was deleted.

packages/service-provider-core/src/connection-string.ts

Lines changed: 0 additions & 152 deletions
This file was deleted.

packages/service-provider-core/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import './textencoder-polyfill'; // for mongodb-connection-string-url in the java-shell
12
import ServiceProvider, { ServiceProviderCore } from './service-provider';
23
import getConnectInfo, { ConnectInfo } from './connect-info';
34
import { ReplPlatform } from './platform';
@@ -23,7 +24,6 @@ import {
2324
} from 'bson';
2425
import { bsonStringifiers } from './printable-bson';
2526
import ShellAuthOptions from './shell-auth-options';
26-
import { ConnectionString } from './connection-string';
2727
export * from './all-transport-types';
2828
export * from './all-fle-types';
2929
import { isFastFailureConnectionError } from './fast-failure-connect';
@@ -58,6 +58,5 @@ export {
5858
bson,
5959
bsonStringifiers,
6060
ConnectInfo,
61-
ConnectionString,
6261
isFastFailureConnectionError
6362
};

packages/service-provider-core/src/whatwg-url.spec.ts renamed to packages/service-provider-core/src/textencoder-polyfill.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { textEncodingPolyfill } from './whatwg-url';
1+
import { textEncodingPolyfill } from './textencoder-polyfill';
22
import { expect } from 'chai';
33

44
describe('TextDecoder/TextEncoder polyfill', () => {

0 commit comments

Comments
 (0)