react-query-lightbase-codegen 2.0.5 → 2.0.6

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.
@@ -71,6 +71,9 @@ function generateReactQuery(spec) {
71
71
  });
72
72
  return `import { queryOptions, skipToken } from '@tanstack/react-query';
73
73
  import * as apiClient from './${(0, utils_1.specTitle)(spec)}.client';
74
+ // TEMPORARY: allows for backward compatibility imports
75
+ export * from './${(0, utils_1.specTitle)(spec)}.client';
76
+
74
77
  const hasDefinedProps = <T extends { [P in K]?: any }, K extends PropertyKey>(
75
78
  obj: T,
76
79
  ...keys: K[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-query-lightbase-codegen",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "license": "MIT",
5
5
  "description": "Generate Axios API clients and React Query options from OpenAPI specifications",
6
6
  "exports": "./dist/index.js",
@@ -81,6 +81,9 @@ export function generateReactQuery(spec: OpenAPIV3.Document): string {
81
81
 
82
82
  return `import { queryOptions, skipToken } from '@tanstack/react-query';
83
83
  import * as apiClient from './${specTitle(spec)}.client';
84
+ // TEMPORARY: allows for backward compatibility imports
85
+ export * from './${specTitle(spec)}.client';
86
+
84
87
  const hasDefinedProps = <T extends { [P in K]?: any }, K extends PropertyKey>(
85
88
  obj: T,
86
89
  ...keys: K[]