@openapi-qraft/cli 2.15.0-beta.5 → 2.15.0-beta.7

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +4 -0
  3. package/package.json +14 -14
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @openapi-qraft/cli
2
2
 
3
+ ## 2.15.0-beta.7
4
+
5
+ ### Minor Changes
6
+
7
+ - 6a2f1ed: Updated repository dependencies to current compatible versions across the workspace.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [f43bc5c]
12
+ - Updated dependencies [6a2f1ed]
13
+ - Updated dependencies [a2327db]
14
+ - Updated dependencies [55a23fd]
15
+ - @openapi-qraft/tanstack-query-react-plugin@2.15.0-beta.7
16
+ - @openapi-qraft/openapi-typescript-plugin@2.15.0-beta.7
17
+ - @openapi-qraft/plugin@2.15.0-beta.7
18
+ - @qraft/cli-utils@1.0.0-beta.6
19
+ - @qraft/plugin@1.0.0-beta.6
20
+
21
+ ## 2.15.0-beta.6
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [5041c44]
26
+ - @qraft/cli-utils@1.0.0-beta.5
27
+ - @openapi-qraft/openapi-typescript-plugin@2.15.0-beta.6
28
+ - @openapi-qraft/tanstack-query-react-plugin@2.15.0-beta.6
29
+ - @openapi-qraft/plugin@2.15.0-beta.6
30
+ - @qraft/plugin@1.0.0-beta.5
31
+
3
32
  ## 2.15.0-beta.5
4
33
 
5
34
  ### Patch Changes
package/README.md CHANGED
@@ -36,6 +36,7 @@ Options:
36
36
  example: "post /**:[A-Za-z]+Id ==> createOne"
37
37
  --postfix-services <string> Postfix to be added to the generated service name (eg: Service)
38
38
  --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. (default: "endpoint[0]")
39
+ --root-security Use root-level OpenAPI security as the default for operations without their own security. Operation-level security overrides it according to OpenAPI semantics.
39
40
  --file-header <string> Header to be added to the generated file (eg: /* eslint-disable */)
40
41
  --redocly [config] Use the Redocly configuration to generate multiple API clients
41
42
  If the [config] parameter is not specified, the default Redocly configuration will be used: [redocly.yaml | redocly.yml | .redocly.yaml |
@@ -210,6 +211,9 @@ The following plugins are currently supported:
210
211
  - `--openapi-types-import-path '@/api/openapi.d.ts'`
211
212
  - `--openapi-types-import-path '@external-package-types'`
212
213
  - **`--export-openapi-types [bool]`:** Add an export statement of the generated OpenAPI document types from the `./index.ts` file. Useful for sharing types within your project. _(optional, default: `true`, if `--plugin openapi-typescript` is used)_
214
+ - **`--root-security`**: Use root-level OpenAPI `security` as the default for operations that do not define their own `security`. Operation-level `security` overrides it according to OpenAPI semantics. _(optional, disabled by default)_
215
+ - Use this option when your OpenAPI document defines `security` on the top level and you want generated operation schemas to include those security requirements automatically.
216
+ - Without this option, only operation-level `security` is emitted into generated schemas.
213
217
 
214
218
  ### `--plugin openapi-typescript` options
215
219
 
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@openapi-qraft/cli",
3
- "version": "2.15.0-beta.5",
3
+ "version": "2.15.0-beta.7",
4
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",
8
8
  "test": "vitest run",
9
9
  "typecheck": "tsc --noEmit",
10
- "lint": "eslint",
10
+ "lint": "eslint --max-warnings 0",
11
11
  "clean": "rimraf dist/"
12
12
  },
13
13
  "type": "module",
@@ -15,21 +15,21 @@
15
15
  "openapi-qraft": "./bin.mjs"
16
16
  },
17
17
  "dependencies": {
18
- "@openapi-qraft/openapi-typescript-plugin": "2.15.0-beta.5",
19
- "@openapi-qraft/plugin": "2.15.0-beta.5",
20
- "@openapi-qraft/tanstack-query-react-plugin": "2.15.0-beta.5",
21
- "@qraft/cli-utils": "1.0.0-beta.4",
22
- "@qraft/plugin": "1.0.0-beta.4",
18
+ "@openapi-qraft/openapi-typescript-plugin": "2.15.0-beta.7",
19
+ "@openapi-qraft/plugin": "2.15.0-beta.7",
20
+ "@openapi-qraft/tanstack-query-react-plugin": "2.15.0-beta.7",
21
+ "@qraft/cli-utils": "1.0.0-beta.6",
22
+ "@qraft/plugin": "1.0.0-beta.6",
23
23
  "ansi-colors": "^4.1.3",
24
- "commander": "^14.0.2"
24
+ "commander": "^14.0.3"
25
25
  },
26
26
  "devDependencies": {
27
- "@openapi-qraft/eslint-config": "1.0.1",
28
- "@types/node": "^20.16.5",
29
- "eslint": "^9.39.1",
30
- "rimraf": "^6.1.2",
31
- "typescript": "^5.6.2",
32
- "vitest": "^3.2.4"
27
+ "@openapi-qraft/eslint-config": "1.1.0-beta.0",
28
+ "@types/node": "^20.19.37",
29
+ "eslint": "^10.1.0",
30
+ "rimraf": "^6.1.3",
31
+ "typescript": "^5.9.3",
32
+ "vitest": "^4.1.2"
33
33
  },
34
34
  "files": [
35
35
  "dist",