#49697: fix: restore macos 12 support in Node 24
Merged
Description of Change
Addresses #49691
Ref nodejs/node@8b40221
This PR fixes an unintentional/unannounced breaking change, where certain native modules would no longer build for MacOS 12 (which has been EOL'ed by Apple and Node). Electron will follow Chromium's lead and deprecate MacOS 12 with M151 (see https://crbug.com/473856753), and so we should allow for building until then.
This patch can be removed at the M151 branch point.
Checklist
- PR description included
- I have built and tested this PR
-
npm testpasses - tests are changed or added
- relevant API documentation, tutorials, and examples are updated and follow the documentation style guide
- PR release notes describe the change in a way relevant to app developers, and are capitalized, punctuated, and past tense.
Release Notes
Notes: Fixed an issue where native modules would either crash or not compile for MacOS 12.
Backports
Semver Impact
Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron