-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(NODE-5207): deprecate unsupported runCommand options and add spec tests #3643
Conversation
c70010e
to
2e26e93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to address failures here and in the specs repo
src/cmap/connection.ts
Outdated
@@ -488,18 +488,19 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> { | |||
options: CommandOptions | undefined, | |||
callback: Callback | |||
): void { | |||
const readPreference = getReadPreference(cmd, options); | |||
cmd = { ...cmd }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although this leaves the supplied command untouched outside of the scope of this method can we assign it to a new const to avoid any potential confusion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, updated
Description
What is changing?
DRIVERS-2577
mongodb/specifications#1389
Is there new documentation needed for these changes?
No.
Double check the following
npm run check:lint
scripttype(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript