github Effect-TS/effect @effect/platform@0.94.1

latest releases: effect@3.19.14, @effect/ai@0.33.1, @effect/ai-openrouter@0.8.1...
14 hours ago

Patch Changes

  • #5936 65e9e35 Thanks @schickling! - Document subtle CORS middleware allowedHeaders behavior: when empty array (default), it reflects back the client's Access-Control-Request-Headers (permissive), and when non-empty array, it only allows specified headers (restrictive). Added comprehensive JSDoc with examples.

  • #5940 ee69cd7 Thanks @kitlangton! - HttpServerResponse: fix fromWeb to preserve Content-Type header when response has a body

    Previously, when converting a web Response to an HttpServerResponse via fromWeb, the Content-Type header was not passed to Body.stream(), causing it to default to application/octet-stream. This affected any code using HttpApp.fromWebHandler to wrap web handlers, as JSON responses would incorrectly have their Content-Type set to application/octet-stream instead of application/json.

  • Updated dependencies [488d6e8]:

    • effect@3.19.14

Don't miss a new effect release

NewReleases is sending notifications on new releases.