@tiesen/effect-tanstack-query 0.0.21 → 0.0.22

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/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as TanstackQueryOptionsProxy, t as SubscriptionOptions } from "./types-BarbB5aY.mjs";
1
+ import { n as TanstackQueryOptionsProxy, t as SubscriptionOptions } from "./types-C--WIjds.mjs";
2
2
  import { Service } from "effect/Context";
3
3
  import { ManagedRuntime } from "effect/ManagedRuntime";
4
4
  //#region src/create-proxy.d.ts
package/dist/react.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { r as UseSubscriptionReturns, t as SubscriptionOptions } from "./types-BarbB5aY.mjs";
1
+ import { r as UseSubscriptionReturns, t as SubscriptionOptions } from "./types-C--WIjds.mjs";
2
2
  //#region src/react.d.ts
3
3
  declare function useSubscription<TData, TError>(opts: SubscriptionOptions<TData, TError>): UseSubscriptionReturns<TData, TError>;
4
4
  //#endregion
@@ -1,10 +1,10 @@
1
1
  import { Effect } from "effect/Effect";
2
2
  import { DefaultError, MutationOptions, QueryKey, QueryObserverOptions } from "@tanstack/query-core";
3
3
  import { Input } from "effect/Duration";
4
+ import { Client } from "effect/http-api/HttpApiClient";
5
+ import { HttpApiEndpoint } from "effect/http-api/HttpApiEndpoint";
6
+ import { SseEventFromData, StreamSse } from "effect/http-api/HttpApiSchema";
4
7
  import { Schema } from "effect/Schema";
5
- import { Client } from "effect/unstable/httpapi/HttpApiClient";
6
- import { HttpApiEndpoint } from "effect/unstable/httpapi/HttpApiEndpoint";
7
- import { SseEventFromData, StreamSse } from "effect/unstable/httpapi/HttpApiSchema";
8
8
  //#region src/types.d.ts
9
9
  type TanstackQueryOptionsProxyInternal<T> = T extends Client.Method<HttpApiEndpoint<infer _Identifier, infer Method, infer _Path, infer Params, infer Query, infer Payload, infer Headers, infer Success, infer Error, infer _Middleware, infer _MiddlewareService>, infer _Error, infer _Requires> ? {
10
10
  query: Method extends 'GET' ? (input: MakeInput<Headers, Params, Query, never>) => UnwrapCodec<Success> | Promise<UnwrapCodec<Success>> : never;
package/dist/vue.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { r as UseSubscriptionReturns, t as SubscriptionOptions } from "./types-BarbB5aY.mjs";
1
+ import { r as UseSubscriptionReturns, t as SubscriptionOptions } from "./types-C--WIjds.mjs";
2
2
  import { MaybeRefOrGetter } from "vue";
3
3
  //#region src/vue.d.ts
4
4
  declare function useSubscription<TData, TError>(optsInput: MaybeRefOrGetter<SubscriptionOptions<TData, TError>>): UseSubscriptionReturns<TData, TError>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiesen/effect-tanstack-query",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
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": [
@@ -61,17 +61,17 @@
61
61
  "devDependencies": {
62
62
  "@types/react": "^19.3.0",
63
63
  "@types/vue": "^2.0.0",
64
- "oxfmt": "^0.68.0",
65
- "oxlint": "^1.83.0",
64
+ "oxfmt": "^0.71.0",
65
+ "oxlint": "^1.86.0",
66
66
  "tegami": "^1.5.0",
67
67
  "tsdown": "^0.23.0",
68
68
  "typescript": "^7.0.2"
69
69
  },
70
70
  "peerDependencies": {
71
- "@tanstack/query-core": ">=5.103.0",
72
- "effect": ">=4.0.0-rc.115",
71
+ "@tanstack/query-core": ">=5.104.0",
72
+ "effect": ">=4.0.0-rc.118",
73
73
  "react": ">=19.0.0",
74
- "vue": ">=3.0.0"
74
+ "vue": ">=3.5.43"
75
75
  },
76
76
  "peerDependenciesMeta": {
77
77
  "react": {