change cursor.stream() to ensure a non-any iterable in @types/node v24

XMLWordPrintableJSON

    • Not Needed
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Unassigned
            Reporter:
            Johnathan Martell
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: