@orpc/react 0.0.0-next.b77809d → 0.0.0-next.b81d47f

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
@@ -1,5 +1,5 @@
1
1
  <div align="center">
2
- <image align="center" src="https://orpc.unnoq.com/logo.webp" width=280 alt="oRPC logo" />
2
+ <image align="center" src="https://orpc.dev/logo.webp" width=280 alt="oRPC logo" />
3
3
  </div>
4
4
 
5
5
  <h1></h1>
@@ -17,6 +17,9 @@
17
17
  <a href="https://discord.gg/TXEbwRBvQn">
18
18
  <img alt="Discord" src="https://img.shields.io/discord/1308966753044398161?color=7389D8&label&logo=discord&logoColor=ffffff" />
19
19
  </a>
20
+ <a href="https://deepwiki.com/unnoq/orpc">
21
+ <img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki">
22
+ </a>
20
23
  </div>
21
24
 
22
25
  <h3 align="center">Typesafe APIs Made Simple 🪄</h3>
@@ -31,7 +34,7 @@
31
34
  - **📘 First-Class OpenAPI**: Built-in support that fully adheres to the OpenAPI standard.
32
35
  - **📝 Contract-First Development**: Optionally define your API contract before implementation.
33
36
  - **🔍 First-Class OpenTelemetry**: Seamlessly integrate with OpenTelemetry for observability.
34
- - **⚙️ Framework Integrations**: Seamlessly integrate with TanStack Query (React, Vue, Solid, Svelte, Angular), Pinia Colada, and more.
37
+ - **⚙️ Framework Integrations**: Seamlessly integrate with TanStack Query (React, Vue, Solid, Svelte, Angular), SWR, Pinia Colada, and more.
35
38
  - **🚀 Server Actions**: Fully compatible with React Server Actions on Next.js, TanStack Start, and other platforms.
36
39
  - **🔠 Standard Schema Support**: Works out of the box with Zod, Valibot, ArkType, and other schema validators.
37
40
  - **🗃️ Native Types**: Supports native types like Date, File, Blob, BigInt, URL, and more.
@@ -42,7 +45,7 @@
42
45
 
43
46
  ## Documentation
44
47
 
