Update minimum supported Node version to 22

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Dependencies
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a driver engineer,

      I want to stay up to date with our supported Node versions,

      So that we do not need to support long EOL'd node versions and so that we can use newer js syntax and features.

      User Experience

      • Users will see deprecation warnings when using our packages with unsupported node versions

      Dependencies

      • Requires mongosh/Compass to have dropped support for Node 20. In V7 this was tracked from the downstream side via a linked investigation ticket (COMPASS-9916) rather than as a blocker on this ticket.

      Risks/Unknowns

      • N/A

      Acceptance Criteria

      Implementation Requirements

      • Adjust the minimum supported version to the lowest LTS (at time of Node v8), pinned to the latest Node 22 minor version – following the V7 precedent of pinning 20.19.0 rather than 20.0.0
      • Apply across all published packages: mongodb, bson, mongodb-client-encryption, mongodb-connection-string-url, kerberos, zstd
      • Remove support for Node 20 in CI
      • Evaluate upgrading the TS compilation target from ES2023 to whichever target corresponds to Node 22
      • Update dependabot config to remove exclusions that are no longer relevant

      Testing Requirements

      • n/a

      Documentation Requirements

      • Release note for migration guide

      Follow Up Requirements

            Assignee:
            Unassigned
            Reporter:
            Sergey Zelenov
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: