chore(deps): bump bun-pty from 0.4.10 to 0.5.1
Bumps bun-pty from 0.4.10 to 0.5.1.
Release notes
Sourced from bun-pty's releases.
v0.5.1
Fixed
- Test files are left out of the npm package (#50)
"files"inpackage.jsonlists all ofsrc, and npm does not apply.npmignorepatterns to the paths it lists, so earlier tarballs included thesrc/*.test.tsfiles- No code changes since 0.5.0. See the 0.5.0 notes for the
envchangev0.5.0
⚠️ Breaking:
envreplaces the child's environment
envis now the child's whole environment, as in node-pty, instead of being merged over the parent's. Variables you leave out, such as tokens, no longer reach the child (#47).If you pass a partial map and rely on inheriting the rest, spread
process.env:spawn("bash", [], { name: "xterm-256color", env: { ...process.env, FOO: "bar" } });If you already pass
{ ...process.env, ... }or noenv, nothing changes for you.Changed
envreplaces the environment (#48)
- Without
env, the child gets the currentprocess.env, so changes made at runtime reach it- When the map has no
PATH, a bare program name such asshis still found with the parent'sPATH, which does not reach the child- On Windows, a map with no entries keeps the parent's environment, as in node-pty
- The child's environment is built as node-pty builds it on Unix (#49)
TERMis set from thenameoption, which was ignored before, then fromTERMin the environment, then "xterm"PWDis set fromcwd- When the child inherits
process.env, the parent's tmux and screen variables (TMUX,STY, ...) and itsCOLUMNSandLINESare droppedIPtyForkOptions.nameis optional, andenv: process.envnow type-checks (#49)Thanks to
@zgeofffor the report and the contribution!v0.4.11
Added
- Native Windows ARM64 support (#46)
- Ships a pre-built
rust_pty_arm64.dll(built on GitHub'swindows-11-armrunner foraarch64-pc-windows-msvc) alongside the existing x64rust_pty.dll, whose filename is unchanged- Links the MSVC runtime statically (
-C target-feature=+crt-static) to avoid a Visual C++ Redistributable dependency- Selects the ARM64 DLL at runtime and in the
bun build --compileembed path, falling back torust_pty.dll- Adds a
windows-11-armjob to the test matrix that runs the unit and integration tests against the exact ARM64 artifactThanks to
@dakeherofor the contribution!
Changelog
Sourced from bun-pty's changelog.
[0.5.1] - 2026-10-12
Fixed
- Leave the
src/*.test.tsfiles out of the npm package (#50)
"files"inpackage.jsonlists all ofsrc, and npm does not apply.npmignorepatterns to the paths it lists, so earlier tarballs included the tests[0.5.0] - 2026-10-12
Changed
- Breaking:
envis now the child's whole environment, as in node-pty, instead of being merged over the parent's (#48)
- To keep inherited variables, spread
process.env:env: { ...process.env, FOO: "bar" }- Without
env, the child gets the currentprocess.env, so changes made at runtime reach it (before, it got the environment the process started with)- When the map has no
PATH, a bare program name such asshis still found with the parent'sPATH, which does not reach the child; on Unix,argv[0]is then the resolved path- On Windows, a map with no entries keeps the parent's environment, as in node-pty
- On Unix, the child's environment is now built as node-pty builds it (#49)
TERMis set from thenameoption, then fromTERMin the environment, then "xterm";namewas ignored beforePWDis set fromcwd- When the child inherits
process.env, the parent's tmux and screen variables (TMUX,TMUX_PANE,STY,WINDOW,WINDOWID,TERMCAP) and itsCOLUMNSandLINESare droppedIPtyForkOptions.nameis optional, andenvacceptsundefinedvalues, which are skipped, soenv: process.envtype-checks (#49)Fixed
[0.4.11] - 2026-09-30
Added
- Native Windows ARM64 support (#46)
- Ship a pre-built
rust_pty_arm64.dll(built on GitHub'swindows-11-armrunner foraarch64-pc-windows-msvc) alongside the existing x64rust_pty.dll, whose filename is unchanged- Link the MSVC runtime statically (
-C target-feature=+crt-static) to avoid a Visual C++ Redistributable dependency- Select the ARM64 DLL at runtime and in the
bun build --compileembed path, falling back torust_pty.dll- Move native library filename resolution into
src/library.tswith unit tests- Add a
windows-11-armjob to the test matrix that runs the unit and integration tests against the exact ARM64 artifact
Commits
14ac2cachore: release v0.5.1c55cf57fix: leave test files out of the npm package (#50)a3135e4chore: release v0.5.046dfb4efix: build the child environment as node-pty does on Unix (#49)5d12222fix: replace the child environment with the supplied env map (#48)a582ae1chore: release v0.4.11c5f5060feat: add native Windows ARM64 support (#46)- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Summary by cubic
Bumps bun-pty from 0.4.10 to 0.5.1, which includes a breaking change to the env option that affects how child processes inherit environment variables.
- In 0.5.0,
envnow replaces the child's whole environment instead of merging over the parent's. Any call site passing a partial env map must spreadprocess.env, e.g.env: { ...process.env, FOO: "bar" }. - On Unix,
TERMis now derived from thenameoption andPWDfromcwd, and inherited terminal variables likeTMUXandCOLUMNSare dropped. - 0.4.11 adds native Windows ARM64 support; 0.5.1 is a packaging fix with no code changes.
Migration
- Verify every
spawncall that suppliesenvincludes...process.envunless it intentionally replaces the environment.