@orpc/solid-query 0.0.0-next.ea1d4fd → 0.0.0-next.eaec0b2
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 +9 -9
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/package.json +8 -9
package/README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
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>
|
|
6
6
|
|
|
7
7
|
<div align="center">
|
|
8
|
-
<a href="https://codecov.io/gh/
|
|
9
|
-
<img alt="codecov" src="https://codecov.io/gh/
|
|
8
|
+
<a href="https://codecov.io/gh/middleapi/orpc">
|
|
9
|
+
<img alt="codecov" src="https://codecov.io/gh/middleapi/orpc/branch/main/graph/badge.svg">
|
|
10
10
|
</a>
|
|
11
11
|
<a href="https://www.npmjs.com/package/@orpc/solid-query">
|
|
12
12
|
<img alt="weekly downloads" src="https://img.shields.io/npm/dw/%40orpc%2Fsolid-query?logo=npm" />
|
|
13
13
|
</a>
|
|
14
|
-
<a href="https://github.com/
|
|
15
|
-
<img alt="MIT License" src="https://img.shields.io/github/license/
|
|
14
|
+
<a href="https://github.com/middleapi/orpc/blob/main/LICENSE">
|
|
15
|
+
<img alt="MIT License" src="https://img.shields.io/github/license/middleapi/orpc?logo=open-source-initiative" />
|
|
16
16
|
</a>
|
|
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/
|
|
20
|
+
<a href="https://deepwiki.com/middleapi/orpc">
|
|
21
21
|
<img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki">
|
|
22
22
|
</a>
|
|
23
23
|
</div>
|
|
@@ -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() {
|
|
@@ -120,4 +120,4 @@ export function Example() {
|
|
|
120
120
|
|
|
121
121
|
## License
|
|
122
122
|
|
|
123
|
-
Distributed under the MIT License. See [LICENSE](https://github.com/
|
|
123
|
+
Distributed under the MIT License. See [LICENSE](https://github.com/middleapi/orpc/blob/main/LICENSE) for more information.
|
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,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/solid-query",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-next.
|
|
4
|
+
"version": "0.0.0-next.eaec0b2",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"homepage": "https://orpc.
|
|
6
|
+
"homepage": "https://orpc.dev",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/
|
|
9
|
+
"url": "git+https://github.com/middleapi/orpc.git",
|
|
10
10
|
"directory": "packages/solid-query"
|
|
11
11
|
},
|
|
12
12
|
"keywords": [
|
|
13
|
-
"unnoq",
|
|
14
13
|
"orpc",
|
|
15
14
|
"solid-query",
|
|
16
15
|
"tanstack query",
|
|
@@ -29,15 +28,15 @@
|
|
|
29
28
|
"peerDependencies": {
|
|
30
29
|
"@tanstack/solid-query": ">=5.80.2",
|
|
31
30
|
"solid-js": ">=1.9.0",
|
|
32
|
-
"@orpc/client": "0.0.0-next.
|
|
31
|
+
"@orpc/client": "0.0.0-next.eaec0b2"
|
|
33
32
|
},
|
|
34
33
|
"dependencies": {
|
|
35
|
-
"@orpc/
|
|
36
|
-
"@orpc/
|
|
34
|
+
"@orpc/shared": "0.0.0-next.eaec0b2",
|
|
35
|
+
"@orpc/tanstack-query": "0.0.0-next.eaec0b2"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
|
-
"@tanstack/solid-query": "^5.90.
|
|
40
|
-
"zod": "^4.
|
|
38
|
+
"@tanstack/solid-query": "^5.90.20",
|
|
39
|
+
"zod": "^4.3.2"
|
|
41
40
|
},
|
|
42
41
|
"scripts": {
|
|
43
42
|
"build": "unbuild",
|