unstale

npm / @effect/platform-bun

@effect/platform-bun

What changed in @effect/platform-bun 0.91 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.

3 breaking1 security8 new APIs and options1 behavior and defaults8 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@effect/platform-bun 417 changes

Breaking changes 3

  • Default redacted names AWSAccessKeyId, Signature, sig, and X-Goog-Signature move from Headers.CurrentRedactedNames to UrlParams.CurrentRedactedNames; a custom list replaces these defaults.

    4.0.5release notes

  • Esc now ends terminal key input by default and cancels CLI prompts with Terminal.QuitError; pass a shouldQuit predicate to make to keep Esc non-cancelling.

    4.0.3release notes

  • Server WebSockets now close with code 1000 on success, 1001 on interruption, or 1011 on failure, while preserving explicit close codes.

    4.0.0release notes

Security 1

  • Sensitive query values and URL credentials are redacted in HTTP spans, request inspection, and error messages; URLs sent over the wire are unchanged.

    4.0.5release notes

New APIs and options 6

  • Adds an API for checking whether a URL parameter name is redacted.

    4.0.5release notes

  • Adds an API for explicit redaction of URL parameter values.

    4.0.5release notes

  • Adds an API for explicitly redacting URLs.

    4.0.5release notes

  • Adds UDP socket support on Bun.

    4.0.3release notes

  • Adds a helper for name server inputs in the platform Dns services.

    4.0.3release notes

  • Node and Bun WebSocket clients can send handshake headers alongside subprotocols through socket constructors, channels, and layers.

    4.0.3release notes

Behavior and default changes 1

  • Every module and directly importable export now has an explicit stability tag; stable follows strict semver, while unstable may receive breaking changes in minor releases.

    4.0.2release notes

Fixes and other changes 6

  • When self.close is unavailable, Bun worker finalizers now complete before exit.

    4.0.3release notes

  • Accepts address inputs.

    4.0.3release notes

  • Server middleware such as HttpMiddleware.logger and HttpMiddleware.tracer now reports status 101 for a successful WebSocket upgrade instead of the handler's discarded response status.

    4.0.2release notes

  • Readers no longer throw when a pull is interrupted or its scope closes during a read; consumed bytes are preserved in order across interruption and normal EOF, and discarded when the reader scope closes.

    4.0.1release notes

  • The Bun package provides the platform Crypto service.

    4.0.0release notes

  • HTTP request scopes retain the handler's failure exit through response handling and middleware.

    4.0.0release notes

@effect/platform-bun 0.914 changes

New APIs and options 2

  • Cluster RPC serialization buffer limits can now be configured.

    0.91.2release notes

  • Adds the extendEnv option for spawning commands with a clean environment.

    0.91.1release notes

Fixes and other changes 2

  • WebSocket compression now preserves options and compresses outgoing messages.

    0.91.3release notes

  • Server WebSockets now close with code 1001 (Going Away) instead of 1011 when the handler fiber is only interrupted.

    0.91.3release notes