t3-code-android-nightly/.repos/effect-smol/packages/platform/bun/CHANGELOG.md
Julius Marminge 6f9cea00ae
chore(refs): sync Effect and Alchemy references to 4.0.1 and beta.80 (#16170)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 13:22:30 -07:00

184 KiB

@effect/platform-bun

4.0.1

Patch Changes

4.0.0

Patch Changes

  • #8598 988c467 Thanks @tim-smart! - Close server WebSockets with 1000 on success, 1001 on interruption, or 1011 on failure, while preserving explicit close codes. HTTP request scopes retain the handler's failure exit through response handling and middleware.

  • #8633 2c552f2 Thanks @IMax153! - Effect 4.0 is the first stable release of Effect v4. It replaces the 4.0.0 beta and release-candidate series, whose per-release notes remain below under the 4.0.0-beta.* and 4.0.0-rc.* headings. To upgrade from Effect 3, follow the migration guide.

    Packaging and versioning

    • All Effect packages share one version number and are released together. Use the same version of effect and every @effect/* package.
    • @effect/platform, @effect/rpc, @effect/cluster, @effect/cli, @effect/ai, @effect/sql, @effect/workflow, @effect/experimental and similar packages are merged into effect. Separate packages remain only for platforms (@effect/platform-*), SQL drivers (@effect/sql-*), AI providers (@effect/ai-*), framework bindings (@effect/atom-*), OpenTelemetry, Vitest and tooling.
    • Modules such as effect/http, effect/http-api, effect/rpc, effect/cluster, effect/workflow, effect/ai, effect/cli, effect/sql and effect/schema import from effect/<area>. APIs tagged @stability unstable may have breaking changes in minor releases. APIs without a stability tag follow semver.
    • APIs that expose a third-party dependency are tagged @stability unstable, because that dependency's releases can change them. This covers NodeRedis, DenoRedis, BunRedis, @effect/platform-node/Undici and the undici dispatcher APIs, the ws options and re-exports in the platform packages, driver-specific options and clients in @effect/sql-clickhouse, @effect/sql-d1, @effect/sql-libsql, @effect/sql-mssql, @effect/sql-mysql2, @effect/sql-pglite and @effect/sql-sqlite-do, the provider clients, models and generated schemas in the @effect/ai-* packages, @effect/opentelemetry, and the vitest re-export in @effect/vitest.
    • effect has no runtime dependencies.
    • New packages in v4: @effect/platform-deno, @effect/sql-pglite, @effect/ai-openai-compat, @effect/ai-typesafe, @effect/atom-react, @effect/atom-solid, @effect/atom-vue, @effect/openapi-generator and @effect/doctest. @effect/docgen now lives in this repository.

    Core

    • The fiber runtime was rewritten for lower memory use and faster execution, with smaller bundles and better tree-shaking.
    • Services are defined with Context.Service, FiberRef is replaced by Context.Reference, Cause has a flat structure, and many combinators were renamed. See the migration guide for the full list.
    • Software transactional memory is built into Effect.tx, with TxRef, TxQueue, TxHashMap, TxPubSub, TxSemaphore and related Tx* data types.
    • Clock separates wall-clock time from monotonic time.
    • New modules include Semaphore, Latch, LayerRef, ErrorReporter, ByteSize, Newtype and Crypto. Arbitrary is now a native property-based testing module and no longer depends on fast-check.

    Schema

    • Schema v4 is a new implementation with faster parsing, class-based schemas, make constructors on every schema, and effectful decoding with services.
    • SchemaRepresentation powers JSON Schema (Draft-04, Draft-07, 2020-12 and OpenAPI 3.0/3.1) import and export, TypeScript code generation, and AI structured output.
    • SchemaBinary provides a compact binary codec and is the default wire format for cluster transports.
    • Optional JIT and AOT schema compilers are available as experimental modules.

    Platform, HTTP and RPC

    • HttpApi supports typed response headers, streaming and SSE responses, the HTTP QUERY method, HttpApiTest for in-memory testing, and much faster type checking for large APIs.
    • The HTTP modules add static file serving, response compression, rate-limited clients and graceful server shutdown.
    • Socket has a pull-based reader with backpressure and STARTTLS support. Network addresses are modeled by effect/net.
    • RPC serialization is schema-aware and supports server-originated requests and notifications.
    • @effect/platform-deno adds full Deno support. The Node, Bun, Deno and browser packages all provide the platform Crypto service, and the browser package adds IndexedDB support.

    Cluster and Workflow

    • Workflows can be declared with class syntax, and DurableQueue and an in-memory WorkflowEngine are available.
    • Runner memory can be bounded with ShardingConfig limits. Shutdown, entity movement and persisted replies are more reliable.

    SQL

    • @effect/sql-pg uses a built-in PostgreSQL client with pipelining, prepared statements and binary codecs, and no longer depends on pg.
    • @effect/sql-sqlite-node uses Node's built-in node:sqlite and requires Node 22.16 or newer.
    • SqlError exposes structured reasons such as UniqueViolation.

    AI

    • effect/ai adds EmbeddingModel, the DecisionModel classification and rating API, dynamic tools and tool approvals.
    • The MCP server supports protocol versions 2024-11-05 through 2026-07-28, including elicitation, sampling with tools, resource subscriptions and typed tool output.
    • Provider packages cover Anthropic, OpenAI, OpenAI-compatible APIs and OpenRouter.

    CLI, Atom, observability and testing

    • effect/cli adds global flags, command aliases and examples, an interactive wizard mode, and shell completions for Bash, Zsh and Fish.
    • effect/reactivity and the @effect/atom-* bindings add SSR hydration, stale-while-revalidate atoms and serializable RPC and HttpApi queries.
    • The OTLP exporters can be configured with standard OpenTelemetry environment variables, and @effect/opentelemetry aligns logs and spans with the OpenTelemetry specification.
    • @effect/vitest runs property tests with the native Arbitrary module and supports Vitest fixtures.

    Requirements

    • TypeScript 5.9 or newer. TypeScript 7 is recommended.
    • @effect/vitest and @effect/doctest require Vitest 5.
    • @effect/atom-react requires React 19.
    • @effect/platform-deno requires Deno 2.8.3 or newer.
  • Updated dependencies [cbfc7b4, 5a81a6f, 68b6394, 5250ca6, 5f9c9d1, 3278821, 83429b4, 0af6d0c, 927e01e, 10d8524, 35ac25a, 29e0aa7, 8783536, df77fff, ef7d77f, 035e369, f72790c, aa19472, 988c467, 735b77b, e5f7d12, 2c552f2]:

    • effect@4.0.0
    • @effect/platform-node-shared@4.0.0

4.0.0-rc.118

Patch Changes

4.0.0-rc.117

Patch Changes

4.0.0-rc.116

Patch Changes

4.0.0-rc.115

Patch Changes

  • #8190 f9ef0e9 Thanks @javascript-unsafe! - Omit response bodies for statuses 204, 205, and 304 in HttpServerResponse.toWeb and the Bun/Deno HTTP adapters, preventing invalid Web responses and hung requests. Cancel omitted raw ReadableStream bodies, and finalize request resources without starting omitted Effect streams.
  • Updated dependencies [657254b, f9ef0e9, 4f73f9e]:
    • effect@4.0.0-rc.115
    • @effect/platform-node-shared@4.0.0-rc.115

4.0.0-rc.114

Patch Changes

  • #8185 9266051 Thanks @tim-smart! - Fix BunHttpServer startup when hostname is omitted by explicitly listening on ::, preserving IPv4 and IPv6 connectivity and avoiding a ServeError when parsing Bun's default hostname.

    Preserve the configured listen address in BunClusterHttp, including loopback addresses, when applying the HTTP server hostname default.

  • Updated dependencies [3ff4952, 6d55555, 716e0c0, d4e4ad5, b1988f4, 482b7d7, 716e0c0, 9941e6d]:

    • effect@4.0.0-rc.114
    • @effect/platform-node-shared@4.0.0-rc.114

4.0.0-rc.113

Patch Changes

4.0.0-rc.112

Patch Changes

4.0.0-rc.111

Patch Changes

4.0.0-rc.110

Patch Changes

4.0.0-rc.109

Patch Changes

4.0.0-rc.108

Patch Changes

4.0.0-beta.107

Patch Changes

4.0.0-beta.106

Patch Changes

4.0.0-beta.105

Patch Changes

4.0.0-beta.104

Patch Changes

4.0.0-beta.103

Patch Changes

4.0.0-beta.102

Patch Changes

  • #6618 7a03c89 Thanks @tim-smart! - unstable/cluster: hash over-length SQL message deduplication keys to prevent message_id overflow, closes #6317.

    The composed request deduplication key (entityType/entityId/tag/primaryKey) can legally exceed the 255-character message_id column — the address columns alone allow 458 characters before the RPC primary key is appended. SqlMessageStorage now stores a SHA-256 digest (64 hex characters) of the composed key in the unique message_id column when the key exceeds 255 characters, so keys of any length work on PostgreSQL, MySQL, MSSQL, and SQLite. Keys that fit are stored as plaintext, byte-compatible with rows written by previous versions, so existing deployments keep deduplicating with no migration or schema change.

    SqlMessageStorage.layer/layerWith (and consequently SingleRunner.layer) now require Crypto.Crypto. The Node and Bun cluster convenience layers provide the platform Crypto implementation internally, so their requirements are unchanged.

  • Updated dependencies [b6392e1, 7ed9450, 45762bd, a6e8391, 4ac7e8b, 4cd40f5, 6956bc0, 0e50ec7, 9fcdade, 57367d5, 35c445f, c917bb9, bc1f358, 0e0c9d7, 73d40aa, 4f1e318, 9d8d85c, 6079fda, 5101e92, d0b3265, 7a03c89, cea1d9c, 078e1f5, 97bafea, fab0ab8, c323d8b, 6966353, 0444004, 028bbb3, ff5d6e2, 1bfce93, 7ce815c, 7271a7f, 475fe5c]:

    • effect@4.0.0-beta.102
    • @effect/platform-node-shared@4.0.0-beta.102

4.0.0-beta.101

Patch Changes

4.0.0-beta.100

Patch Changes

4.0.0-beta.99

Patch Changes

4.0.0-beta.98

Patch Changes

4.0.0-beta.97

Patch Changes

  • Updated dependencies []:
    • effect@4.0.0-beta.97
    • @effect/platform-node-shared@4.0.0-beta.97

4.0.0-beta.96

Patch Changes

4.0.0-beta.95

Patch Changes

4.0.0-beta.94

Patch Changes

4.0.0-beta.93

Patch Changes

4.0.0-beta.92

Patch Changes

  • Updated dependencies [affdc13]:
    • effect@4.0.0-beta.92
    • @effect/platform-node-shared@4.0.0-beta.92

4.0.0-beta.91

Patch Changes

  • Updated dependencies [b135b25, aaa21a3, 3475ee6]:
    • effect@4.0.0-beta.91
    • @effect/platform-node-shared@4.0.0-beta.91

4.0.0-beta.90

Patch Changes

  • Updated dependencies [d237fdf]:
    • effect@4.0.0-beta.90
    • @effect/platform-node-shared@4.0.0-beta.90

4.0.0-beta.89

Patch Changes

  • Updated dependencies [b7d46ab, 7777e15, 5376197]:
    • effect@4.0.0-beta.89
    • @effect/platform-node-shared@4.0.0-beta.89

4.0.0-beta.88

Patch Changes

  • Updated dependencies [911f1b8, 8beeeea, c306fcf]:
    • effect@4.0.0-beta.88
    • @effect/platform-node-shared@4.0.0-beta.88

4.0.0-beta.87

Patch Changes

  • Updated dependencies [5a0c1a4, 1eea2ea]:
    • effect@4.0.0-beta.87
    • @effect/platform-node-shared@4.0.0-beta.87

4.0.0-beta.86

Patch Changes

4.0.0-beta.85

Patch Changes

4.0.0-beta.84

Patch Changes

4.0.0-beta.83

Patch Changes

  • Updated dependencies [1f2e8ce]:
    • effect@4.0.0-beta.83
    • @effect/platform-node-shared@4.0.0-beta.83

4.0.0-beta.82

Patch Changes

  • Updated dependencies [193690b]:
    • effect@4.0.0-beta.82
    • @effect/platform-node-shared@4.0.0-beta.82

4.0.0-beta.81

Patch Changes

4.0.0-beta.80

Patch Changes

4.0.0-beta.79

Patch Changes

4.0.0-beta.78

Patch Changes

  • Updated dependencies [7836b8e, 35d49a3, 4093258]:
    • effect@4.0.0-beta.78
    • @effect/platform-node-shared@4.0.0-beta.78

4.0.0-beta.77

Patch Changes

  • Updated dependencies [6e9a5ca, 302f398]:
    • effect@4.0.0-beta.77
    • @effect/platform-node-shared@4.0.0-beta.77

4.0.0-beta.76

Patch Changes

  • Updated dependencies [016108a, 95c03d2, 07299a3]:
    • effect@4.0.0-beta.76
    • @effect/platform-node-shared@4.0.0-beta.76

4.0.0-beta.75

Patch Changes

4.0.0-beta.74

Patch Changes

  • Updated dependencies [b1fc6a4]:
    • effect@4.0.0-beta.74
    • @effect/platform-node-shared@4.0.0-beta.74

4.0.0-beta.73

Patch Changes

  • Updated dependencies [361ca30, b9598c6]:
    • effect@4.0.0-beta.73
    • @effect/platform-node-shared@4.0.0-beta.73

4.0.0-beta.72

Patch Changes

  • Updated dependencies [73e67d1, 01d71ec, fcd707e]:
    • effect@4.0.0-beta.72
    • @effect/platform-node-shared@4.0.0-beta.72

4.0.0-beta.71

Patch Changes

4.0.0-beta.70

Patch Changes

  • Updated dependencies [af7782d, 5805569, 7212d70]:
    • effect@4.0.0-beta.70
    • @effect/platform-node-shared@4.0.0-beta.70

4.0.0-beta.69

Patch Changes

4.0.0-beta.68

Patch Changes

  • #2180 0176eaf Thanks @IMax153! - Add a platform-agnostic Crypto service for cryptographic random bytes, secure random generators, UUIDv4 / UUIDv7 generation, and digest operations. UUID generation should now use the Crypto service's randomUUIDv4 or randomUUIDv7, which format bytes from the platform Crypto service; UUIDv7 also uses the Clock service timestamp. Random.nextUUIDv4 has been removed because the base Random service is not cryptographically secure.

  • Updated dependencies [af8267f, 0176eaf, 0176eaf, f136bb7, 6f38f07, aec9c40]:

    • effect@4.0.0-beta.68
    • @effect/platform-node-shared@4.0.0-beta.68

4.0.0-beta.67

Patch Changes

4.0.0-beta.66

Patch Changes

4.0.0-beta.65

Patch Changes

  • Updated dependencies [6f11454]:
    • effect@4.0.0-beta.65
    • @effect/platform-node-shared@4.0.0-beta.65

4.0.0-beta.64

Patch Changes

  • Updated dependencies [7d4877a]:
    • effect@4.0.0-beta.64
    • @effect/platform-node-shared@4.0.0-beta.64

4.0.0-beta.63

Patch Changes

  • Updated dependencies [7f927ff, a696b3e]:
    • effect@4.0.0-beta.63
    • @effect/platform-node-shared@4.0.0-beta.63

4.0.0-beta.62

Patch Changes

  • Updated dependencies [4ab4b90]:
    • effect@4.0.0-beta.62
    • @effect/platform-node-shared@4.0.0-beta.62

4.0.0-beta.61

Patch Changes

  • Updated dependencies [50790af, 71f7c3d, aae8797]:
    • effect@4.0.0-beta.61
    • @effect/platform-node-shared@4.0.0-beta.61

4.0.0-beta.60

Patch Changes

4.0.0-beta.59

Patch Changes

  • Updated dependencies [56837ea]:
    • effect@4.0.0-beta.59
    • @effect/platform-node-shared@4.0.0-beta.59

4.0.0-beta.58

Patch Changes

  • #2098 96c8b22 Thanks @tim-smart! - improve http body consumption

  • Updated dependencies [11993d4, 96c8b22, 96c8b22]:

    • effect@4.0.0-beta.58
    • @effect/platform-node-shared@4.0.0-beta.58

4.0.0-beta.57

Patch Changes

  • Updated dependencies [a971f5c, 8e110c5]:
    • effect@4.0.0-beta.57
    • @effect/platform-node-shared@4.0.0-beta.57

4.0.0-beta.56

Patch Changes

  • Updated dependencies []:
    • effect@4.0.0-beta.56
    • @effect/platform-node-shared@4.0.0-beta.56

4.0.0-beta.55

Patch Changes

  • Updated dependencies [42cc744, 04855ce]:
    • effect@4.0.0-beta.55
    • @effect/platform-node-shared@4.0.0-beta.55

4.0.0-beta.54

Patch Changes

  • Updated dependencies [e4b74f9, 4c72808]:
    • effect@4.0.0-beta.54
    • @effect/platform-node-shared@4.0.0-beta.54

4.0.0-beta.53

Patch Changes

4.0.0-beta.52

Patch Changes

4.0.0-beta.51

Patch Changes

4.0.0-beta.50

Patch Changes

  • Updated dependencies [07be594, ae02433]:
    • effect@4.0.0-beta.50
    • @effect/platform-node-shared@4.0.0-beta.50

4.0.0-beta.49

Patch Changes

  • Updated dependencies [7d87873, c2f6f90, 216f13c]:
    • effect@4.0.0-beta.49
    • @effect/platform-node-shared@4.0.0-beta.49

4.0.0-beta.48

Patch Changes

4.0.0-beta.47

Patch Changes

4.0.0-beta.46

Patch Changes

  • Updated dependencies [a48d439, 3a30b9e]:
    • @effect/platform-node-shared@4.0.0-beta.46
    • effect@4.0.0-beta.46

4.0.0-beta.45

Patch Changes

  • Updated dependencies [5c3af6d]:
    • effect@4.0.0-beta.45
    • @effect/platform-node-shared@4.0.0-beta.45

4.0.0-beta.44

Patch Changes

4.0.0-beta.43

Patch Changes

4.0.0-beta.42

Patch Changes

4.0.0-beta.41

Patch Changes

4.0.0-beta.40

Patch Changes

  • Updated dependencies [f62860f, 973f281]:
    • effect@4.0.0-beta.40
    • @effect/platform-node-shared@4.0.0-beta.40

4.0.0-beta.39

Patch Changes

4.0.0-beta.38

Patch Changes

4.0.0-beta.37

Patch Changes

4.0.0-beta.36

Patch Changes

4.0.0-beta.35

Patch Changes

4.0.0-beta.34

Patch Changes

4.0.0-beta.33

Patch Changes

  • Updated dependencies [571447d]:
    • effect@4.0.0-beta.33
    • @effect/platform-node-shared@4.0.0-beta.33

4.0.0-beta.32

Patch Changes

4.0.0-beta.31

Patch Changes

  • #1710 990df2c Thanks @gcanti! - Schema: toCodecJson now returns Codec<T, Json, RD, RE> instead of Codec<T, unknown, RD, RE>.

    Http: the json property on HttpIncomingMessage, HttpClientResponse, HttpServerRequest, and HttpServerResponse now returns Effect<Schema.Json, E> instead of Effect<unknown, E>.

  • Updated dependencies [5a84853, 6f23f0e, 654aaec, 2958a42, 95d27a2, 0fbaea8, 21d5d5e, 5a84853, 6e49959, 8f5805d, 990df2c]:

    • effect@4.0.0-beta.31
    • @effect/platform-node-shared@4.0.0-beta.31

4.0.0-beta.30

Patch Changes

4.0.0-beta.29

Patch Changes

4.0.0-beta.28

Patch Changes

4.0.0-beta.27

Patch Changes

4.0.0-beta.26

Patch Changes

4.0.0-beta.25

Patch Changes

4.0.0-beta.24

Patch Changes

4.0.0-beta.23

Patch Changes

  • Updated dependencies [5c73c41]:
    • effect@4.0.0-beta.23
    • @effect/platform-node-shared@4.0.0-beta.23

4.0.0-beta.22

Patch Changes

4.0.0-beta.21

Patch Changes

4.0.0-beta.20

Patch Changes

4.0.0-beta.19

Patch Changes

  • Updated dependencies [b9951d6]:
    • @effect/platform-node-shared@4.0.0-beta.19
    • effect@4.0.0-beta.19

4.0.0-beta.18

Patch Changes

  • Updated dependencies [01e31fd, 0890aab, 725260b]:
    • effect@4.0.0-beta.18
    • @effect/platform-node-shared@4.0.0-beta.18

4.0.0-beta.17

Patch Changes

  • Updated dependencies [8f59c32]:
    • effect@4.0.0-beta.17
    • @effect/platform-node-shared@4.0.0-beta.17

4.0.0-beta.16

Patch Changes

  • Updated dependencies [bf9096c, 29f81ca, 68eb28c]:
    • effect@4.0.0-beta.16
    • @effect/platform-node-shared@4.0.0-beta.16

4.0.0-beta.15

Patch Changes

4.0.0-beta.14

Patch Changes

  • Updated dependencies [c414700, a30c969]:
    • effect@4.0.0-beta.14
    • @effect/platform-node-shared@4.0.0-beta.14

4.0.0-beta.13

Patch Changes

4.0.0-beta.12

Patch Changes

4.0.0-beta.11

Patch Changes

4.0.0-beta.10

Patch Changes

4.0.0-beta.9

Patch Changes

  • Updated dependencies [3386557, b6666e3]:
    • effect@4.0.0-beta.9
    • @effect/platform-node-shared@4.0.0-beta.9

4.0.0-beta.8

Patch Changes

  • Updated dependencies [246e672, 807dec0]:
    • effect@4.0.0-beta.8
    • @effect/platform-node-shared@4.0.0-beta.8

4.0.0-beta.7

Patch Changes

4.0.0-beta.6

Patch Changes

4.0.0-beta.5

Patch Changes

4.0.0-beta.4

Patch Changes

  • Updated dependencies [c5a18ef, bc6b885]:
    • effect@4.0.0-beta.4
    • @effect/platform-node-shared@4.0.0-beta.4

4.0.0-beta.3

Patch Changes

  • Updated dependencies [3a0cf36, c4da328]:
    • effect@4.0.0-beta.3
    • @effect/platform-node-shared@4.0.0-beta.3

4.0.0-beta.2

Patch Changes

  • Updated dependencies [a22ce73, ebdabf7, 8f663bb]:
    • effect@4.0.0-beta.2
    • @effect/platform-node-shared@4.0.0-beta.2

4.0.0-beta.1

Patch Changes

  • Updated dependencies [0fecf70, 709569e]:
    • effect@4.0.0-beta.1
    • @effect/platform-node-shared@4.0.0-beta.1

4.0.0-beta.0

Major Changes

Patch Changes

  • Updated dependencies [be642ab]:
    • @effect/platform-node-shared@4.0.0-beta.0
    • effect@4.0.0-beta.0