electron/patches
trop[bot] 10fb533bc3
fix: don't copy 'package.json's out of ASAR file (#46477)
* fix: don't copy 'package.json's out of ASAR file

New Node.js module resolution system reads `package.json` from imported
modules by reading from the file natively in C++ without calling into
`fs.readFileSync`. The ASAR FS wrapper code had copied files out into a
temporary folder as a workaround, but it is inefficient and does not
cover all module resolution mechanisms in Node.js.

In this change we expose `overrideReadFileSync` method on the `modules`
binding in Node.js, and use this override to call into ASAR-supporting
`fs.readFileSync`.

Co-authored-by: Fedor Indutny <indutny@signal.org>

* chore: remove erroneous patch

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Fedor Indutny <indutny@signal.org>
Co-authored-by: Keeley Hammond <khammond@slack-corp.com>
Co-authored-by: Keeley Hammond <vertedinde@electronjs.org>
2025-04-03 22:11:20 -07:00
..
boringssl chore: bump chromium to 136.0.7067.0 (36-x-y) (#46017) 2025-03-21 10:21:08 -04:00
chromium feat: add support for associating a Menu with a WebFrameMain (#46350) 2025-04-01 09:00:46 -05:00
devtools_frontend chore: bump chromium to 136.0.7067.0 (36-x-y) (#46017) 2025-03-21 10:21:08 -04:00
ffmpeg chore: bump chromium to 131.0.6734.0 (main) (#43769) 2024-09-25 06:19:39 -05:00
Mantle chore: bump chromium to 096e5313aaf19dfa0c4710145c34d (master) (#26535) 2020-12-14 10:57:36 -08:00
nan chore: bump chromium to 135.0.7041.2 (main) (#45850) 2025-02-28 17:29:23 -05:00
node fix: don't copy 'package.json's out of ASAR file (#46477) 2025-04-03 22:11:20 -07:00
perfetto chore: bump chromium to 128.0.6558.0 (main) (#42413) 2024-07-02 09:51:33 +02:00
ReactiveObjC chore: bump chromium to 94.0.4584.0 (main) (#30030) 2021-07-26 09:02:16 -07:00
reclient-configs chore: bump chromium to 124.0.6359.0 (main) (#41584) 2024-03-15 14:03:42 -04:00
sqlite build: reland bump Node.js to v22.9.0 (#44597) 2024-11-13 15:34:30 +01:00
squirrel.mac chore: bump chromium to 129.0.6630.0 (main) (#43087) 2024-08-02 09:02:11 -05:00
v8 chore: bump chromium to 136.0.7067.0 (36-x-y) (#46017) 2025-03-21 10:21:08 -04:00
webrtc build: combine pipewire patches (#46145) 2025-03-21 15:55:55 -04:00
config.json build: reland bump Node.js to v22.9.0 (#44597) 2024-11-13 15:34:30 +01:00
README.md docs: add a dev doc describing the patch system (#20489) 2019-10-09 14:48:09 -07:00