@openapi-qraft/cli 1.14.0-beta.4 → 1.14.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 +23 -0
- package/README.md +3 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @openapi-qraft/cli
|
|
2
2
|
|
|
3
|
+
## 1.14.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [77f0812]
|
|
8
|
+
- Updated dependencies [7430754]
|
|
9
|
+
- Updated dependencies [49dc44f]
|
|
10
|
+
- Updated dependencies [346a408]
|
|
11
|
+
- Updated dependencies [0df334b]
|
|
12
|
+
- Updated dependencies [787f568]
|
|
13
|
+
- @openapi-qraft/plugin@1.14.0
|
|
14
|
+
- @openapi-qraft/tanstack-query-react-plugin@1.14.0
|
|
15
|
+
- @openapi-qraft/openapi-typescript-plugin@1.1.0
|
|
16
|
+
|
|
17
|
+
## 1.14.0-beta.5
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [0df334b]
|
|
22
|
+
- @openapi-qraft/openapi-typescript-plugin@1.1.0-beta.5
|
|
23
|
+
- @openapi-qraft/plugin@1.14.0-beta.5
|
|
24
|
+
- @openapi-qraft/tanstack-query-react-plugin@1.14.0-beta.5
|
|
25
|
+
|
|
3
26
|
## 1.14.0-beta.4
|
|
4
27
|
|
|
5
28
|
### 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
|
|
3
|
+
"version": "1.14.0",
|
|
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
|
|
19
|
-
"@openapi-qraft/plugin": "1.14.0
|
|
20
|
-
"@openapi-qraft/tanstack-query-react-plugin": "1.14.0
|
|
18
|
+
"@openapi-qraft/openapi-typescript-plugin": "1.1.0",
|
|
19
|
+
"@openapi-qraft/plugin": "1.14.0",
|
|
20
|
+
"@openapi-qraft/tanstack-query-react-plugin": "1.14.0",
|
|
21
21
|
"commander": "^11.1.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|