Commit 89baf57
committed
fix: replace @eggjs/yauzl with upstream yauzl 3.4.0
The fork depends on fd-slicer2, whose ReadStream loses data when piped on
Node.js 26: any zip entry over 64 KiB delivers roughly the first chunk and
then stalls with no end, no error, and no close. That is why zip.uncompress()
hangs until the test timeout on Node 26 while passing on 18 through 24.
Upstream yauzl 3.4.0 dropped fd-slicer entirely, its only dependency now
being pend, and does not have the bug. Verified identical behaviour on the
contain-absolute-path.zip fixture that motivated the fork in the first place:
31 entries, Buffer fileNames under decodeStrings:false, externalFileAttributes
intact, and the leading "/" entry still read. Suite is 171 passing on both
Node 24 and Node 26.
The only visible difference is that yauzl 3.x capitalises the "end of central
directory record signature not found" message, so that assertion is now
case-insensitive.
Reported upstream at node-modules/yauzl#3.1 parent cf41125 commit 89baf57
3 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments