-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(NODE-4683): make ChangeStream an async iterable #3454
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
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
e71baa6
feat: add asyncIterator
andymina e90d3c7
test: add unresumable error test
andymina c6b4099
test: finish tests for asyncIterator
andymina 3c22f5a
chore: fix linter error
andymina 21bc430
test: add tests to check options consistency
andymina c9ef9e9
test: fix assertion order
andymina 33c4fa6
chore: fix linter error
andymina 46b9ff1
fix: close leaking ChangeStream in test
andymina eb2fc26
test: refactor tests to manually call asyncIterator
andymina 1a3bf2e
test: add test for closing change stream
andymina f76107a
test: add more test cases
andymina c7f5599
fix: revert change to abstract cursor async iterator
andymina 9690249
refactor: lift is4_2 method to global
andymina 232eaaa
test: add test for ignoring errors in close
andymina d9206e8
test: fix failing tests
andymina 470ea73
refactor: move unit tests back to int
andymina c27c159
test: change assertion format for changestream cursor
andymina 876f8f8
test: use for-await syntax instead of manual iteration
andymina 477c3b7
fix: remove only from tests
andymina 9a3c76c
fix: disable no unused vars
andymina d5fd6a0
fix: add eslint disable line
andymina f56753b
test: organize tests better
andymina 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
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.
Uh oh!
There was an error while loading. Please reload this page.