# What changed in @effect/platform-bun

> 21 changes in @effect/platform-bun 0.91 to 4 from its official release notes, upgrade guides and advisories: 3 breaking, 1 security, 8 new APIs and options. Each one cited. Sources checked 2026-10-20. HTML: https://unstale.sh/npm/@effect/platform-bun/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @effect/platform-bun 4

### Breaking changes

- 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.5) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.5)
- 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.3) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.3)
- Server WebSockets now close with code 1000 on success, 1001 on interruption, or 1011 on failure, while preserving explicit close codes. (4.0.0) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.0)

### Security

- 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.5) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.5)

### New APIs and options

- Adds an API for checking whether a URL parameter name is redacted. (4.0.5) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.5)
- Adds an API for explicit redaction of URL parameter values. (4.0.5) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.5)
- Adds an API for explicitly redacting URLs. (4.0.5) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.5)
- Adds UDP socket support on Bun. (4.0.3) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.3)
- Adds a helper for name server inputs in the platform Dns services. (4.0.3) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.3)
- Node and Bun WebSocket clients can send handshake headers alongside subprotocols through socket constructors, channels, and layers. (4.0.3) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.3)

### Behavior and default changes

- 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.2) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.2)

### Fixes and other changes

- When self.close is unavailable, Bun worker finalizers now complete before exit. (4.0.3) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.3)
- Accepts address inputs. (4.0.3) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.3)
- 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.2) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.2)
- 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.1) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.1)
- The Bun package provides the platform Crypto service. (4.0.0) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.0)
- HTTP request scopes retain the handler's failure exit through response handling and middleware. (4.0.0) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%404.0.0)

## @effect/platform-bun 0.91

### New APIs and options

- Cluster RPC serialization buffer limits can now be configured. (0.91.2) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%400.91.2)
- Adds the extendEnv option for spawning commands with a clean environment. (0.91.1) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%400.91.1)

### Fixes and other changes

- WebSocket compression now preserves options and compresses outgoing messages. (0.91.3) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%400.91.3)
- Server WebSockets now close with code 1001 (Going Away) instead of 1011 when the handler fiber is only interrupted. (0.91.3) — [release notes](https://github.com/Effect-TS/effect/releases/tag/%40effect/platform-bun%400.91.3)
