@openapi-qraft/tanstack-query-react-types 2.5.0 → 2.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @openapi-qraft/tanstack-query-react-types
2
2
 
3
+ ## 2.6.1
4
+
5
+ ## 2.6.0
6
+
7
+ ### Minor Changes
8
+
9
+ - c71e7f9: ### Multiple API Client Generation
10
+
11
+ - Added support for generating multiple custom API client functions for a single OpenAPI specification with the new `--create-api-client-fn` option
12
+ - Improved modularity by allowing the creation of API clients with specific sets of services and callbacks
13
+ - Enhanced type inference by removing generic type parameters from `qraftAPIClient` function, making it more user-friendly
14
+
15
+ #### Breaking Changes
16
+
17
+ - Removed generic type parameters from `qraftAPIClient` function - types are now automatically inferred from arguments
18
+ - Updated return type of `createAPIClient` which may require changes to code that references this type in contexts or variables
19
+ - Added a migration guide and codemod script to help users update their code to the new API
20
+
3
21
  ## 2.5.0
4
22
 
5
23
  ## 2.5.0-beta.3
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A unique symbol that exists only at type-level and is used for type inference of services.
3
+ * This symbol does not exist at runtime and cannot be accessed or used for data operations.
4
+ * It serves purely as a TypeScript type mechanism to infer and enforce correct service types
5
+ * when services are passed as variables in the type system.
6
+ */
7
+ export declare const QraftServiceOperationsToken: unique symbol;
8
+ export type QraftServiceOperationsToken = typeof QraftServiceOperationsToken;
9
+ //# sourceMappingURL=QraftServiceOperationsToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QraftServiceOperationsToken.d.ts","sourceRoot":"","sources":["../../../src/shared/QraftServiceOperationsToken.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,2BAA2B,EAAE,OAAO,MAAM,CAAC;AAChE,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC"}
@@ -14,4 +14,5 @@ export type * from './ServiceOperationQuery.js';
14
14
  export type * from './UseQueryOptionsForUseQueries.js';
15
15
  export type * from './UseQueryOptionsForUseSuspenseQuery.js';
16
16
  export type * from './WithOptional.js';
17
+ export type * from './QraftServiceOperationsToken.js';
17
18
  //# sourceMappingURL=index.d.ts.map
@@ -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,mBAAmB,CAAC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openapi-qraft/tanstack-query-react-types",
3
- "version": "2.5.0",
3
+ "version": "2.6.1",
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",
@@ -0,0 +1,8 @@
1
+ /**
2
+ * A unique symbol that exists only at type-level and is used for type inference of services.
3
+ * This symbol does not exist at runtime and cannot be accessed or used for data operations.
4
+ * It serves purely as a TypeScript type mechanism to infer and enforce correct service types
5
+ * when services are passed as variables in the type system.
6
+ */
7
+ export declare const QraftServiceOperationsToken: unique symbol;
8
+ export type QraftServiceOperationsToken = typeof QraftServiceOperationsToken;
@@ -14,3 +14,4 @@ export type * from './ServiceOperationQuery.js';
14
14
  export type * from './UseQueryOptionsForUseQueries.js';
15
15
  export type * from './UseQueryOptionsForUseSuspenseQuery.js';
16
16
  export type * from './WithOptional.js';
17
+ export type * from './QraftServiceOperationsToken.js';