#49524: docs: correct type for process.noDeprecation
Merged
Description of Change
Closes #49213.
Fixes a type error where process.noDeprecation was typed only boolean but should have been boolean | undefined. In Node.js (whence this property originates) unless --no-deprecation is passed it's undefined by default.
electron on git:fix-proc-no-deprecation ❯ e node 11:50AM
Running "/Users/codebytere/Developer/electron-gn/src/out/Testing/Electron.app/Contents/MacOS/Electron"
Welcome to Node.js v24.13.0.
Type ".help" for more information.
> process.noDeprecation
undefined
electron on git:fix-proc-no-deprecation ❯ e node --no-deprecation 11:52AM
Running "/Users/codebytere/Developer/electron-gn/src/out/Testing/Electron.app/Contents/MacOS/Electron --no-deprecation"
Welcome to Node.js v24.13.0.
Type ".help" for more information.
> process.noDeprecation
true
Checklist
- PR description included
-
npm testpasses - 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: none
Backports
39-x-y
MergedPR Number
#49545Merged At
Jan 27, 2026, 4:37:33 AM
Released In
v39.4.0Release Date
Jan 28, 2026, 9:59:49 AM
40-x-y
MergedPR Number
#49544Merged At
Jan 27, 2026, 4:37:19 AM
Released In
v40.1.0Release Date
Jan 28, 2026, 1:57:52 PM
41-x-y
MergedPR Number
#49546Merged At
Jan 27, 2026, 4:34:36 AM
Released In
v41.0.0-alpha.4Release Date
Jan 29, 2026, 7:31:20 AM
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