Skip to content

Commit 6104c57

Browse files
remove noResponse deprecation - do in node-6377
lint fix
1 parent 56772b7 commit 6104c57

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

src/cmap/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ export class OpMsgRequest {
475475

476476
// flags
477477
this.checksumPresent = false;
478-
this.moreToCome = options.moreToCome || command.writeConcern?.w === 0 || false;
478+
this.moreToCome = options.moreToCome ?? command.writeConcern?.w === 0;
479479
this.exhaustAllowed =
480480
typeof options.exhaustAllowed === 'boolean' ? options.exhaustAllowed : false;
481481
}

src/operations/command.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ export interface CommandOperationOptions
5555
// Admin command overrides.
5656
dbName?: string;
5757
authdb?: string;
58-
/**
59-
* @deprecated
60-
* Will be removed in the next major version. Set writeConcern.w to 0 instead.
61-
*
62-
* **WARNING:** When this flag is true, it may result in indeterminate driver behavior.
63-
*/
6458
noResponse?: boolean;
6559
}
6660

test/integration/node-specific/mongo_client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ describe('class MongoClient', function () {
698698
expect(startedEvents).to.have.lengthOf(1);
699699
expect(startedEvents[0]).to.have.property('commandName', 'endSessions');
700700
expect(endEvents).to.have.lengthOf(1);
701-
expect(endEvents[0]).to.property('reply', undefined);
701+
expect(endEvents[0]).to.have.property('reply', undefined); // noReponse: true
702702
});
703703

704704
context('when server selection would return no servers', () => {

0 commit comments

Comments
 (0)