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

latest releases: @effect/sql-sqlite-wasm@0.3.19, @effect/sql-sqlite-bun@0.4.19, @effect/schema@0.68.16...
2 months ago

Minor Changes

  • #2669 9deab0a Thanks @tim-smart! - move http search params apis to ServerRequest module

    If you want to access the search params for a request, you can now use the Http.request.ParsedSearchParams tag.

    import * as Http from "@effect/platform/HttpServer";
    import { Effect } from "effect";
    
    Effect.gen(function* () {
      const searchParams = yield* Http.request.ParsedSearchParams;
      console.log(searchParams);
    });

    The schema method has also been moved to the ServerRequest module. It is now available as Http.request.schemaSearchParams.

Patch Changes

  • #2672 7719b8a Thanks @tim-smart! - allow http client trace propagation to be controlled

    To disable trace propagation:

    import { HttpClient as Http } from "@effect/platform";
    
    Http.request
      .get("https://example.com")
      .pipe(Http.client.fetchOk, Http.client.withTracerPropagation(false));

Don't miss a new effect release

NewReleases is sending notifications on new releases.