Skip to content
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-4925)!: remove deprecated options and types #3513

Merged
merged 16 commits into from
Jan 5, 2023
Merged

Conversation

baileympearson
Copy link
Contributor

@baileympearson baileympearson commented Jan 4, 2023

Description

What is changing?

This PR removes the following deprecated options and types:

  • CommandOperationOptions.fullResponse
  • gssapiCanonicalizeHostName
  • WriteConcernError.err()
  • DeleteOptions#single
  • BulkWriteOptions#keepGoing
  • Projection and ProjectionOperators types
  • AddUserOptions.digestPassword (but keep the validation and error behavior)
  • ObjectID (in favor of ObjectId)
  • PipeOptions
  • ServerOptions
  • ServerSelector
Is there new documentation needed for these changes?

No.

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@@ -670,21 +670,7 @@ describe('CRUD API', function () {
// Legacy update method
// -------------------------------------------------
const legacyRemove = function () {
db.collection('t4_1').insertMany(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the single option necessitates refactoring this test to use deleteOne. There is already a test for deleteOne specifically, and we're removing remove in another PR, so removing this block of code felt like the correct approach.

@@ -107,52 +107,6 @@ describe('Remove', function () {
}
});

it('should correctly remove only first document', {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to above, removing single means this test no longer passes. To make this test pass, we would rework it to use deleteOne, but deleteOne is tested elsewhere.

@baileympearson baileympearson changed the title WIP remove deprecated APIs feat(NODE-4925)!: remove deprecated options and types Jan 5, 2023
@baileympearson baileympearson marked this pull request as ready for review January 5, 2023 14:24
@nbbeeken nbbeeken self-requested a review January 5, 2023 14:33
@nbbeeken nbbeeken added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Jan 5, 2023
etc/notes/CHANGES_5.0.0.md Outdated Show resolved Hide resolved
src/operations/add_user.ts Outdated Show resolved Hide resolved
@baileympearson
Copy link
Contributor Author

not sure why the patch isn't being picked up - it's here https://spruce.mongodb.com/version/63b6e8e3a4cf470aa9f8def7/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

package.json Outdated Show resolved Hide resolved
@nbbeeken nbbeeken removed the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Jan 5, 2023
@nbbeeken nbbeeken added the Team Review Needs review from team label Jan 5, 2023
@nbbeeken nbbeeken merged commit 8f8ea45 into main Jan 5, 2023
@nbbeeken nbbeeken deleted the no-story-asdf branch January 5, 2023 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team Review Needs review from team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants