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@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.
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.
Server WebSockets now close with code 1000 on success, 1001 on interruption, or 1011 on failure, while preserving explicit close codes.
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.
New APIs and options 6
Adds an API for checking whether a URL parameter name is redacted.
Adds an API for explicit redaction of URL parameter values.
Adds an API for explicitly redacting URLs.
Adds UDP socket support on Bun.
Adds a helper for name server inputs in the platform Dns services.
Node and Bun WebSocket clients can send handshake headers alongside subprotocols through socket constructors, channels, and layers.
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.
Fixes and other changes 6
When self.close is unavailable, Bun worker finalizers now complete before exit.
Accepts address inputs.
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.
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.
The Bun package provides the platform Crypto service.
HTTP request scopes retain the handler's failure exit through response handling and middleware.
@effect/platform-bun 0.914 changes
New APIs and options 2
Cluster RPC serialization buffer limits can now be configured.
Adds the extendEnv option for spawning commands with a clean environment.
Fixes and other changes 2
WebSocket compression now preserves options and compresses outgoing messages.
Server WebSockets now close with code 1001 (Going Away) instead of 1011 when the handler fiber is only interrupted.