-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Change Streams, TypeScript
Use Case
As a user of the mongodb nodejs driver with Node v24
I want to iterate known types on cursors
So that development feels seamless and intuitive
User Experience
- Consumers of the driver should have cursor streams iterated with the same known stream iterable (this currently works with Node v22 and lower)
Dependencies
- upstream and/or downstream requirements and timelines to bear in mind
Risks/Unknowns
- N/A
Acceptance Criteria
Implementation Requirements
- a driver cursor should type-persist the known iterable of the stream after stream() is called. See this thread for implementation suggestions
Testing Requirements
- existing tests which assert on stream types between all supported node versions should pass
Documentation Requirements
- DOCSP ticket, API docs, etc
Follow Up Requirements
- additional tickets to file, required releases, etc
- if node behavior differs/will differ from other drivers, confirm with dbx devs what standard to aim for and what plan, if any, exists to reconcile the diverging behavior moving forward
- is depended on by
-
NODE-7621 make @types/node an optional ranged peer dependency
-
- Closed
-