v9.2.0v9.1.0
Reading changes from the repo…
abortSignal
option that allows for graceful termination of subprocesses, enabling them to perform cleanup logic before exiting. This also adds an error.isAborted
property to indicate if the subprocess was aborted. error.isForcefullyTerminated
property that indicates if a subprocess was terminated by the forceKillAfterDelay
option, providing clearer error handling for users. exchangeMessage()
method to avoid race conditions when sending and receiving messages between processes, enhancing the reliability of IPC communication. ipcInput
option that allows users to pass various types of values to subprocesses, expanding the flexibility of data handling in IPC. forceKillAfterDelay
option to correctly reflect that true
is an allowed value, ensuring proper usage in TypeScript. result.ipc
type to accurately represent the messages sent by the subprocess, improving type safety for users.