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

latest releases: @effect/typeclass@0.24.40, @effect/printer@0.33.40, @effect/printer-ansi@0.33.40...
2 months ago

Minor Changes

  • #2207 cf69f46 Thanks @github-actions! - make Http.middleware.withTracerDisabledWhen a Layer api

    And 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 types

    A 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 of unit terminology with void

    For all the data types.

    Effect.unit; // => Effect.void
    Stream.unit; // => Stream.void
    
    // etc
  • #2207 6c6087a Thanks @github-actions! - move fetch options to a FiberRef

    This 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

Don't miss a new effect release

NewReleases is sending notifications on new releases.