@openapi-qraft/tanstack-query-react-types 2.7.2 → 2.9.0
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/CHANGELOG.md +8 -0
- package/dist/types/service-operation/ServiceOperationUseSuspenseInfiniteQuery.d.ts +2 -2
- package/dist/types/service-operation/ServiceOperationUseSuspenseInfiniteQuery.d.ts.map +1 -1
- package/dist/types/shared/index.d.ts +0 -1
- package/dist/types/shared/index.d.ts.map +1 -1
- package/package.json +2 -4
- package/src/service-operation/ServiceOperationUseSuspenseInfiniteQuery.ts +1 -1
- package/src/shared/index.ts +0 -1
- package/dist/types/shared/UseSuspenseInfiniteQueryOptions.d.ts +0 -6
- package/dist/types/shared/UseSuspenseInfiniteQueryOptions.d.ts.map +0 -1
- package/src/shared/UseSuspenseInfiniteQueryOptions.ts +0 -32
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @openapi-qraft/tanstack-query-react-types
|
|
2
2
|
|
|
3
|
+
## 2.9.0
|
|
4
|
+
|
|
5
|
+
## 2.8.0
|
|
6
|
+
|
|
7
|
+
### Minor Changes
|
|
8
|
+
|
|
9
|
+
- 6419f64: Update `peerDependency` to `@tanstack/react-query@^5.80.0` due to breaking changes in the `UseSuspenseInfiniteQueryOptions` interface.
|
|
10
|
+
|
|
3
11
|
## 2.7.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AreAllOptional, DeepReadonly, OperationError, OperationInfiniteData, PartialParameters, ServiceOperationInfiniteQueryKey
|
|
2
|
-
import type { InfiniteQueryPageParamsOptions, UseSuspenseInfiniteQueryResult } from '@tanstack/react-query';
|
|
1
|
+
import type { AreAllOptional, DeepReadonly, OperationError, OperationInfiniteData, PartialParameters, ServiceOperationInfiniteQueryKey } from '@openapi-qraft/tanstack-query-react-types';
|
|
2
|
+
import type { InfiniteQueryPageParamsOptions, UseSuspenseInfiniteQueryOptions, UseSuspenseInfiniteQueryResult } from '@tanstack/react-query';
|
|
3
3
|
export interface ServiceOperationUseSuspenseInfiniteQuery<TSchema extends {
|
|
4
4
|
url: string;
|
|
5
5
|
method: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceOperationUseSuspenseInfiniteQuery.d.ts","sourceRoot":"","sources":["../../../src/service-operation/ServiceOperationUseSuspenseInfiniteQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,gCAAgC,
|
|
1
|
+
{"version":3,"file":"ServiceOperationUseSuspenseInfiniteQuery.d.ts","sourceRoot":"","sources":["../../../src/service-operation/ServiceOperationUseSuspenseInfiniteQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,gCAAgC,EACjC,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EACV,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,wCAAwC,CACvD,OAAO,SAAS;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAC/C,qBAAqB,EACrB,YAAY,EACZ,MAAM;IAEN,wBAAwB,CACtB,UAAU,SAAS,YAAY,EAC/B,KAAK,GAAG,qBAAqB,EAE7B,UAAU,EACN,gCAAgC,CAAC,OAAO,EAAE,YAAY,CAAC,GACvD,CAAC,cAAc,CAAC,YAAY,CAAC,SAAS,IAAI,GACtC,YAAY,CAAC,YAAY,CAAC,GAAG,IAAI,GACjC,YAAY,CAAC,YAAY,CAAC,CAAC,EACnC,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,qBAAqB,EACrB,MAAM,EACN,qBAAqB,CAAC,KAAK,EAAE,YAAY,CAAC,EAC1C,gCAAgC,CAAC,OAAO,EAAE,YAAY,CAAC,EACvD,iBAAiB,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAC5C,EACC,UAAU,GACV,sBAAsB,GACtB,kBAAkB,GAClB,kBAAkB,CACrB,GACC,8BAA8B,CAC5B,qBAAqB,EACrB,iBAAiB,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAC5C,GACF,8BAA8B,CAC/B,qBAAqB,CAAC,KAAK,EAAE,YAAY,CAAC,EAC1C,cAAc,CAAC,MAAM,CAAC,CACvB,CAAC;CACH"}
|
|
@@ -13,7 +13,6 @@ export type * from './ServiceOperationMutation.js';
|
|
|
13
13
|
export type * from './ServiceOperationQuery.js';
|
|
14
14
|
export type * from './UseQueryOptionsForUseQueries.js';
|
|
15
15
|
export type * from './UseQueryOptionsForUseSuspenseQuery.js';
|
|
16
|
-
export type * from './UseSuspenseInfiniteQueryOptions.js';
|
|
17
16
|
export type * from './WithOptional.js';
|
|
18
17
|
export type * from './QraftServiceOperationsToken.js';
|
|
19
18
|
export type * from './OperationError.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,4BAA4B,CAAC;AAChD,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,gDAAgD,CAAC;AACpE,mBAAmB,wCAAwC,CAAC;AAC5D,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,+BAA+B,CAAC;AACnD,mBAAmB,4BAA4B,CAAC;AAChD,mBAAmB,mCAAmC,CAAC;AACvD,mBAAmB,yCAAyC,CAAC;AAC7D,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,4BAA4B,CAAC;AAChD,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,gDAAgD,CAAC;AACpE,mBAAmB,wCAAwC,CAAC;AAC5D,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,+BAA+B,CAAC;AACnD,mBAAmB,4BAA4B,CAAC;AAChD,mBAAmB,mCAAmC,CAAC;AACvD,mBAAmB,yCAAyC,CAAC;AAC7D,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,kCAAkC,CAAC;AACtD,mBAAmB,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openapi-qraft/tanstack-query-react-types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn clean && NODE_ENV=production rollup --config rollup.config.mjs && tsc --project tsconfig.build.json --emitDeclarationOnly",
|
|
6
6
|
"dev": "yarn clean && tsc --project tsconfig.build.json --watch --outDir ./dist/esm --noEmitOnError false",
|
|
@@ -31,14 +31,12 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@tanstack/query
|
|
35
|
-
"@tanstack/react-query": "^5.0.0",
|
|
34
|
+
"@tanstack/react-query": "^5.80.0",
|
|
36
35
|
"react": "^18 || ^19"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
38
|
"@openapi-qraft/eslint-config": "1.0.1",
|
|
40
39
|
"@openapi-qraft/rollup-config": "1.1.1",
|
|
41
|
-
"@tanstack/query-core": "^5.80.6",
|
|
42
40
|
"@tanstack/react-query": "^5.80.6",
|
|
43
41
|
"eslint": "^9.24.0",
|
|
44
42
|
"rimraf": "^5.0.10",
|
|
@@ -5,10 +5,10 @@ import type {
|
|
|
5
5
|
OperationInfiniteData,
|
|
6
6
|
PartialParameters,
|
|
7
7
|
ServiceOperationInfiniteQueryKey,
|
|
8
|
-
UseSuspenseInfiniteQueryOptions,
|
|
9
8
|
} from '@openapi-qraft/tanstack-query-react-types';
|
|
10
9
|
import type {
|
|
11
10
|
InfiniteQueryPageParamsOptions,
|
|
11
|
+
UseSuspenseInfiniteQueryOptions,
|
|
12
12
|
UseSuspenseInfiniteQueryResult,
|
|
13
13
|
} from '@tanstack/react-query';
|
|
14
14
|
|
package/src/shared/index.ts
CHANGED
|
@@ -13,7 +13,6 @@ export type * from './ServiceOperationMutation.js';
|
|
|
13
13
|
export type * from './ServiceOperationQuery.js';
|
|
14
14
|
export type * from './UseQueryOptionsForUseQueries.js';
|
|
15
15
|
export type * from './UseQueryOptionsForUseSuspenseQuery.js';
|
|
16
|
-
export type * from './UseSuspenseInfiniteQueryOptions.js';
|
|
17
16
|
export type * from './WithOptional.js';
|
|
18
17
|
export type * from './QraftServiceOperationsToken.js';
|
|
19
18
|
export type * from './OperationError.js';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { DefaultError, QueryKey } from '@tanstack/query-core';
|
|
2
|
-
import type { UseSuspenseInfiniteQueryOptions as UseSuspenseInfiniteQueryOptionsVendor } from '@tanstack/react-query';
|
|
3
|
-
export type UseSuspenseInfiniteQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = UseSuspenseInfiniteQueryOptionsVendor<TQueryFnData, TError, TData, TQueryKey> extends {
|
|
4
|
-
queryKey: TQueryKey;
|
|
5
|
-
} ? UseSuspenseInfiniteQueryOptionsVendor<TQueryFnData, TError, TData, TQueryKey, TPageParam> : UseSuspenseInfiniteQueryOptionsVendor<TQueryFnData, TError, TData, TQueryFnData, TQueryKey, TPageParam>;
|
|
6
|
-
//# sourceMappingURL=UseSuspenseInfiniteQueryOptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UseSuspenseInfiniteQueryOptions.d.ts","sourceRoot":"","sources":["../../../src/shared/UseSuspenseInfiniteQueryOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,+BAA+B,IAAI,qCAAqC,EAAE,MAAM,uBAAuB,CAAC;AAEtH,MAAM,MAAM,+BAA+B,CACzC,YAAY,GAAG,OAAO,EACtB,MAAM,GAAG,YAAY,EACrB,KAAK,GAAG,YAAY,EACpB,SAAS,SAAS,QAAQ,GAAG,QAAQ,EACrC,UAAU,GAAG,OAAO,IAEpB,qCAAqC,CACnC,YAAY,EACZ,MAAM,EACN,KAAK,EACL,SAAS,CACV,SAAS;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAC7B,qCAAqC,CACnC,YAAY,EACZ,MAAM,EACN,KAAK,EACL,SAAS,EACT,UAAU,CACX,GAED,qCAAqC,CACnC,YAAY,EACZ,MAAM,EACN,KAAK,EACL,YAAY,EACZ,SAAS,EACT,UAAU,CACX,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { DefaultError, QueryKey } from '@tanstack/query-core';
|
|
2
|
-
import type { UseSuspenseInfiniteQueryOptions as UseSuspenseInfiniteQueryOptionsVendor } from '@tanstack/react-query';
|
|
3
|
-
|
|
4
|
-
export type UseSuspenseInfiniteQueryOptions<
|
|
5
|
-
TQueryFnData = unknown,
|
|
6
|
-
TError = DefaultError,
|
|
7
|
-
TData = TQueryFnData,
|
|
8
|
-
TQueryKey extends QueryKey = QueryKey,
|
|
9
|
-
TPageParam = unknown,
|
|
10
|
-
> =
|
|
11
|
-
UseSuspenseInfiniteQueryOptionsVendor<
|
|
12
|
-
TQueryFnData,
|
|
13
|
-
TError,
|
|
14
|
-
TData,
|
|
15
|
-
TQueryKey
|
|
16
|
-
> extends { queryKey: TQueryKey }
|
|
17
|
-
? UseSuspenseInfiniteQueryOptionsVendor<
|
|
18
|
-
TQueryFnData,
|
|
19
|
-
TError,
|
|
20
|
-
TData,
|
|
21
|
-
TQueryKey,
|
|
22
|
-
TPageParam
|
|
23
|
-
>
|
|
24
|
-
: // @ts-expect-error - the compatibility layer with @tanstack/react-query <= 5.79.2
|
|
25
|
-
UseSuspenseInfiniteQueryOptionsVendor<
|
|
26
|
-
TQueryFnData,
|
|
27
|
-
TError,
|
|
28
|
-
TData,
|
|
29
|
-
TQueryFnData,
|
|
30
|
-
TQueryKey,
|
|
31
|
-
TPageParam
|
|
32
|
-
>;
|