Skip to content

Commit c3ec0c7

Browse files
authored
feat: bump driver to 4.1.0 MONGOSH-868 (#1055)
1 parent 70905ea commit c3ec0c7

File tree

13 files changed

+132
-61
lines changed

13 files changed

+132
-61
lines changed

package-lock.json

Lines changed: 24 additions & 6 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": "addaleax/node-mongodb-native#71d4c39e5c858f49d10e840df626eca4da653e28",
125+
"mongodb": "^4.1.0",
126126
"mongodb-download-url": "^1.0.3",
127127
"mongodb-js-precommit": "^2.0.0",
128128
"nock": "^13.0.11",

packages/i18n/src/locales/en_US.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ const translations: Catalog = {
16681668
description: 'Aborts the session’s transaction.'
16691669
},
16701670
advanceClusterTime: {
1671-
description: 'advanceClusterTime is not currently supported due it not being supported in the driver, see NODE-2843.'
1671+
description: 'Advances the clusterTime for a Session to the provided clusterTime.'
16721672
}
16731673
}
16741674
}

packages/java-shell/package-lock.json

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

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

Lines changed: 34 additions & 3 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
@@ -33,7 +33,7 @@
3333
"@mongosh/errors": "0.0.0-dev.0",
3434
"@mongosh/i18n": "0.0.0-dev.0",
3535
"bson": "^4.4.1",
36-
"mongodb": "addaleax/node-mongodb-native#71d4c39e5c858f49d10e840df626eca4da653e28",
36+
"mongodb": "^4.1.0",
3737
"mongodb-build-info": "^1.2.0",
3838
"mongodb-connection-string-url": "^1.0.0"
3939
},

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

Lines changed: 29 additions & 9 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
@@ -42,7 +42,7 @@
4242
"@mongosh/service-provider-core": "0.0.0-dev.0",
4343
"@mongosh/types": "0.0.0-dev.0",
4444
"@types/sinon-chai": "^3.2.3",
45-
"mongodb": "addaleax/node-mongodb-native#71d4c39e5c858f49d10e840df626eca4da653e28",
45+
"mongodb": "^4.1.0",
4646
"saslprep": "mongodb-js/saslprep#v1.0.4",
4747
"mongodb-connection-string-url": "^1.0.0"
4848
},

packages/service-provider-server/src/cli-service-provider.integration.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('CliServiceProvider [integration]', function() {
7676
await serviceProvider.runCommandWithCheck('admin', { ping: 1 });
7777
expect.fail('missed exception');
7878
} catch (err) {
79-
expect(err.name).to.equal('MongoDriverError');
79+
expect(err.name).to.equal('MongoNotConnectedError');
8080
}
8181
await reconnect();
8282
await serviceProvider.runCommandWithCheck('admin', { ping: 1 });

packages/service-provider-server/src/cli-service-provider.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,6 @@ export async function connectMongoClient(uri: string, clientOptions: MongoClient
286286
}
287287
}
288288
uri = await resolveMongodbSrv(uri, bus);
289-
if (uri.startsWith('mongodb://') || uri.startsWith('mongodb+srv://')) {
290-
// Hack for Load Balancer support until the driver side is finished:
291-
const cs = new ConnectionString(uri);
292-
if (cs.searchParams.get('loadBalanced') === 'true' &&
293-
!cs.searchParams.has('maxPoolSize')) {
294-
cs.searchParams.set('maxPoolSize', '1');
295-
uri = cs.href;
296-
}
297-
}
298289
const client = new MClient(uri, clientOptions);
299290
await connectWithFailFast(client, bus);
300291
return client;

0 commit comments

Comments
 (0)