@orpc/react 0.0.0-next.eae6003 → 0.0.0-next.eaf61c7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -49,14 +49,12 @@ You can find the full documentation [here](https://orpc.unnoq.com).
49
49
  - [@orpc/contract](https://www.npmjs.com/package/@orpc/contract): Build your API contract.
50
50
  - [@orpc/server](https://www.npmjs.com/package/@orpc/server): Build your API or implement API contract.
51
51
  - [@orpc/client](https://www.npmjs.com/package/@orpc/client): Consume your API on the client with type-safety.
52
- - [@orpc/nest](https://www.npmjs.com/package/@orpc/nest): Deeply integrate oRPC with NestJS.
52
+ - [@orpc/openapi](https://www.npmjs.com/package/@orpc/openapi): Generate OpenAPI specs and handle OpenAPI requests.
53
+ - [@orpc/nest](https://www.npmjs.com/package/@orpc/nest): Deeply integrate oRPC with [NestJS](https://nestjs.com/).
53
54
  - [@orpc/react](https://www.npmjs.com/package/@orpc/react): Utilities for integrating oRPC with React and React Server Actions.
54
- - [@orpc/react-query](https://www.npmjs.com/package/@orpc/react-query): Integration with [React Query](https://tanstack.com/query/latest/docs/framework/react/overview).
55
- - [@orpc/vue-query](https://www.npmjs.com/package/@orpc/vue-query): Integration with [Vue Query](https://tanstack.com/query/latest/docs/framework/vue/overview).
56
- - [@orpc/solid-query](https://www.npmjs.com/package/@orpc/solid-query): Integration with [Solid Query](https://tanstack.com/query/latest/docs/framework/solid/overview).
57
- - [@orpc/svelte-query](https://www.npmjs.com/package/@orpc/svelte-query): Integration with [Svelte Query](https://tanstack.com/query/latest/docs/framework/svelte/overview).
55
+ - [@orpc/tanstack-query](https://www.npmjs.com/package/@orpc/tanstack-query): [TanStack Query](https://tanstack.com/query/latest) integration.
58
56
  - [@orpc/vue-colada](https://www.npmjs.com/package/@orpc/vue-colada): Integration with [Pinia Colada](https://pinia-colada.esm.dev/).
59
- - [@orpc/openapi](https://www.npmjs.com/package/@orpc/openapi): Generate OpenAPI specs and handle OpenAPI requests.
57
+ - [@orpc/hey-api](https://www.npmjs.com/package/@orpc/hey-api): [Hey API](https://heyapi.dev/) integration.
60
58
  - [@orpc/zod](https://www.npmjs.com/package/@orpc/zod): More schemas that [Zod](https://zod.dev/) doesn't support yet.
61
59
  - [@orpc/valibot](https://www.npmjs.com/package/@orpc/valibot): OpenAPI spec generation from [Valibot](https://valibot.dev/).
62
60
  - [@orpc/arktype](https://www.npmjs.com/package/@orpc/arktype): OpenAPI spec generation from [ArkType](https://arktype.io/).
@@ -1,11 +1,11 @@
1
1
  import { SafeResult, ORPCErrorJSON } from '@orpc/client';
2
2
  import { ActionableClient, UnactionableError } from '@orpc/server';
3
- import { Interceptor } from '@orpc/shared';
3
+ import { Interceptor, PromiseWithError } from '@orpc/shared';
4
4
 
5
5
  interface UseServerActionOptions<TInput, TOutput, TError> {
6
6
  interceptors?: Interceptor<{
7
7
  input: TInput;
8
- }, TOutput, TError>[];
8
+ }, PromiseWithError<TOutput, TError>>[];
9
9
  }
10
10
  interface UseServerActionExecuteOptions<TInput, TOutput, TError> extends Pick<UseServerActionOptions<TInput, TOutput, TError>, 'interceptors'> {
11
11
  }
@@ -1,11 +1,11 @@
1
1
  import { SafeResult, ORPCErrorJSON } from '@orpc/client';
2
2
  import { ActionableClient, UnactionableError } from '@orpc/server';
3
- import { Interceptor } from '@orpc/shared';
3
+ import { Interceptor, PromiseWithError } from '@orpc/shared';
4
4
 
5
5
  interface UseServerActionOptions<TInput, TOutput, TError> {
6
6
  interceptors?: Interceptor<{
7
7
  input: TInput;
8
- }, TOutput, TError>[];
8
+ }, PromiseWithError<TOutput, TError>>[];
9
9
  }
10
10
  interface UseServerActionExecuteOptions<TInput, TOutput, TError> extends Pick<UseServerActionOptions<TInput, TOutput, TError>, 'interceptors'> {
11
11
  }
@@ -39,7 +39,7 @@ function useServerAction(action, options = {}) {
39
39
  const result2 = await safe(intercept(
40
40
  [...toArray(options.interceptors), ...toArray(executeOptions.interceptors)],
41
41
  { input: input2 },
42
- ({ input: input3 }) => action(input3).then(([error, data]) => {
42
+ async ({ input: input3 }) => action(input3).then(([error, data]) => {
43
43
  if (error) {
44
44
  throw createORPCErrorFromJson(error);
45
45
  }
package/dist/index.d.mts CHANGED
@@ -1,11 +1,12 @@
1
1
  import { AnySchema } from '@orpc/contract';
2
2
  import { Context, ErrorMap, Meta, Lazyable, Procedure, CreateProcedureClientOptions } from '@orpc/server';
3
3
  import { Interceptor, MaybeOptionalOptions } from '@orpc/shared';
4
+ export { getIssueMessage, parseFormData } from '@orpc/openapi-client/standard';
4
5
 
5
6
  interface FormAction {
6
7
  (form: FormData): Promise<void>;
7
8
  }
8
- declare const orpcErrorToNextHttpFallbackInterceptor: Interceptor<any, any, any>;
9
+ declare const orpcErrorToNextHttpFallbackInterceptor: Interceptor<any, Promise<any>>;
9
10
  /**
10
11
  * Create a server action accept a form data and deserialize with bracket notation.
11
12
  *
package/dist/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  import { AnySchema } from '@orpc/contract';
2
2
  import { Context, ErrorMap, Meta, Lazyable, Procedure, CreateProcedureClientOptions } from '@orpc/server';
3
3
  import { Interceptor, MaybeOptionalOptions } from '@orpc/shared';
4
+ export { getIssueMessage, parseFormData } from '@orpc/openapi-client/standard';
4
5
 
5
6
  interface FormAction {
6
7
  (form: FormData): Promise<void>;
7
8
  }
8
- declare const orpcErrorToNextHttpFallbackInterceptor: Interceptor<any, any, any>;
9
+ declare const orpcErrorToNextHttpFallbackInterceptor: Interceptor<any, Promise<any>>;
9
10
  /**
10
11
  * Create a server action accept a form data and deserialize with bracket notation.
11
12
  *
package/dist/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { ORPCError, createORPCErrorFromJson } from '@orpc/client';
2
2
  import { StandardBracketNotationSerializer } from '@orpc/openapi-client/standard';
3
+ export { getIssueMessage, parseFormData } from '@orpc/openapi-client/standard';
3
4
  import { createProcedureClient } from '@orpc/server';
4
5
  import { onError, resolveMaybeOptionalOptions, toArray } from '@orpc/shared';
5
6
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/react",
3
3
  "type": "module",
4
- "version": "0.0.0-next.eae6003",
4
+ "version": "0.0.0-next.eaf61c7",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.unnoq.com",
7
7
  "repository": {
@@ -34,15 +34,15 @@
34
34
  "react": ">=18.0.0"
35
35
  },
36
36
  "dependencies": {
37
- "@orpc/client": "0.0.0-next.eae6003",
38
- "@orpc/contract": "0.0.0-next.eae6003",
39
- "@orpc/server": "0.0.0-next.eae6003",
40
- "@orpc/shared": "0.0.0-next.eae6003",
41
- "@orpc/openapi-client": "0.0.0-next.eae6003"
37
+ "@orpc/client": "0.0.0-next.eaf61c7",
38
+ "@orpc/contract": "0.0.0-next.eaf61c7",
39
+ "@orpc/server": "0.0.0-next.eaf61c7",
40
+ "@orpc/shared": "0.0.0-next.eaf61c7",
41
+ "@orpc/openapi-client": "0.0.0-next.eaf61c7"
42
42
  },
43
43
  "devDependencies": {
44
44
  "react": "^19.1.0",
45
- "zod": "3.25.0-beta.20250516T005923"
45
+ "zod": "^3.25.57"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "unbuild",