codebytere

#49524: docs: correct type for process.noDeprecation

Merged
Created: Jan 26, 2026, 4:53:41 AM
Merged: Jan 27, 2026, 4:02:51 AM
4 comments
Target: main

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

Release Notes

Notes: none

Backports

39-x-y
Merged
PR Number
#49545
Merged At
Jan 27, 2026, 4:37:33 AM
Released In
v39.4.0
Release Date
Jan 28, 2026, 9:59:49 AM
40-x-y
Merged
PR Number
#49544
Merged At
Jan 27, 2026, 4:37:19 AM
Released In
v40.1.0
Release Date
Jan 28, 2026, 1:57:52 PM
41-x-y
Merged
PR Number
#49546
Merged At
Jan 27, 2026, 4:34:36 AM
Released In
v41.0.0-alpha.4
Release 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