@openapi-qraft/cli 1.14.0-beta.4 → 1.14.0-beta.5

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,14 @@
1
1
  # @openapi-qraft/cli
2
2
 
3
+ ## 1.14.0-beta.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0df334b]
8
+ - @openapi-qraft/openapi-typescript-plugin@1.1.0-beta.5
9
+ - @openapi-qraft/plugin@1.14.0-beta.5
10
+ - @openapi-qraft/tanstack-query-react-plugin@1.14.0-beta.5
11
+
3
12
  ## 1.14.0-beta.4
4
13
 
5
14
  ### Patch Changes
package/README.md CHANGED
@@ -56,6 +56,7 @@ Options:
56
56
  --alphabetize Sort object keys alphabetically
57
57
  --exclude-deprecated Exclude deprecated types
58
58
  --no-blob-from-binary If this option is enabled, binary format fields will not be converted to Blob types, preserving the native representation
59
+ --explicit-component-exports Enabling this option will export API components as separate type aliases, alongside `components` interface
59
60
  -h, --help display help for command
60
61
  ```
61
62
 
@@ -136,6 +137,8 @@ npx openapi-qraft --plugin tanstack-query-react --plugin openapi-typescript http
136
137
  - `--operation-name-modifier '/posts,/files:create[a-zA-Z]+ ==> createOne'` - will change all operations under `/posts` and `/files` to `createOne` if the operation name starts with `create`.
137
138
  - `--operation-name-modifier 'post /files ==> createOne' 'put /posts ==> updateOne'` - will change all `POST` operations under `/files` to `createOne` and all `PUT` operations under `/posts` to `updateOne`.
138
139
 
140
+ - **`--explicit-component-exports`:** Enabling this option will export API components as separate type aliases, alongside `components` interface.
141
+
139
142
  - **`--service-name-base <endpoint[<index>] | tags>`:** Use OpenAPI Operation `endpoint[<index>]` path part (e.g.: `/0/1/2`) or `tags` as the base name of the service. _(optional, default: `endpoint[0]`)_.
140
143
  - Examples:
141
144
  - `--service-name-base endpoint[0]` generates `services/FooService.ts` for the endpoint `/foo/bar/baz`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openapi-qraft/cli",
3
- "version": "1.14.0-beta.4",
3
+ "version": "1.14.0-beta.5",
4
4
  "description": "CLI for generating typed Tanstack Query React Hooks and services from OpenAPI Schemas, improving type safety in React apps",
5
5
  "scripts": {
6
6
  "build": "tsc --project tsconfig.build.json",
@@ -15,9 +15,9 @@
15
15
  "openapi-qraft": "./bin.mjs"
16
16
  },
17
17
  "dependencies": {
18
- "@openapi-qraft/openapi-typescript-plugin": "1.1.0-beta.4",
19
- "@openapi-qraft/plugin": "1.14.0-beta.4",
20
- "@openapi-qraft/tanstack-query-react-plugin": "1.14.0-beta.4",
18
+ "@openapi-qraft/openapi-typescript-plugin": "1.1.0-beta.5",
19
+ "@openapi-qraft/plugin": "1.14.0-beta.5",
20
+ "@openapi-qraft/tanstack-query-react-plugin": "1.14.0-beta.5",
21
21
  "commander": "^11.1.0"
22
22
  },
23
23
  "devDependencies": {