-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(NODE-4925)!: remove deprecated options and types #3513
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
272af43
feat: remove fullResponse property of commandoperationoptions
baileympearson 0749cfa
feat: remove WriteConcernError.err()
baileympearson 571b74e
feat: remove gssapiCanonicalizeHostName
baileympearson 157ef8d
feat: remove DeleteOptions.single
baileympearson 4fbb8c8
chore: remove usage of single in delete options
baileympearson b7ea756
feat: make ServerOptions and TopologyOptions private
baileympearson ae59f78
feat: make ServerSelector internal
baileympearson 510f373
feat: remove PipeOptions interface
baileympearson 1893944
feat: remove ObjectID export from driver
baileympearson 7898796
feat: remove Projection and ProjectionOperations types
baileympearson fa65ee3
feat: remove BulkWriteOptions.keepGoing
baileympearson 3ff6eef
feat: remove AddUserOptions.digestPassword
baileympearson b98e029
docs: add upgrade guide
baileympearson d175098
Update etc/notes/CHANGES_5.0.0.md
baileympearson 2ee7912
chore: bump TS and TSD to latest, use 4.9.0 narrowing in add user
baileympearson 07daf19
chore: bump remaining tooling
baileympearson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,52 +107,6 @@ describe('Remove', function () { | |
} | ||
}); | ||
|
||
it('should correctly remove only first document', { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to above, removing |
||
metadata: { | ||
requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } | ||
}, | ||
|
||
test: function (done) { | ||
const self = this; | ||
const client = self.configuration.newClient(self.configuration.writeConcernMax(), { | ||
maxPoolSize: 1 | ||
}); | ||
|
||
client.connect(function (err, client) { | ||
const db = client.db(self.configuration.db); | ||
expect(err).to.not.exist; | ||
|
||
db.createCollection('shouldCorrectlyRemoveOnlyFirstDocument', function (err) { | ||
expect(err).to.not.exist; | ||
|
||
const collection = db.collection('shouldCorrectlyRemoveOnlyFirstDocument'); | ||
|
||
collection.insert( | ||
[{ a: 1 }, { a: 1 }, { a: 1 }, { a: 1 }], | ||
{ writeConcern: { w: 1 } }, | ||
function (err) { | ||
expect(err).to.not.exist; | ||
|
||
// Remove the first | ||
collection.remove( | ||
{ a: 1 }, | ||
{ writeConcern: { w: 1 }, single: true }, | ||
function (err, r) { | ||
expect(r).property('deletedCount').to.equal(1); | ||
|
||
collection.find({ a: 1 }).count(function (err, result) { | ||
expect(result).to.equal(3); | ||
client.close(done); | ||
}); | ||
} | ||
); | ||
} | ||
); | ||
}); | ||
}); | ||
} | ||
}); | ||
|
||
it('should not error on empty remove', { | ||
metadata: { | ||
requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Removing the
single
option necessitates refactoring this test to usedeleteOne
. There is already a test fordeleteOne
specifically, and we're removingremove
in another PR, so removing this block of code felt like the correct approach.