@openapi-qraft/cli 2.0.0-next.0 → 2.0.0-next.1

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,26 @@
1
1
  # @openapi-qraft/cli
2
2
 
3
+ ## 2.0.0-next.1
4
+
5
+ ### Minor Changes
6
+
7
+ - 2a53608: Updated TypeScript to version 5.5.4
8
+ - 76634bf: ### Changeset: `createPredefinedParametersRequestFn`
9
+
10
+ Introduced `createPredefinedParametersRequestFn`, generated by the `@openapi-qraft/cli` using
11
+ the `--operation-predefined-parameters` option.
12
+ This function allows for the automatic application of predefined
13
+ parameters to selected API operations by wrapping the base `requestFn`. It simplifies managing parameters, reducing
14
+ boilerplate code, and supports both static and dynamic values, enhancing flexibility in API request handling.
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [2a53608]
19
+ - Updated dependencies [76634bf]
20
+ - @openapi-qraft/tanstack-query-react-plugin@2.0.0-next.1
21
+ - @openapi-qraft/openapi-typescript-plugin@1.2.0-next.1
22
+ - @openapi-qraft/plugin@2.0.0-next.1
23
+
3
24
  ## 2.0.0-next.0
4
25
 
5
26
  ### 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.0",
3
+ "version": "2.0.0-next.1",
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.1-next.0",
19
- "@openapi-qraft/plugin": "2.0.0-next.0",
20
- "@openapi-qraft/tanstack-query-react-plugin": "2.0.0-next.0",
18
+ "@openapi-qraft/openapi-typescript-plugin": "1.2.0-next.1",
19
+ "@openapi-qraft/plugin": "2.0.0-next.1",
20
+ "@openapi-qraft/tanstack-query-react-plugin": "2.0.0-next.1",
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.3.3",
29
+ "typescript": "^5.5.4",
30
30
  "vitest": "^1.4.0"
31
31
  },
32
32
  "files": [