@openapi-qraft/cli 2.0.0-next.0 → 2.0.0-next.2
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 +29 -0
- package/README.md +1 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @openapi-qraft/cli
|
|
2
2
|
|
|
3
|
+
## 2.0.0-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @openapi-qraft/plugin@2.0.0-next.2
|
|
8
|
+
- @openapi-qraft/tanstack-query-react-plugin@2.0.0-next.2
|
|
9
|
+
- @openapi-qraft/openapi-typescript-plugin@1.2.0-next.2
|
|
10
|
+
|
|
11
|
+
## 2.0.0-next.1
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 2a53608: Updated TypeScript to version 5.5.4
|
|
16
|
+
- 76634bf: ### Changeset: `createPredefinedParametersRequestFn`
|
|
17
|
+
|
|
18
|
+
Introduced `createPredefinedParametersRequestFn`, generated by the `@openapi-qraft/cli` using
|
|
19
|
+
the `--operation-predefined-parameters` option.
|
|
20
|
+
This function allows for the automatic application of predefined
|
|
21
|
+
parameters to selected API operations by wrapping the base `requestFn`. It simplifies managing parameters, reducing
|
|
22
|
+
boilerplate code, and supports both static and dynamic values, enhancing flexibility in API request handling.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [2a53608]
|
|
27
|
+
- Updated dependencies [76634bf]
|
|
28
|
+
- @openapi-qraft/tanstack-query-react-plugin@2.0.0-next.1
|
|
29
|
+
- @openapi-qraft/openapi-typescript-plugin@1.2.0-next.1
|
|
30
|
+
- @openapi-qraft/plugin@2.0.0-next.1
|
|
31
|
+
|
|
3
32
|
## 2.0.0-next.0
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ within React applications.
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npm install -g @openapi-qraft/cli
|
|
16
|
+
npm install -g @openapi-qraft/cli@next
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Usage
|
|
@@ -112,8 +112,6 @@ npx openapi-qraft --plugin tanstack-query-react --plugin openapi-typescript http
|
|
|
112
112
|
- `--operation-predefined-parameters '/**:header.x-monite-version'` - set `header.x-monite-version`
|
|
113
113
|
as optional parameters for all services.
|
|
114
114
|
- `--operation-predefined-parameters '/**,!/auth/token:header.x-entity-id'` - set `header.x-entity-id` as optional parameters for all services except `/auth/token`.
|
|
115
|
-
- `--operation-predefined-parameters '/**:header.x-monite-version,query.x-api-key' '/user/**,/post/**:header.x-monite-entity-id'` -
|
|
116
|
-
set `header.x-monite-version` and `query.x-api-key` as optional parameters for all services, and `header.x-monite-entity-id` for the `/user/**` and `/post/**` services.
|
|
117
115
|
- `--operation-predefined-parameters 'post,put /**:header.x-entity-id'` - set the `Header` record `x-entity-id` as an optional parameter for the `POST` and `PUT` methods.
|
|
118
116
|
|
|
119
117
|
> **Note:** In future versions of the library, this feature will be expanded. Not only will it make parameters
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openapi-qraft/cli",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.2",
|
|
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.
|
|
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.2",
|
|
19
|
+
"@openapi-qraft/plugin": "2.0.0-next.2",
|
|
20
|
+
"@openapi-qraft/tanstack-query-react-plugin": "2.0.0-next.2",
|
|
21
21
|
"commander": "^11.1.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"eslint": "^9.0.0",
|
|
27
27
|
"globals": "^15.0.0",
|
|
28
28
|
"rimraf": "^5.0.10",
|
|
29
|
-
"typescript": "^5.
|
|
29
|
+
"typescript": "^5.5.4",
|
|
30
30
|
"vitest": "^1.4.0"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|