Skip to content

Releases: utopyin/effect-orpc

effect-orpc@0.2.0

09 Mar 18:19

Choose a tag to compare

Minor Changes

  • ce9f590: Add eoc, an Effect-aware wrapper around @orpc/contract's oc, so contract definitions can reuse tagged error classes directly in .errors(...).

    Example:

    class UserNotFoundError extends ORPCTaggedError("UserNotFoundError", {
      code: "NOT_FOUND",
      schema: z.object({ userId: z.string() }),
    }) {}
    
    const contract = {
      users: {
        find: eoc
          .errors({
            NOT_FOUND: UserNotFoundError,
          })
          .input(z.object({ userId: z.string() }))
          .output(z.object({ userId: z.string() })),
      },
    };
  • 5e42e78: Add implementEffect(contract, runtime) for contract-first oRPC handlers backed by Effect, including contract leaf .effect(...) support and root router enhancement.

    Example:

    const oe = implementEffect(contract, runtime);
    
    export const router = oe.router({
      users: {
        list: oe.users.list.effect(function* ({ input }) {
          return yield* UsersRepo.list(input.amount);
        }),
      },
    });

Patch Changes

  • 926dbf4: Document the new contract-first APIs with examples for eoc and implementEffect.
  • 6937a19: Restore wrapped oRPC builder and implementer parity by aligning .middleware(...), .handler(...), and related variant typings with upstream behavior.
  • 92ca0eb: Add parity regression coverage for wrapped oRPC contract builders, Effect builders, and contract implementers.

effect-orpc@0.1.4

06 Mar 16:09
5f0abaf

Choose a tag to compare

Patch Changes

effect-orpc@0.1.3

06 Mar 15:20
e31b2b1

Choose a tag to compare

Patch Changes

  • ed5bc70: Sync readme from root to package so that it gets published on NPM

effect-orpc@0.1.2

06 Mar 14:08
51554df

Choose a tag to compare

Patch Changes

  • 4dcdec0: Symlinked README.md to root's README
  • e802e5e: fix: Preserve runtime services when inheriting request fiber refs with withFiberContext.

effect-orpc@1.0.0-v4.0

06 Mar 14:44
bb2efa6

Choose a tag to compare

Pre-release

Major Changes

  • 045df4a: migrate to effect-v4 (effect-smol)

effect-orpc@1.0.0-effect-v4.3

06 Mar 16:08
83096b0

Choose a tag to compare

Pre-release

Patch Changes

effect-orpc@1.0.0-effect-v4.2

06 Mar 15:20
97b8212

Choose a tag to compare

Pre-release

Patch Changes

  • ed5bc70: Sync readme from root to package so that it gets published on NPM

effect-orpc@1.0.0-effect-v4.1

06 Mar 15:05
18a4958

Choose a tag to compare

Pre-release

Patch Changes

  • ac41539: docs: remove duplicate request-scoped context section

effect-orpc@0.1.1

05 Mar 23:46
355f77c

Choose a tag to compare

Patch Changes

  • 16a7fe8: Add documentation on new withFiberContext

effect-orpc@0.1.0

05 Mar 23:39
d81033e

Choose a tag to compare

Minor Changes

  • d213c5b: Add withFiberContext helper at effect-orpc/node to
    propagate Effect FiberRef state across framework async boundaries, and add a
    workspace Hono example showing request-scoped log and trace propagation.

Patch Changes

  • 0c81aec: Fix .output() typing enforcement in the Effect builder.