@orpc/solid-query 1.11.3 → 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 +6 -6
- package/dist/index.d.ts +6 -6
- package/package.json +6 -6
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/solid-query`
|
|
68
68
|
|
|
69
|
-
Integration with [Solid Query](https://tanstack.com/query/latest/docs/framework/solid/overview). Read the [documentation](https://orpc.
|
|
69
|
+
Integration with [Solid Query](https://tanstack.com/query/latest/docs/framework/solid/overview). Read the [documentation](https://orpc.dev/docs/integrations/tanstack-query-old/solid) for more information.
|
|
70
70
|
|
|
71
71
|
```ts
|
|
72
72
|
export function Example() {
|
package/dist/index.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ interface GeneralUtils<TInput> {
|
|
|
11
11
|
/**
|
|
12
12
|
* Generate a query/mutation key for checking status, invalidate, set, get, etc.
|
|
13
13
|
*
|
|
14
|
-
* @see {@link https://orpc.
|
|
14
|
+
* @see {@link https://orpc.dev/docs/integrations/tanstack-query-old/basic#query-mutation-key Tanstack Query/Mutation Key Docs}
|
|
15
15
|
*/
|
|
16
16
|
key<UType extends OperationType>(options?: OperationKeyOptions<UType, TInput>): QueryKey;
|
|
17
17
|
}
|
|
@@ -58,25 +58,25 @@ interface ProcedureUtils<TClientContext extends ClientContext, TInput, TOutput,
|
|
|
58
58
|
/**
|
|
59
59
|
* Calling corresponding procedure client
|
|
60
60
|
*
|
|
61
|
-
* @see {@link https://orpc.
|
|
61
|
+
* @see {@link https://orpc.dev/docs/integrations/tanstack-query-old/basic#calling-procedure-clients Tanstack Calling Procedure Client Docs}
|
|
62
62
|
*/
|
|
63
63
|
call: Client<TClientContext, TInput, TOutput, TError>;
|
|
64
64
|
/**
|
|
65
65
|
* Generate options used for createQuery/prefetchQuery/...
|
|
66
66
|
*
|
|
67
|
-
* @see {@link https://orpc.
|
|
67
|
+
* @see {@link https://orpc.dev/docs/integrations/tanstack-query-old/basic#query-options-utility Tanstack Query Options Utility Docs}
|
|
68
68
|
*/
|
|
69
69
|
queryOptions<U, USelectData = TOutput>(...rest: MaybeOptionalOptions<U & QueryOptionsIn<TClientContext, TInput, TOutput, TError, USelectData>>): NoInfer<U & Omit<QueryOptionsBase<TOutput, TError>, keyof U>>;
|
|
70
70
|
/**
|
|
71
71
|
* Generate options used for createInfiniteQuery/prefetchInfiniteQuery/...
|
|
72
72
|
*
|
|
73
|
-
* @see {@link https://orpc.
|
|
73
|
+
* @see {@link https://orpc.dev/docs/integrations/tanstack-query-old/basic#infinite-query-options-utility Tanstack Infinite Query Options Utility Docs}
|
|
74
74
|
*/
|
|
75
75
|
infiniteOptions<U, UPageParam, USelectData = InfiniteData<TOutput, UPageParam>>(options: U & InfiniteOptionsIn<TClientContext, TInput, TOutput, TError, USelectData, UPageParam>): NoInfer<U & Omit<InfiniteOptionsBase<TOutput, TError, UPageParam>, keyof U>>;
|
|
76
76
|
/**
|
|
77
77
|
* Generate options used for createMutation/...
|
|
78
78
|
*
|
|
79
|
-
* @see {@link https://orpc.
|
|
79
|
+
* @see {@link https://orpc.dev/docs/integrations/tanstack-query-old/basic#mutation-options Tanstack Mutation Options Docs}
|
|
80
80
|
*/
|
|
81
81
|
mutationOptions<UMutationContext>(...rest: MaybeOptionalOptions<MutationOptionsIn<TClientContext, TInput, TOutput, TError, UMutationContext>>): MutationOptions<TInput, TOutput, TError, UMutationContext>;
|
|
82
82
|
}
|
|
@@ -95,7 +95,7 @@ interface CreateRouterUtilsOptions {
|
|
|
95
95
|
* Create a router utils from a client.
|
|
96
96
|
*
|
|
97
97
|
* @info Both client-side and server-side clients are supported.
|
|
98
|
-
* @see {@link https://orpc.
|
|
98
|
+
* @see {@link https://orpc.dev/docs/integrations/tanstack-query-old/solid Tanstack Query Solid Docs}
|
|
99
99
|
*/
|
|
100
100
|
declare function createRouterUtils<T extends NestedClient<any>>(client: T, options?: CreateRouterUtilsOptions): RouterUtils<T>;
|
|
101
101
|
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ interface GeneralUtils<TInput> {
|
|
|
11
11
|
/**
|
|
12
12
|
* Generate a query/mutation key for checking status, invalidate, set, get, etc.
|
|
13
13
|
*
|
|
14
|
-
* @see {@link https://orpc.
|
|
14
|
+
* @see {@link https://orpc.dev/docs/integrations/tanstack-query-old/basic#query-mutation-key Tanstack Query/Mutation Key Docs}
|
|
15
15
|
*/
|
|
16
16
|
key<UType extends OperationType>(options?: OperationKeyOptions<UType, TInput>): QueryKey;
|
|
17
17
|
}
|
|
@@ -58,25 +58,25 @@ interface ProcedureUtils<TClientContext extends ClientContext, TInput, TOutput,
|
|
|
58
58
|
/**
|
|
59
59
|
* Calling corresponding procedure client
|
|
60
60
|
*
|
|
61
|
-
* @see {@link https://orpc.
|
|
61
|
+
* @see {@link https://orpc.dev/docs/integrations/tanstack-query-old/basic#calling-procedure-clients Tanstack Calling Procedure Client Docs}
|
|
62
62
|
*/
|
|
63
63
|
call: Client<TClientContext, TInput, TOutput, TError>;
|
|
64
64
|
/**
|
|
65
65
|
* Generate options used for createQuery/prefetchQuery/...
|
|
66
66
|
*
|
|
67
|
-
* @see {@link https://orpc.
|
|
67
|
+
* @see {@link https://orpc.dev/docs/integrations/tanstack-query-old/basic#query-options-utility Tanstack Query Options Utility Docs}
|
|
68
68
|
*/
|
|
69
69
|
queryOptions<U, USelectData = TOutput>(...rest: MaybeOptionalOptions<U & QueryOptionsIn<TClientContext, TInput, TOutput, TError, USelectData>>): NoInfer<U & Omit<QueryOptionsBase<TOutput, TError>, keyof U>>;
|
|
70
70
|
/**
|
|
71
71
|
* Generate options used for createInfiniteQuery/prefetchInfiniteQuery/...
|
|
72
72
|
*
|
|
73
|
-
* @see {@link https://orpc.
|
|
73
|
+
* @see {@link https://orpc.dev/docs/integrations/tanstack-query-old/basic#infinite-query-options-utility Tanstack Infinite Query Options Utility Docs}
|
|
74
74
|
*/
|
|
75
75
|
infiniteOptions<U, UPageParam, USelectData = InfiniteData<TOutput, UPageParam>>(options: U & InfiniteOptionsIn<TClientContext, TInput, TOutput, TError, USelectData, UPageParam>): NoInfer<U & Omit<InfiniteOptionsBase<TOutput, TError, UPageParam>, keyof U>>;
|
|
76
76
|
/**
|
|
77
77
|
* Generate options used for createMutation/...
|
|
78
78
|
*
|
|
79
|
-
* @see {@link https://orpc.
|
|
79
|
+
* @see {@link https://orpc.dev/docs/integrations/tanstack-query-old/basic#mutation-options Tanstack Mutation Options Docs}
|
|
80
80
|
*/
|
|
81
81
|
mutationOptions<UMutationContext>(...rest: MaybeOptionalOptions<MutationOptionsIn<TClientContext, TInput, TOutput, TError, UMutationContext>>): MutationOptions<TInput, TOutput, TError, UMutationContext>;
|
|
82
82
|
}
|
|
@@ -95,7 +95,7 @@ interface CreateRouterUtilsOptions {
|
|
|
95
95
|
* Create a router utils from a client.
|
|
96
96
|
*
|
|
97
97
|
* @info Both client-side and server-side clients are supported.
|
|
98
|
-
* @see {@link https://orpc.
|
|
98
|
+
* @see {@link https://orpc.dev/docs/integrations/tanstack-query-old/solid Tanstack Query Solid Docs}
|
|
99
99
|
*/
|
|
100
100
|
declare function createRouterUtils<T extends NestedClient<any>>(client: T, options?: CreateRouterUtilsOptions): RouterUtils<T>;
|
|
101
101
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/solid-query",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
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",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@tanstack/solid-query": ">=5.80.2",
|
|
31
31
|
"solid-js": ">=1.9.0",
|
|
32
|
-
"@orpc/client": "1.
|
|
32
|
+
"@orpc/client": "1.12.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@orpc/shared": "1.
|
|
36
|
-
"@orpc/tanstack-query": "1.
|
|
35
|
+
"@orpc/shared": "1.12.1",
|
|
36
|
+
"@orpc/tanstack-query": "1.12.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@tanstack/solid-query": "^5.90.
|
|
39
|
+
"@tanstack/solid-query": "^5.90.13",
|
|
40
40
|
"zod": "^4.1.12"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|