Skip to content

Commit 1646c21

Browse files
committed
chore(deps): bump mongodb to 4.0.0-beta.6
1 parent f752cba commit 1646c21

File tree

14 files changed

+80
-32
lines changed

14 files changed

+80
-32
lines changed

package-lock.json

Lines changed: 47 additions & 3 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
@@ -119,7 +119,7 @@
119119
"karma-typescript": "^5.5.1",
120120
"lerna": "^4.0.0",
121121
"mocha": "^7.1.2",
122-
"mongodb": "4.0.0-beta.5",
122+
"mongodb": "4.0.0-beta.6",
123123
"mongodb-download-url": "^1.0.1",
124124
"mongodb-js-precommit": "^2.0.0",
125125
"nock": "^13.0.11",

packages/cli-repl/test/e2e-auth.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ describe('Auth e2e', function() {
982982
'--authenticationMechanism', 'SCRAM-SHA-1'
983983
] });
984984
await eventually(() => {
985-
shell.assertContainsOutput('MongoError: Authentication failed.');
985+
shell.assertContainsOutput('MongoServerError: Authentication failed.');
986986
});
987987
});
988988
it('cannot auth when authenticationMechanism mismatches (sha1 -> sha256)', async() => {
@@ -995,7 +995,7 @@ describe('Auth e2e', function() {
995995
'--authenticationMechanism', 'SCRAM-SHA-256'
996996
] });
997997
await eventually(() => {
998-
shell.assertContainsOutput('MongoError: Authentication failed.');
998+
shell.assertContainsOutput('MongoServerError: Authentication failed.');
999999
});
10001000
});
10011001
it('does not fail with kerberos not found for GSSAPI', async() => {

packages/cli-repl/test/e2e-direct.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe('e2e direct connection', () => {
9595
await shell.waitForPrompt();
9696
await shell.executeLine('use admin');
9797
await shell.executeLine('db.runCommand({ listCollections: 1 })');
98-
shell.assertContainsError('MongoError: not primary');
98+
shell.assertContainsError('MongoServerError: not primary');
9999
});
100100

101101
it('lists collections when readPreference is in the connection string', async() => {

packages/cli-repl/test/e2e.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -893,9 +893,10 @@ describe('e2e', function() {
893893
const shell = TestShell.start({ args: [
894894
`${await testServer.connectionString()}/${dbName}`, '--apiVersion', '1'
895895
] });
896-
await shell.waitForPrompt();
897-
expect(await shell.executeLine('db.coll.find().toArray()'))
898-
.to.include("Unrecognized field 'apiVersion'");
896+
if ((await shell.waitForPromptOrExit()).state === 'prompt') {
897+
await shell.executeLine('db.coll.find().toArray()');
898+
}
899+
expect(shell.output).to.match(/MongoServer(Selection)?Error/);
899900
});
900901
});
901902

packages/cli-repl/test/test-shell.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ export class TestShell {
158158

159159
async waitForPromptOrExit(): Promise<TestShellStartupResult> {
160160
return Promise.race([
161-
this.waitForPrompt().then(() => ({ state: 'prompt' } as TestShellStartupResult)),
162-
this.waitForExit().then(c => ({ state: 'exit', exitCode: c }) as TestShellStartupResult),
161+
this.waitForPrompt().then(() => ({ state: 'prompt' }) as const),
162+
this.waitForExit().then(c => ({ state: 'exit', exitCode: c }) as const),
163163
]);
164164
}
165165

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

Lines changed: 4 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
@@ -30,7 +30,7 @@
3030
"@mongosh/errors": "0.0.0-dev.0",
3131
"@mongosh/i18n": "0.0.0-dev.0",
3232
"bson": "^4.4.0",
33-
"mongodb": "4.0.0-beta.5",
33+
"mongodb": "4.0.0-beta.6",
3434
"mongodb-build-info": "^1.2.0",
3535
"mongodb-connection-string-url": "^1.0.0"
3636
},

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

Lines changed: 4 additions & 3 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
@@ -41,7 +41,7 @@
4141
"@mongosh/errors": "0.0.0-dev.0",
4242
"@mongosh/service-provider-core": "0.0.0-dev.0",
4343
"@types/sinon-chai": "^3.2.3",
44-
"mongodb": "4.0.0-beta.5",
44+
"mongodb": "4.0.0-beta.6",
4545
"saslprep": "mongodb-js/saslprep#v1.0.4",
4646
"mongodb-connection-string-url": "^1.0.0"
4747
},

0 commit comments

Comments
 (0)