Skip to content

Commit 74ca6a4

Browse files
Chore: update Node.js to v24.15.0 (#2198)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian Emmer <10749361+emmercm@users.noreply.github.com>
1 parent 00a78bb commit 74ca6a4

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,6 @@
146146
"node": "^20.19.0 || ^22.13.0 || >=24.0.0"
147147
},
148148
"volta": {
149-
"node": "24.14.1"
149+
"node": "24.15.0"
150150
}
151151
}

src/types/files/archives/gzip.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ export default class Gzip extends Archive {
138138
try {
139139
await pipelinePromise;
140140
} catch (error) {
141-
// The .destroy() calls above can cause ABORT_ERR
142-
if ((error as NodeJS.ErrnoException).code !== 'ABORT_ERR') {
141+
// The .destroy() calls above can cause ABORT_ERR on Node.js <24.15, or
142+
// ERR_STREAM_PREMATURE_CLOSE on Node.js >=24.15
143+
const code = (error as NodeJS.ErrnoException).code;
144+
if (code !== 'ABORT_ERR' && code !== 'ERR_STREAM_PREMATURE_CLOSE') {
143145
throw error;
144146
}
145147
}

0 commit comments

Comments
 (0)