Skip to content

Conversation

@PavelSafronov
Copy link
Contributor

@PavelSafronov PavelSafronov commented Dec 11, 2025

Description

Summary of Changes

Replace process.arch with os.arch()

What is the motivation for this change?

This helps us reduce our runtime dependencies, as part of https://jira.mongodb.org/browse/NODE-6601

Release Highlight

Replaced Node‑specific API (process.arch) with standards‑based equivalent.

This reduces the number of patches needed to run the driver outside Node.js.

Double check the following

  • Lint is passing (npm run check:lint)
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@PavelSafronov PavelSafronov changed the title fix(NODE-7310): Replace process.arch with os.arch() feat(NODE-7310): Replace process.arch with os.arch() Dec 12, 2025
@PavelSafronov PavelSafronov marked this pull request as ready for review December 15, 2025 20:35
@PavelSafronov PavelSafronov requested a review from a team as a code owner December 15, 2025 20:35
@durran durran self-assigned this Dec 16, 2025
@durran durran added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Dec 16, 2025
@durran durran merged commit f0af829 into mongodb:main Dec 17, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Primary Review In Review with primary reviewer, not yet ready for team's eyes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants