github Effect-TS/effect @effect/rpc@0.27.2

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

Patch Changes

  • #2092 b974658 Thanks @tim-smart! - add Resolver.annotateHeaders and .annotateHeadersEffect

    This allows you to add headers to every rpc request for the given resolver

  • #2092 b974658 Thanks @tim-smart! - add rpc Router.provideService and .provideServiceEffect

    with these apis you can provide context to a Rpc or Router to eliminate
    requirements.

    import { Rpc, Router } from "@effect/rpc"
    
    Router.make(
      Rpc.effect(MyRequest, () => ...)
    ).pipe(
      Router.provideServiceEffect(Session, makeSessionEffect)
    )
  • #2092 b974658 Thanks @tim-smart! - support Effect contructed resolvers in Rpc.call and Resolver.toClient

  • Updated dependencies [29739dd]:

    • @effect/platform@0.44.2

Don't miss a new effect release

NewReleases is sending notifications on new releases.