npm / node-pty
node-pty
What changed in node-pty 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-29.
3 breaking3 new APIs and options3 behavior and defaults1 tooling8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initnode-pty 118 changes
Breaking changes 3
The deprecated on API was removed.
The supported Node.js version was updated.
Values of 0 for uid and gid are no longer treated as undefined.
New APIs and options 3
An opt-in experimental option enables shipping and using conpty.dll and OpenConsole.exe with the module.
An accessor named ptsName was added.
An accessor named pty was added.
Behavior and default changes 3
The conpty named pipe buffer size is changed to 128KiB.
Writes to non-blocking ptys are handled directly instead of being wrapped through Node's tty API.
The write API supports Buffer input.
Tooling 1
Prebuilds are included in the published package.
Fixes and other changes 8
Partial writes are handled when a non-blocking write returns EAGAIN.
The PtyClear implementation is restored when using conpty.dll.
The program name is now ensured to be part of child process arguments.
Parsing of the closeFDs option was corrected.
A fix was made for controlling the terminal on macOS.
IO handles are disconnected during PtyKill.
A fix was made for retrieving the process name on macOS.
The winpty conin pipe is explicitly opened in write-only mode.