Update minimum supported Node version to 22

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Dependencies
    • 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 versions below 22

      Risks/Unknowns

      • Node 22 reaches EOL on 2027-04-30. If the V8 release slips substantially past that date, revisit whether Node 24 (EOL 2028-04-30) should be the minimum instead.

      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
      • Apply across all published packages: mongodb, bson, mongodb-client-encryption, mongodb-connection-string-url, kerberos, zstd
      • Remove support for EOL node versions in ci (native bindings only)
      • 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

      • n/a

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

              Created:
              Updated: