@effectify/react-query 1.0.0-beta.0 → 1.0.0-beta.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/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effectify/react-query",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "Integration of Effect with TanStack Query for React",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"tslib": "catalog:",
|
|
30
|
-
"@tanstack/react-query": "
|
|
31
|
-
"@tanstack/query-core": "
|
|
32
|
-
"effect": "catalog:effect-beta",
|
|
30
|
+
"@tanstack/react-query": "catalog:",
|
|
31
|
+
"@tanstack/query-core": "catalog:",
|
|
33
32
|
"react": "catalog:"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
35
|
"typescript": "catalog:",
|
|
37
|
-
"@types/react": "catalog:"
|
|
36
|
+
"@types/react": "catalog:",
|
|
37
|
+
"effect": "catalog:"
|
|
38
38
|
},
|
|
39
39
|
"optionalDependencies": {},
|
|
40
40
|
"peerDependencies": {
|
package/dist/src/index.js
CHANGED
|
@@ -10,7 +10,7 @@ export declare const tanstackQueryEffect: <R, E>({ layer, queryClient, }: {
|
|
|
10
10
|
useRunner: () => <A, E2>(span: string) => (effect: Effect.Effect<A, E2, R>) => Promise<A>;
|
|
11
11
|
RuntimeProvider: ({ children }: {
|
|
12
12
|
children: ReactNode;
|
|
13
|
-
}) => import("react
|
|
13
|
+
}) => import("react").JSX.Element;
|
|
14
14
|
useRuntime: () => ManagedRuntime.ManagedRuntime<R, E>;
|
|
15
15
|
useEffectQuery: <TData, TError extends import("./types.js").EffectfulError, TQueryKey extends import("./types.js").QueryKey = import("./types.js").QueryKey>({ gcTime, staleTime, ...options }: import("./types.js").EffectfulQueryOptions<TData, TError, R, TQueryKey>) => import("@tanstack/react-query").UseQueryResult<TData, Error>;
|
|
16
16
|
useEffectMutation: <TData, TError_1 extends import("./types.js").EffectfulError, TVariables>(options: import("./types.js").EffectfulMutationOptions<TData, TError_1, TVariables, R>) => import("@tanstack/react-query").UseMutationResult<TData, Error, TVariables>;
|
package/dist/src/lib/types.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export type EffectfulQueryOptions<TData, TError, R, TQueryKey extends QueryKey =
|
|
|
19
19
|
export interface Subscribable<A, E = never> {
|
|
20
20
|
readonly changes: unknown;
|
|
21
21
|
readonly get: () => A;
|
|
22
|
+
readonly _errorType?: E;
|
|
22
23
|
}
|
|
23
24
|
export interface SubscriptionOptions {
|
|
24
25
|
readonly skipInitial?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effectify/react-query",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "Integration of Effect with TanStack Query for React",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"tslib": "2.8.1",
|
|
30
|
-
"@tanstack/react-query": "5.
|
|
31
|
-
"@tanstack/query-core": "5.
|
|
32
|
-
"
|
|
33
|
-
"react": "19.2.0"
|
|
30
|
+
"@tanstack/react-query": "5.101.2",
|
|
31
|
+
"@tanstack/query-core": "5.101.2",
|
|
32
|
+
"react": "19.2.7"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
|
-
"typescript": "
|
|
37
|
-
"@types/react": "19.2.
|
|
35
|
+
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
36
|
+
"@types/react": "19.2.17",
|
|
37
|
+
"effect": "4.0.0-rc.111"
|
|
38
38
|
},
|
|
39
39
|
"optionalDependencies": {},
|
|
40
40
|
"peerDependencies": {
|