Skip to content

@effect/platform-bun@4.0.3

Choose a tag to compare

@effect-bot effect-bot released this 10 Oct 10:05
· 2 commits to main since this release
967a7dc

Patch Changes

  • #8909 be560ff Thanks @effect-bot! - Fix Bun worker shutdown when self.close is unavailable so worker finalizers complete before exit.

  • #8973 9dbd07e Thanks @fubhy! - Accept address inputs in Dns.reverse and name server inputs in the platform Dns services, and add Dns.nameServerFromInput.

  • #8953 d4f7dc3 Thanks @fubhy! - Add TLSA records to effect/net/Dns, with a Schema.DnsTlsaRecord schema whose JSON codec encodes the certificate association data as hex. The Node.js Dns service queries them with resolveTlsa (Node.js 22.15 or 23.9 and later); Bun, Deno, and older Node.js versions fail TLSA queries with Unsupported.

  • #8880 a9b5148 Thanks @fubhy! - Add experimental Host, Dns, and AddressResolver modules to effect/net for host parsing, DNS queries, and endpoint resolution, with Node, Bun, and Deno services. DNS operations accept and normalize domain-name strings; endpoint resolution also accepts host:port strings. Add scoped IPv6 literals and host and DNS record schemas, including JSON codecs for records.

    Provide the services explicitly; they are not included in the platform *Services layers. Use NodeAddressResolver.layer.pipe(Layer.provideMerge(NodeDns.layer)) to provide both Node services.

  • #8409 b9e7821 Thanks @tim-smart! - Add DatagramSocket for UDP on Node, Bun, and Deno, and NetAddress.inetAddressFromNativeUnsafe for runtime-reported addresses.

  • #8934 8e5ab22 Thanks @tim-smart! - Esc now ends terminal key input by default, cancelling CLI prompts with Terminal.QuitError. To keep Esc non-cancelling, pass a shouldQuit predicate to make, such as (input) => input.key.ctrl && (input.key.name === "c" || input.key.name === "d") to quit only on Ctrl+C or Ctrl+D.

  • #8978 0b17b9e Thanks @tim-smart! - Allow WebSocket clients on Node and Bun to send handshake headers alongside subprotocols through socket constructors, channels, and layers. Preserve browser-compatible constructor calls when headers are not supplied.

  • Updated dependencies [b4e5af8, b8d6e7a, 89d5c88, 66257d2, cd2ab19, ca068ce, f686000, e052f1b, c755b69, ebe487f, 63bfad8, 8598157, 76a03f7, 182e26d, a46592a, 1d3419e, e00eaae, 133ceb2, a494a64, d6082a2, ee3a350, 7ba976c, 9dbd07e, d4f7dc3, a9b5148, e7d84e4, 0e2b988, 84f48df, 48ed32f, 59e58a6, b9e7821, aa811e4, bfc5742, f9f7a5a, 73fa287, 7ff5048, 7803e51, 93410da, 8e5ab22, aef1d1f, d6d515b, ea52c24, 7e44402, 0b17b9e, 9753be9, 977096b, cf58cb0]:

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