Repository navigation
Behavior changes
These are bug fixes, but they might affect code that relied on the previous incorrect behavior.
extendEnv: falsewithout theenvoption no longer inheritsprocess.env, per docs 67acf60- Windows: Arguments of
.cmdand.batfiles are now escaped like Rust does, which fixes batch files reading%~1(#1261) 93bddc4 - Invalid
stdiovalues, such as negative file descriptors, now throw c6bd387 - Using the same file as input and output now throws, even when the paths are written differently 587045a
- Synchronous methods now enforce per-file-descriptor
maxBuffervalues 9547e51 - Synchronous methods now throw on the
signaloption, like asynchronous methods 59de065 - Synchronous methods now write the raw output bytes to files, like asynchronous methods af6264a
Fixes
- Fix
subprocess.kill()signaling the current process group when the subprocess failed to spawn 5464d43 - Fix crashes when spawning fails with
EMFILE/ENFILE(#1262), or when a file target cannot be opened 15c46cd 1cee524 - Fix
error.stdoutanderror.stderrbeingundefinedwhen synchronous methods fail to spawn (#1263) bfe4633 - Fix the subprocess promise hanging until an output stream is read 004f3b3
- Fix
subprocess.pipe()with thestdiooption, and destination subprocesses left running 8d3f0a9 ecda56b - Fix
result.allwhen only some file descriptors are buffered or split into lines 758768f - Fix the
encodingoption and line splitting in transforms 6adb3c3 - Fix input and output transforms with synchronous methods 516a5e2 e0b5dbc
- Fix template strings with emojis and line continuations b67f199
- Fix
killDescendantssignaling unrelated processes on Windows 9c5c71c - Fix IPC with
serialization: 'json',strict: trueand theverboseoption 9842f1a 698a1b8 b548d8b - Fix the subprocess error being hidden when the current directory was deleted 91d9ded
- Fix shebang scripts on Windows when the file is small 7c1a631