Minor Changes
-
#2207
cf69f46
Thanks @github-actions! - make Http.middleware.withTracerDisabledWhen a Layer apiAnd add Http.middleware.withTracerDisabledWhenEffect to operate on Effect's.
Usage is now:
import * as Http from "@effect/platform/HttpServer"; Http.router.empty.pipe( Http.router.get("/health"), Http.server.serve(), Http.middleware.withTracerDisabledWhen( (request) => request.url === "/no-tracing", ), );
-
#2207
aa4a3b5
Thanks @github-actions! - Swap type parameters in /platform data typesA codemod has been released to make migration easier:
npx @effect/codemod platform-0.49 src/**/*
-
#2207
6c6087a
Thanks @github-actions! - rename auto-scoped ClientResponse apis from _Effect to _Scoped -
#2207
5a2314b
Thanks @github-actions! - replace use ofunit
terminology withvoid
For all the data types.
Effect.unit; // => Effect.void Stream.unit; // => Stream.void // etc
-
#2207
6c6087a
Thanks @github-actions! - move fetch options to a FiberRefThis change makes adjusting options to fetch more composable. You can now do:
import { pipe } from "effect"; import * as Http from "@effect/platform/HttpClient"; pipe( Http.request.get("https://example.com"), Http.client.fetchOk, Http.client.withFetchOptions({ credentials: "include" }), Http.response.text, );
-
#2207
2fb7d9c
Thanks @github-actions! - Release Effect 3.0 🎉
Patch Changes
-
#2207
6460414
Thanks @github-actions! - properly handle multiple ports in SharedWorker -
#2207
cf69f46
Thanks @github-actions! - add Http.middleware.withTracerDisabledForUrlsAllows you to disable the http server tracer for the given urls:
import * as Http from "@effect/platform/HttpServer"; Http.router.empty.pipe( Http.router.get("/health"), Http.server.serve(), Http.middleware.withTracerDisabledForUrls(["/health"]), );
-
#2529
78b767c
Thanks @fubhy! - RenamedReadonlyArray
andReadonlyRecord
modules for better discoverability. -
#2514
25d74f8
Thanks @rocwang! - Fix UrlParams.makeUrl when globalThis.location is set toundefined
-
Updated dependencies [
1b5f0c7
,d50a652
,9aeae46
,9a3bd47
,e542371
,be9d025
,78b767c
,1499974
,1b5f0c7
,5c2b561
,a18f594
,1499974
,2f96d93
,5a2314b
,271b79f
,1b5f0c7
,2fb7d9c
,53d1c2a
,e7e1bbe
,10c169e
,6424181
]:- effect@3.0.0
- @effect/schema@0.66.0