45
- You can find the full documentation [here](https://orpc.unnoq.com).
48
+ You can find the full documentation [here](https://orpc.dev).
46
49
 
47
50
  ## Packages
48
51
 
@@ -54,6 +57,7 @@ You can find the full documentation [here](https://orpc.unnoq.com).
54
57
  - [@orpc/nest](https://www.npmjs.com/package/@orpc/nest): Deeply integrate oRPC with [NestJS](https://nestjs.com/).
55
58
  - [@orpc/react](https://www.npmjs.com/package/@orpc/react): Utilities for integrating oRPC with React and React Server Actions.
56
59
  - [@orpc/tanstack-query](https://www.npmjs.com/package/@orpc/tanstack-query): [TanStack Query](https://tanstack.com/query/latest) integration.
60
+ - [@orpc/experimental-react-swr](https://www.npmjs.com/package/@orpc/experimental-react-swr): [SWR](https://swr.vercel.app/) integration.
57
61
  - [@orpc/vue-colada](https://www.npmjs.com/package/@orpc/vue-colada): Integration with [Pinia Colada](https://pinia-colada.esm.dev/).
58
62
  - [@orpc/hey-api](https://www.npmjs.com/package/@orpc/hey-api): [Hey API](https://heyapi.dev/) integration.
59
63
  - [@orpc/zod](https://www.npmjs.com/package/@orpc/zod): More schemas that [Zod](https://zod.dev/) doesn't support yet.
@@ -62,7 +66,7 @@ You can find the full documentation [here](https://orpc.unnoq.com).
62
66
 
63
67
  ## `@orpc/react`
64
68
 
65
- Provides utilities for integrating oRPC with React and React Server Actions. Read the [documentation](https://orpc.unnoq.com/docs/server-action) for more information.
69
+ Provides utilities for integrating oRPC with React and React Server Actions. Read the [documentation](https://orpc.dev/docs/server-action) for more information.
66
70
 
67
71
  ### `useServerAction` Hook
68
72
 
@@ -62,7 +62,7 @@ type UseServerActionResult<TInput, TOutput, TError> = UseServerActionIdleResult<
62
62
  /**
63
63
  * Use a Server Action Hook
64
64
  *
65
- * @see {@link https://orpc.unnoq.com/docs/server-action#useserveraction-hook Server Action Hook Docs}
65
+ * @see {@link https://orpc.dev/docs/server-action#useserveraction-hook Server Action Hook Docs}
66
66
  */
67
67
  declare function useServerAction<TInput, TOutput, TError extends ORPCErrorJSON<any, any>>(action: ActionableClient<TInput, TOutput, TError>, options?: UseServerActionOptions<TInput, TOutput, UnactionableError<TError>>): UseServerActionResult<TInput, TOutput, UnactionableError<TError>>;
68
68
 
@@ -62,7 +62,7 @@ type UseServerActionResult<TInput, TOutput, TError> = UseServerActionIdleResult<
62
62
  /**
63
63
  * Use a Server Action Hook
64
64
  *
65
- * @see {@link https://orpc.unnoq.com/docs/server-action#useserveraction-hook Server Action Hook Docs}
65
+ * @see {@link https://orpc.dev/docs/server-action#useserveraction-hook Server Action Hook Docs}
66
66
  */
67
67
  declare function useServerAction<TInput, TOutput, TError extends ORPCErrorJSON<any, any>>(action: ActionableClient<TInput, TOutput, TError>, options?: UseServerActionOptions<TInput, TOutput, UnactionableError<TError>>): UseServerActionResult<TInput, TOutput, UnactionableError<TError>>;
68
68
 
package/dist/index.d.mts CHANGED
@@ -10,8 +10,8 @@ declare const orpcErrorToNextHttpFallbackInterceptor: Interceptor<any, Promise<a
10
10
  /**
11
11
  * Create a server action accept a form data and deserialize with bracket notation.
12
12
  *
13
- * @see {@link https://orpc.unnoq.com/docs/server-action#createformaction-utility Create Form Action Utility Docs}
14
- * @see {@link https://orpc.unnoq.com/docs/openapi/bracket-notation Bracket Notation Docs}
13
+ * @see {@link https://orpc.dev/docs/server-action#createformaction-utility Create Form Action Utility Docs}
14
+ * @see {@link https://orpc.dev/docs/openapi/bracket-notation Bracket Notation Docs}
15
15
  */
16
16
  declare function createFormAction<TInitialContext extends Context, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap, TMeta extends Meta>(lazyableProcedure: Lazyable<Procedure<TInitialContext, any, TInputSchema, TOutputSchema, TErrorMap, TMeta>>, ...rest: MaybeOptionalOptions<CreateProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap, TMeta, Record<never, never>>>): FormAction;
17
17
 
package/dist/index.d.ts CHANGED
@@ -10,8 +10,8 @@ declare const orpcErrorToNextHttpFallbackInterceptor: Interceptor<any, Promise<a
10
10
  /**
11
11
  * Create a server action accept a form data and deserialize with bracket notation.
12
12
  *
13
- * @see {@link https://orpc.unnoq.com/docs/server-action#createformaction-utility Create Form Action Utility Docs}
14
- * @see {@link https://orpc.unnoq.com/docs/openapi/bracket-notation Bracket Notation Docs}
13
+ * @see {@link https://orpc.dev/docs/server-action#createformaction-utility Create Form Action Utility Docs}
14
+ * @see {@link https://orpc.dev/docs/openapi/bracket-notation Bracket Notation Docs}
15
15
  */
16
16
  declare function createFormAction<TInitialContext extends Context, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap, TMeta extends Meta>(lazyableProcedure: Lazyable<Procedure<TInitialContext, any, TInputSchema, TOutputSchema, TErrorMap, TMeta>>, ...rest: MaybeOptionalOptions<CreateProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap, TMeta, Record<never, never>>>): FormAction;
17
17
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@orpc/react",
3
3
  "type": "module",
4
- "version": "0.0.0-next.b77809d",
4
+ "version": "0.0.0-next.b81d47f",
5
5
  "license": "MIT",
6
- "homepage": "https://orpc.unnoq.com",
6
+ "homepage": "https://orpc.dev",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/unnoq/orpc.git",
@@ -34,15 +34,15 @@
34
34
  "react": ">=18.0.0"
35
35
  },
36
36
  "dependencies": {
37
- "@orpc/contract": "0.0.0-next.b77809d",
38
- "@orpc/openapi-client": "0.0.0-next.b77809d",
39
- "@orpc/server": "0.0.0-next.b77809d",
40
- "@orpc/shared": "0.0.0-next.b77809d",
41
- "@orpc/client": "0.0.0-next.b77809d"
37
+ "@orpc/contract": "0.0.0-next.b81d47f",
38
+ "@orpc/server": "0.0.0-next.b81d47f",
39
+ "@orpc/openapi-client": "0.0.0-next.b81d47f",
40
+ "@orpc/client": "0.0.0-next.b81d47f",
41
+ "@orpc/shared": "0.0.0-next.b81d47f"
42
42
  },
43
43
  "devDependencies": {
44
- "react": "^19.1.1",
45
- "zod": "^4.0.17"
44
+ "react": "^19.2.0",
45
+ "zod": "^4.1.12"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "unbuild",