@tiesen/effect-tanstack-query 0.0.9 → 0.0.10
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 +1 -1
- package/dist/index.d.mts +3 -3
- package/package.json +6 -1
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -21,10 +21,10 @@ import { ManagedRuntime } from "effect/ManagedRuntime";
|
|
|
21
21
|
* class Api extends HttpApi.make('Api').add(ApiGroup) {}
|
|
22
22
|
*
|
|
23
23
|
* class ApiClient extends Context.Service<ApiClient, HttpApiClient.ForApi<typeof Api>>()('ApiClient') {
|
|
24
|
-
* public static
|
|
24
|
+
* public static layer = Layer.effect(this, HttpApiClient.make(Api)).pipe(Layer.provide(FetchHttpClient.layer))
|
|
25
25
|
* }
|
|
26
26
|
*
|
|
27
|
-
* const runtime = ManagedRuntime.make(ApiClient.
|
|
27
|
+
* const runtime = ManagedRuntime.make(ApiClient.layer)
|
|
28
28
|
* const api = createTanstackQueryOptionsProxy(ApiClient, runtime);
|
|
29
29
|
*
|
|
30
30
|
* // Example usage in a React component with TanStack Query
|
|
@@ -37,7 +37,7 @@ import { ManagedRuntime } from "effect/ManagedRuntime";
|
|
|
37
37
|
*
|
|
38
38
|
* useSubscription(api.stream.subscriptionOptions({
|
|
39
39
|
* onData: (data) => console.log(data),
|
|
40
|
-
* ^? const data: string = "
|
|
40
|
+
* ^? const data: string = "Never gonna give you up, never gonna let you down..."
|
|
41
41
|
* }))
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiesen/effect-tanstack-query",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Effortlessly bridge Effect HTTP API clients with TanStack Query. Enjoy end-to-end type safety, zero-boilerplate options, and built-in streaming support out of the box.",
|
|
6
6
|
"keywords": [
|
|
@@ -67,6 +67,11 @@
|
|
|
67
67
|
"effect": ">=4.0.0-beta.100 || >=4.0.0",
|
|
68
68
|
"react": ">=19.2.8"
|
|
69
69
|
},
|
|
70
|
+
"peerDependenciesMeta": {
|
|
71
|
+
"react": {
|
|
72
|
+
"optional": true
|
|
73
|
+
}
|
|
74
|
+
},
|
|
70
75
|
"packageManager": "bun@1.3.0",
|
|
71
76
|
"patchedDependencies": {
|
|
72
77
|
"tegami@1.2.7": "patches/tegami@1.2.7.patch"
|