Replace process.arch with os.arch()

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 7.1.0
    • Affects Version/s: None
    • Component/s: None
    • 2
    • Not Needed
    • None
    • Hide

      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.

      Show
      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a... Node.js Driver Developer
      I want... to replace all usages of the global process.arch property with the method os.arch().
      So that... I can standardize on the os module for system information, reducing reliance on the process global which is often missing or shimmed incorrectly in non-Node environments.

      User Experience

      • None; This is an internal refactor. The functionality (detecting system architecture for handshake/metadata) remains identical.

      Dependencies

      • None

      Risks/Unknowns

      • os.arch() is a standard Node.js API that returns the same string values (e.g., 'x64', 'arm64') as process.arch

      Acceptance Criteria

      Implementation Requirements

      • Replace any usages of process.arch with os.arch()

      Testing Requirements

      • all tests pass

      Documentation Requirements

      • Release note

      Follow Up Requirements

      • None

            Assignee:
            Pavel Safronov
            Reporter:
            Sergey Zelenov
            Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: