Skip to content

chore(deps): bump bun-pty from 0.4.11 to 0.6.1 - #19

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/bun-pty-0.6.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/bun-pty-0.6.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Bumps bun-pty from 0.4.11 to 0.6.1.

Release notes

Sourced from bun-pty's releases.

v0.6.1

Fixed

  • Output written before the first onData listener is no longer lost (#53, #54)
    • bun-pty keeps the newest 512 KiB of UTF-8, cut only between whole characters, and delivers it to the first listener (and any added in the same tick) just after onData() returns
    • Before, a consumer that awaited anything between spawn() and onData() lost the shell's first prompt, or all of a fast command's output
    • A consumer that subscribes in the same tick as spawn() sees no change

Changed

  • The repository moved to sursatech/bun-pty. Old sursaone/bun-pty links and clones redirect.

Thanks to @​btriapitsyn for the contribution!

v0.6.0

⚠️ Breaking: Bun 1.4.0 or newer is required

bun-pty now uses the engine-native bun:ffi that arrived in Bun 1.4. On an older Bun, importing still works, and spawn() throws bun-pty needs Bun 1.4.0 or newer, but this is Bun 1.3.x. Run \bun upgrade`.`

bun upgrade

The JavaScript API is unchanged. If you build your own native library and point BUN_PTY_LIB at it, rebuild it from this version: the length argument of bun_pty_read and bun_pty_write is now usize.

Changed

  • Bun 1.4's faster FFI (#52)
    • Bun reports FFI calls up to 3x faster in 1.4, and hot call sites are JIT-compiled to direct C calls
    • Reads and writes pass the buffer and its byte length as one view ("buffer" + "buffer_length"), so the two cannot disagree
    • The command line and cwd go to the native library as plain strings
    • Library load failures now include the operating system's dlerror() message
  • README: a section on choosing between bun-pty and Bun's built-in Bun.Terminal

Fixed

  • write("") no longer throws bun:ffi cannot convert argument to 'ptr' on Bun 1.4 (#52)

Internal

  • @types/bun 1.4.4, @types/node 26.6.6, TypeScript 7.0.2, bun.lock v2, and updated Rust crates (portable-pty stays at 0.8.1 because of wezterm/wezterm#6783)
  • GitHub Actions on their current major versions, no persisted checkout credentials in the publish workflow, CI on Alpine 3.24 and on Bun 1.4.0, and a bun check type check

v0.5.2

Fixed

  • A native library that fails to load now gets a clear error (#51)
    • spawn() throws bun-pty could not load its native library at <path>: <dlopen error> instead of undefined is not an object (evaluating 'lib.symbols')
    • Importing bun-pty no longer throws when no library file is found either; the error comes from spawn(), and the load failure is still logged at import
    • Typical cause: a bun build --compile binary for musl that shipped the glibc library

Thanks @​cat-miaw for the fix.

v0.5.1

Fixed

  • Test files are left out of the npm package (#50)

... (truncated)

Changelog

Sourced from bun-pty's changelog.

[0.6.1] - 2026-11-16

Changed

  • The repository moved to sursatech/bun-pty; old sursaone/bun-pty links and clones redirect

Fixed

  • Output the child writes before the first onData listener subscribes is no longer lost (#53, #54)
    • The newest 512 KiB of UTF-8 is kept, cut only between whole characters, and delivered to the first listener (and any added in the same tick) just after onData() returns
    • Before, a consumer that awaited anything between spawn() and onData() lost the shell's first prompt, or all of a fast command's output
    • A consumer that subscribes in the same tick as spawn() sees no change

[0.6.0] - 2026-10-30

Changed

  • Breaking: bun-pty now requires Bun 1.4.0 or newer (#52)
    • It uses the engine-native bun:ffi that arrived in Bun 1.4, which Bun reports as up to 3x faster per call
    • On an older Bun, importing still works and spawn() throws "bun-pty needs Bun 1.4.0 or newer"; run bun upgrade
  • Reads and writes pass the buffer and its byte length as one view ("buffer" + "buffer_length"), so the two cannot disagree; the command line and cwd go to the native library as plain strings (#52)
    • The bun_pty_read and bun_pty_write length argument is now usize; a custom library set with BUN_PTY_LIB must be built from this version
  • Library load failures now include the operating system's dlerror() message (Bun 1.4)

Fixed

  • write("") no longer throws bun:ffi cannot convert argument to 'ptr' on Bun 1.4 (#52)

Internal

  • Update @types/bun 1.4.4, @types/node 26.6.6 and TypeScript 7.0.2, and move bun.lock to version 2 (#52)
  • Update the Rust crates; portable-pty stays at 0.8.1 because of wezterm/wezterm#6783 (#52)
  • Update GitHub Actions to their current major versions, drop persisted checkout credentials in the publish workflow, test on Alpine 3.24 and on Bun 1.4.0, and add a bun check type check (bun run typecheck) (#52)

[0.5.2] - 2026-10-26

Fixed

  • When the native library fails to load, spawn() now throws an error naming the library path and the real cause, instead of undefined is not an object (evaluating 'lib.symbols') (#51)
    • Importing bun-pty no longer throws when no library file is found either; the error is reported from spawn(), and the load failure is still logged at import

[0.5.1] - 2026-10-12

Fixed

  • Leave the src/*.test.ts files out of the npm package (#50)
    • "files" in package.json lists all of src, and npm does not apply .npmignore patterns to the paths it lists, so earlier tarballs included the tests

[0.5.0] - 2026-10-12

Changed

  • Breaking: env is 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 current process.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 as sh is still found with the parent's PATH, 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)

... (truncated)

Commits
  • 96e8991 chore: move repository to sursatech/bun-pty
  • c75e3fb chore: release v0.6.1
  • 5c69631 fix: deliver output kept for the first onData listener after onData() returns
  • 4d42af3 fix: keep output emitted before the first onData listener (#53)
  • ef1210c chore: point the example at bun-pty 0.6.0
  • cdb150e chore: release v0.6.0
  • 4282369 feat: require Bun 1.4 and use its engine-native FFI (#52)
  • 52d3fac chore: release v0.5.2
  • 9797489 fix: report the real cause when the native library fails to load (#51)
  • 14ac2ca chore: release v0.5.1
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Proof this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Bumps [bun-pty](https://github.com/sursatech/bun-pty) from 0.4.11 to 0.6.1.
- [Release notes](https://github.com/sursatech/bun-pty/releases)
- [Changelog](https://github.com/sursatech/bun-pty/blob/main/CHANGELOG.md)
- [Commits](sursatech/bun-pty@v0.4.11...v0.6.1)

---
updated-dependencies:
- dependency-name: bun-pty
  dependency-version: 0.6.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f04decd9-5a96-42e7-afd5-44796036fcdd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants