Releases: utopyin/effect-orpc
Releases · utopyin/effect-orpc
effect-orpc@0.2.0
Minor Changes
-
ce9f590: Add
eoc, an Effect-aware wrapper around@orpc/contract'soc, 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
eocandimplementEffect. - 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
Patch Changes
- b1d95d7: Add README
effect-orpc@0.1.3
Patch Changes
- ed5bc70: Sync readme from root to package so that it gets published on NPM
effect-orpc@0.1.2
effect-orpc@1.0.0-v4.0
Major Changes
- 045df4a: migrate to effect-v4 (effect-smol)
effect-orpc@1.0.0-effect-v4.3
Patch Changes
- b1d95d7: Add README
effect-orpc@1.0.0-effect-v4.2
Patch Changes
- ed5bc70: Sync readme from root to package so that it gets published on NPM
effect-orpc@1.0.0-effect-v4.1
Patch Changes
- ac41539: docs: remove duplicate request-scoped context section
effect-orpc@0.1.1
Patch Changes
- 16a7fe8: Add documentation on new
withFiberContext
effect-orpc@0.1.0
Minor Changes
- d213c5b: Add
withFiberContexthelper ateffect-orpc/nodeto
propagate EffectFiberRefstate 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.