-
Notifications
You must be signed in to change notification settings - Fork 247
Open
Labels
Description
Tracking follow-up improvements and explorations after successfully upgrading Electron from v25 to v40 #3382
- Replace
net.request()withnet.fetch()- Modern API available since Electron 28
- Location:
src/main/net/request/metal-request.ts
- Replace
req.abort()withreq.destroy()- Location:
src/main/net/request/metal-request.ts:142
- Location:
Migrate main process from CJS to ESM- Electron 28+ supports ESM. Already has
"type": "module"in package.json and a TODO inesbuild.config.mjs:28. - Would change from
"cjs"to"esm"format and output extension from.bundle.cjsto.bundle.js. - Currently deferred/not worth doing right now.
- Electron 28+ supports ESM. Already has
Evaluate replacing@goosewobbler/electron-redux- The library is abandoned but Electron APIs are stable through v40. No urgency.
- Upstream
klarna/electron-reduxv2.0.0 is the same code with worse packaging.@zubridge/electronis an actively maintained alternative if migration is desired.
Reactions are currently unavailable