@orpc/vue-colada 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/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/package.json +4 -4
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/vue-colada`
|
|
68
68
|
|
|
69
|
-
Integration with [Pinia Colada](https://pinia-colada.esm.dev/). Read the [documentation](https://orpc.
|
|
69
|
+
Integration with [Pinia Colada](https://pinia-colada.esm.dev/). Read the [documentation](https://orpc.dev/docs/integrations/pinia-colada) for more information.
|
|
70
70
|
|
|
71
71
|
```ts
|
|
72
72
|
export function Setup() {
|
package/dist/index.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ interface GeneralUtils<TInput> {
|
|
|
13
13
|
/**
|
|
14
14
|
* Generate a query/mutation key for checking status, invalidate, set, get, etc.
|
|
15
15
|
*
|
|
16
|
-
* @see {@link https://orpc.
|
|
16
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#query-mutation-key Pinia Colada Query/Mutation Key Docs}
|
|
17
17
|
*/
|
|
18
18
|
key(options?: BuildKeyOptions<TInput>): EntryKey;
|
|
19
19
|
}
|
|
@@ -41,19 +41,19 @@ interface ProcedureUtils<TClientContext extends ClientContext, TInput, TOutput,
|
|
|
41
41
|
/**
|
|
42
42
|
* Calling corresponding procedure client
|
|
43
43
|
*
|
|
44
|
-
* @see {@link https://orpc.
|
|
44
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#calling-procedure-clients Pinia Colada Calling Procedure Client Docs}
|
|
45
45
|
*/
|
|
46
46
|
call: Client<TClientContext, TInput, TOutput, TError>;
|
|
47
47
|
/**
|
|
48
48
|
* Generate options used for useQuery/...
|
|
49
49
|
*
|
|
50
|
-
* @see {@link https://orpc.
|
|
50
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#query-options-utility Pinia Colada Query Options Utility Docs}
|
|
51
51
|
*/
|
|
52
52
|
queryOptions<UInitialData extends TOutput | undefined = TOutput | undefined>(...rest: MaybeOptionalOptions<QueryOptionsIn<TClientContext, TInput, TOutput, TError, UInitialData>>): NoInfer<QueryOptions<TOutput, TError, UInitialData>>;
|
|
53
53
|
/**
|
|
54
54
|
* Generate options used for useMutation/...
|
|
55
55
|
*
|
|
56
|
-
* @see {@link https://orpc.
|
|
56
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#mutation-options Pinia Colada Mutation Options Docs}
|
|
57
57
|
*/
|
|
58
58
|
mutationOptions<UMutationContext extends Record<any, any> = _EmptyObject>(...rest: MaybeOptionalOptions<MutationOptionsIn<TClientContext, TInput, TOutput, TError, UMutationContext>>): NoInfer<MutationOptions<TInput, TOutput, TError, UMutationContext>>;
|
|
59
59
|
}
|
|
@@ -72,7 +72,7 @@ interface CreateRouterUtilsOptions {
|
|
|
72
72
|
* Create a router utils from a client.
|
|
73
73
|
*
|
|
74
74
|
* @info Both client-side and server-side clients are supported.
|
|
75
|
-
* @see {@link https://orpc.
|
|
75
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada Pinia Colada Docs}
|
|
76
76
|
*/
|
|
77
77
|
declare function createRouterUtils<T extends NestedClient<any>>(client: T, options?: CreateRouterUtilsOptions): RouterUtils<T>;
|
|
78
78
|
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ interface GeneralUtils<TInput> {
|
|
|
13
13
|
/**
|
|
14
14
|
* Generate a query/mutation key for checking status, invalidate, set, get, etc.
|
|
15
15
|
*
|
|
16
|
-
* @see {@link https://orpc.
|
|
16
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#query-mutation-key Pinia Colada Query/Mutation Key Docs}
|
|
17
17
|
*/
|
|
18
18
|
key(options?: BuildKeyOptions<TInput>): EntryKey;
|
|
19
19
|
}
|
|
@@ -41,19 +41,19 @@ interface ProcedureUtils<TClientContext extends ClientContext, TInput, TOutput,
|
|
|
41
41
|
/**
|
|
42
42
|
* Calling corresponding procedure client
|
|
43
43
|
*
|
|
44
|
-
* @see {@link https://orpc.
|
|
44
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#calling-procedure-clients Pinia Colada Calling Procedure Client Docs}
|
|
45
45
|
*/
|
|
46
46
|
call: Client<TClientContext, TInput, TOutput, TError>;
|
|
47
47
|
/**
|
|
48
48
|
* Generate options used for useQuery/...
|
|
49
49
|
*
|
|
50
|
-
* @see {@link https://orpc.
|
|
50
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#query-options-utility Pinia Colada Query Options Utility Docs}
|
|
51
51
|
*/
|
|
52
52
|
queryOptions<UInitialData extends TOutput | undefined = TOutput | undefined>(...rest: MaybeOptionalOptions<QueryOptionsIn<TClientContext, TInput, TOutput, TError, UInitialData>>): NoInfer<QueryOptions<TOutput, TError, UInitialData>>;
|
|
53
53
|
/**
|
|
54
54
|
* Generate options used for useMutation/...
|
|
55
55
|
*
|
|
56
|
-
* @see {@link https://orpc.
|
|
56
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#mutation-options Pinia Colada Mutation Options Docs}
|
|
57
57
|
*/
|
|
58
58
|
mutationOptions<UMutationContext extends Record<any, any> = _EmptyObject>(...rest: MaybeOptionalOptions<MutationOptionsIn<TClientContext, TInput, TOutput, TError, UMutationContext>>): NoInfer<MutationOptions<TInput, TOutput, TError, UMutationContext>>;
|
|
59
59
|
}
|
|
@@ -72,7 +72,7 @@ interface CreateRouterUtilsOptions {
|
|
|
72
72
|
* Create a router utils from a client.
|
|
73
73
|
*
|
|
74
74
|
* @info Both client-side and server-side clients are supported.
|
|
75
|
-
* @see {@link https://orpc.
|
|
75
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada Pinia Colada Docs}
|
|
76
76
|
*/
|
|
77
77
|
declare function createRouterUtils<T extends NestedClient<any>>(client: T, options?: CreateRouterUtilsOptions): RouterUtils<T>;
|
|
78
78
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/vue-colada",
|
|
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",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"vue": ">=3.3.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@orpc/client": "1.12.
|
|
36
|
-
"@orpc/shared": "1.12.
|
|
35
|
+
"@orpc/client": "1.12.1",
|
|
36
|
+
"@orpc/shared": "1.12.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@pinia/colada": "^0.17.8",
|