-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(NODE-4522)!: remove callback support #3499
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 16 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
17e87cf
test(NODE-4919): import mongodb-legacy in tests
nbbeeken 82ac2b9
move test file, update coverage
nbbeeken 4ac5a2f
test(NODE-4919): import mongodb-legacy in tests
nbbeeken d71a302
feat: remove callbacks from admin.ts
nbbeeken b1d5971
feat: remove callbacks from bulk/common.ts
nbbeeken af01cc7
feat: remove callbacks from change_stream.ts
nbbeeken 28d2093
feat: remove callbacks from collection.ts
nbbeeken 16ee978
feat: remove callbacks from cursors
nbbeeken 5623462
feat: remove callbacks from db.ts
nbbeeken 53ad68e
feat: remove callbacks from mongo_client.ts
nbbeeken 51b0649
feat: remove callbacks from sessions.ts
nbbeeken bfaf3c9
feat: remove callbacks from gridfs
nbbeeken 217101d
async keyword withTransaction and agg.explain
nbbeeken ffcd2d8
fle: bump to promise first fle commit
nbbeeken 5f43565
fix: withSession
nbbeeken c3f2769
rm test file
nbbeeken 4d67771
fix: lint
nbbeeken 7a015e5
fix and skip tests
nbbeeken 84f4f9a
jira ticket
nbbeeken 7c06196
fix: await things
nbbeeken c1d5738
flip messages to check
nbbeeken 266ec54
use fle alpha
nbbeeken 2a1ee77
round one: fight
nbbeeken c12c401
comments
nbbeeken fb12143
consistent default arguments
nbbeeken e0b9538
fix tests, migration
nbbeeken 43a0dbb
strangely close returns undefined
nbbeeken 1ee4f9a
fix test
nbbeeken 66a8942
Merge branch 'main' into NODE-4522-rm-callbacks
nbbeeken a11d175
argument defaulting fix
nbbeeken cad2804
fixup test
nbbeeken 5b7dc71
fix async function strangeness
nbbeeken b489aca
handle close error
nbbeeken c0b36a9
migration suggestions
nbbeeken b91886c
rm todos
nbbeeken b0fda7d
Merge branch 'main' into NODE-4522-rm-callbacks
nbbeeken 5c54370
Merge branch 'main' into NODE-4522-rm-callbacks
nbbeeken 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
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
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.
is it better to use default arg or coalesce assignment 🤔
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.
personal preference is always default arguments? but either is fine. I just prefer not to have to default ourselves - why not let JS do the work for us 🙂
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.
default arg is cleaner imho, but it honestly doesn't matter as long as we're consistent
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.
Made this consistent in the few places it wasn't