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

latest releases: @effect/sql-sqlite-wasm@0.21.1, @effect/sql-sqlite-bun@0.21.8, @effect/sql-libsql@0.9.8...
9 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.