@orpc/react 1.12.0 → 1.12.1
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 +3 -3
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<image align="center" src="https://orpc.
|
|
2
|
+
<image align="center" src="https://orpc.dev/logo.webp" width=280 alt="oRPC logo" />
|
|
3
3
|
</div>
|
|
4
4
|
|
|
5
5
|
<h1></h1>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
## Documentation
|
|
47
47
|
|
|
48
|
-
You can find the full documentation [here](https://orpc.
|
|
48
|
+
You can find the full documentation [here](https://orpc.dev).
|
|
49
49
|
|
|
50
50
|
## Packages
|
|
51
51
|
|
|
@@ -66,7 +66,7 @@ You can find the full documentation [here](https://orpc.unnoq.com).
|
|
|
66
66
|
|
|
67
67
|
## `@orpc/react`
|
|
68
68
|
|
|
69
|
-
Provides utilities for integrating oRPC with React and React Server Actions. Read the [documentation](https://orpc.
|
|
69
|
+
Provides utilities for integrating oRPC with React and React Server Actions. Read the [documentation](https://orpc.dev/docs/server-action) for more information.
|
|
70
70
|
|
|
71
71
|
### `useServerAction` Hook
|
|
72
72
|
|
package/dist/hooks/index.d.mts
CHANGED
|
@@ -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.
|
|
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/hooks/index.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
14
|
-
* @see {@link https://orpc.
|
|
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.
|
|
14
|
-
* @see {@link https://orpc.
|
|
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": "1.12.
|
|
4
|
+
"version": "1.12.1",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"homepage": "https://orpc.
|
|
6
|
+
"homepage": "https://orpc.dev",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/unnoq/orpc.git",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"react": ">=18.0.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@orpc/client": "1.12.
|
|
38
|
-
"@orpc/contract": "1.12.
|
|
39
|
-
"@orpc/
|
|
40
|
-
"@orpc/server": "1.12.
|
|
41
|
-
"@orpc/
|
|
37
|
+
"@orpc/client": "1.12.1",
|
|
38
|
+
"@orpc/contract": "1.12.1",
|
|
39
|
+
"@orpc/openapi-client": "1.12.1",
|
|
40
|
+
"@orpc/server": "1.12.1",
|
|
41
|
+
"@orpc/shared": "1.12.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"react": "^19.2.0",
|