dsanders11

#47968: fix: allow importing from electron/utility at runtime

Merged
Created: Aug 5, 2025, 4:36:06 PM
Merged: Aug 7, 2025, 2:53:42 AM
4 comments
Target: main

Description of Change

Fixes importing from electron/utility since currently the following will be typed correctly, but throw a ERR_MODULE_NOT_FOUND error at runtime:

const { net } = require('electron/utility');

net.request('https://electronjs.org')

Checklist

Release Notes

Notes: Fixed an issue where importing from electron/utility threw a ERR_MODULE_NOT_FOUND error at runtime

Backports

36-x-y
Merged
PR Number
#47987
Merged At
Aug 7, 2025, 10:27:21 AM
Released In
Not yet
Release Date
Not yet
37-x-y
Merged
PR Number
#47988
Merged At
Aug 7, 2025, 9:30:57 AM
Released In
Not yet
Release Date
Not yet
38-x-y
Merged
PR Number
#47989
Merged At
Aug 7, 2025, 5:12:42 AM
Released In
v38.0.0-beta.2
Release Date
Aug 7, 2025, 8:31:56 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