@openapi-qraft/cli 2.0.0-next.1 → 2.0.0-next.11
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 +117 -0
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,122 @@
|
|
|
1
1
|
# @openapi-qraft/cli
|
|
2
2
|
|
|
3
|
+
## 2.0.0-next.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [3ed94dc]
|
|
8
|
+
- @openapi-qraft/tanstack-query-react-plugin@2.0.0-next.11
|
|
9
|
+
- @openapi-qraft/plugin@2.0.0-next.11
|
|
10
|
+
- @openapi-qraft/openapi-typescript-plugin@1.2.0-next.11
|
|
11
|
+
|
|
12
|
+
## 2.0.0-next.10
|
|
13
|
+
|
|
14
|
+
### Major Changes
|
|
15
|
+
|
|
16
|
+
- 8c77eb2: Generate comprehensive operation names with consideration of the `--service-name-base` option. Operation names now
|
|
17
|
+
include all path parts and parameters, and the structure can be customized based on the `--service-name-base` value.
|
|
18
|
+
|
|
19
|
+
**Breaking Changes:**
|
|
20
|
+
|
|
21
|
+
- Operation names now include all path parts and parameters by default.
|
|
22
|
+
- `/api/v{api-version}` is no longer automatically removed from the path when generating operation names.
|
|
23
|
+
- The `--service-name-base` option now influences the generated operation names with a new structure.
|
|
24
|
+
|
|
25
|
+
**Examples:**
|
|
26
|
+
|
|
27
|
+
- With `--service-name-base=endpoint[0]`:
|
|
28
|
+
`POST /v1/users/{id}` → `api.v1.postUsersId`
|
|
29
|
+
- With `--service-name-base=endpoint[1]`:
|
|
30
|
+
`GET /v1/users/{id}` → `api.users.getId`
|
|
31
|
+
- With `--service-name-base=endpoint[1]`:
|
|
32
|
+
`POST /v1/users/suspend` → `api.users.postSuspend`
|
|
33
|
+
- With `--service-name-base=endpoint[1]`:
|
|
34
|
+
`POST /v1/users/{id}/{key}` → `api.postIdKey`
|
|
35
|
+
- With `--service-name-base=tags`:
|
|
36
|
+
`POST /v1/users/{id}/{key}` → `api.<tag>.postV1UsersIdKey`
|
|
37
|
+
|
|
38
|
+
This change provides more flexibility in operation name generation and allows for better customization based on project
|
|
39
|
+
requirements.
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- Updated dependencies [8c77eb2]
|
|
44
|
+
- @openapi-qraft/plugin@2.0.0-next.10
|
|
45
|
+
- @openapi-qraft/openapi-typescript-plugin@1.2.0-next.10
|
|
46
|
+
- @openapi-qraft/tanstack-query-react-plugin@2.0.0-next.10
|
|
47
|
+
|
|
48
|
+
## 2.0.0-next.9
|
|
49
|
+
|
|
50
|
+
### Patch Changes
|
|
51
|
+
|
|
52
|
+
- Updated dependencies [4ef9ce0]
|
|
53
|
+
- Updated dependencies [9dc1918]
|
|
54
|
+
- Updated dependencies [78638a5]
|
|
55
|
+
- @openapi-qraft/tanstack-query-react-plugin@2.0.0-next.9
|
|
56
|
+
- @openapi-qraft/openapi-typescript-plugin@1.2.0-next.9
|
|
57
|
+
- @openapi-qraft/plugin@2.0.0-next.9
|
|
58
|
+
|
|
59
|
+
## 2.0.0-next.8
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- Updated dependencies [5b64278]
|
|
64
|
+
- @openapi-qraft/tanstack-query-react-plugin@2.0.0-next.8
|
|
65
|
+
- @openapi-qraft/plugin@2.0.0-next.8
|
|
66
|
+
- @openapi-qraft/openapi-typescript-plugin@1.2.0-next.8
|
|
67
|
+
|
|
68
|
+
## 2.0.0-next.7
|
|
69
|
+
|
|
70
|
+
### Patch Changes
|
|
71
|
+
|
|
72
|
+
- @openapi-qraft/plugin@2.0.0-next.7
|
|
73
|
+
- @openapi-qraft/tanstack-query-react-plugin@2.0.0-next.7
|
|
74
|
+
- @openapi-qraft/openapi-typescript-plugin@1.2.0-next.7
|
|
75
|
+
|
|
76
|
+
## 2.0.0-next.6
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- Updated dependencies [fc6b4e7]
|
|
81
|
+
- @openapi-qraft/tanstack-query-react-plugin@2.0.0-next.6
|
|
82
|
+
- @openapi-qraft/plugin@2.0.0-next.6
|
|
83
|
+
- @openapi-qraft/openapi-typescript-plugin@1.2.0-next.6
|
|
84
|
+
|
|
85
|
+
## 2.0.0-next.5
|
|
86
|
+
|
|
87
|
+
### Patch Changes
|
|
88
|
+
|
|
89
|
+
- Updated dependencies [56687f3]
|
|
90
|
+
- @openapi-qraft/tanstack-query-react-plugin@2.0.0-next.5
|
|
91
|
+
- @openapi-qraft/plugin@2.0.0-next.5
|
|
92
|
+
- @openapi-qraft/openapi-typescript-plugin@1.2.0-next.5
|
|
93
|
+
|
|
94
|
+
## 2.0.0-next.4
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- Updated dependencies [cd8a856]
|
|
99
|
+
- @openapi-qraft/openapi-typescript-plugin@1.2.0-next.4
|
|
100
|
+
- @openapi-qraft/plugin@2.0.0-next.4
|
|
101
|
+
- @openapi-qraft/tanstack-query-react-plugin@2.0.0-next.4
|
|
102
|
+
|
|
103
|
+
## 2.0.0-next.3
|
|
104
|
+
|
|
105
|
+
### Patch Changes
|
|
106
|
+
|
|
107
|
+
- Updated dependencies [7e51026]
|
|
108
|
+
- @openapi-qraft/tanstack-query-react-plugin@2.0.0-next.3
|
|
109
|
+
- @openapi-qraft/plugin@2.0.0-next.3
|
|
110
|
+
- @openapi-qraft/openapi-typescript-plugin@1.2.0-next.3
|
|
111
|
+
|
|
112
|
+
## 2.0.0-next.2
|
|
113
|
+
|
|
114
|
+
### Patch Changes
|
|
115
|
+
|
|
116
|
+
- @openapi-qraft/plugin@2.0.0-next.2
|
|
117
|
+
- @openapi-qraft/tanstack-query-react-plugin@2.0.0-next.2
|
|
118
|
+
- @openapi-qraft/openapi-typescript-plugin@1.2.0-next.2
|
|
119
|
+
|
|
3
120
|
## 2.0.0-next.1
|
|
4
121
|
|
|
5
122
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openapi-qraft/cli",
|
|
3
|
-
"version": "2.0.0-next.
|
|
4
|
-
"description": "CLI for generating typed
|
|
3
|
+
"version": "2.0.0-next.11",
|
|
4
|
+
"description": "CLI for generating typed TanStack Query React Hooks and services from OpenAPI Document, improving type safety in React apps",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
7
7
|
"dev": "yarn build --watch --noEmitOnError false",
|
|
@@ -15,19 +15,19 @@
|
|
|
15
15
|
"openapi-qraft": "./bin.mjs"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@openapi-qraft/openapi-typescript-plugin": "1.2.0-next.
|
|
19
|
-
"@openapi-qraft/plugin": "2.0.0-next.
|
|
20
|
-
"@openapi-qraft/tanstack-query-react-plugin": "2.0.0-next.
|
|
18
|
+
"@openapi-qraft/openapi-typescript-plugin": "1.2.0-next.11",
|
|
19
|
+
"@openapi-qraft/plugin": "2.0.0-next.11",
|
|
20
|
+
"@openapi-qraft/tanstack-query-react-plugin": "2.0.0-next.11",
|
|
21
21
|
"commander": "^11.1.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@openapi-qraft/eslint-config": "1.0.0",
|
|
25
|
-
"@types/node": "^
|
|
26
|
-
"eslint": "^9.
|
|
27
|
-
"globals": "^15.
|
|
25
|
+
"@types/node": "^20.16.5",
|
|
26
|
+
"eslint": "^9.10.0",
|
|
27
|
+
"globals": "^15.9.0",
|
|
28
28
|
"rimraf": "^5.0.10",
|
|
29
|
-
"typescript": "^5.
|
|
30
|
-
"vitest": "^1.
|
|
29
|
+
"typescript": "^5.6.2",
|
|
30
|
+
"vitest": "^1.6.0"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
33
|
"dist",
|