@povio/openapi-codegen-cli 2.0.2-rc.6 → 2.0.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/package.json CHANGED
@@ -1,6 +1,29 @@
1
1
  {
2
2
  "name": "@povio/openapi-codegen-cli",
3
- "version": "2.0.2-rc.6",
3
+ "version": "2.0.2",
4
+ "keywords": [
5
+ "codegen",
6
+ "openapi",
7
+ "povio",
8
+ "react-query",
9
+ "zod"
10
+ ],
11
+ "homepage": "https://github.com/povio/openapi-codegen-cli",
12
+ "bugs": "https://github.com/povio/openapi-codegen-cli/issues",
13
+ "license": "BSD-3-Clause",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/povio/openapi-codegen-cli.git"
17
+ },
18
+ "bin": {
19
+ "openapi-codegen": "./dist/sh.js"
20
+ },
21
+ "files": [
22
+ "README.md",
23
+ "dist/*",
24
+ "src/assets/**",
25
+ "src/generators/templates/**"
26
+ ],
4
27
  "main": "./dist/index.js",
5
28
  "types": "./dist/index.d.ts",
6
29
  "exports": {
@@ -20,9 +43,6 @@
20
43
  "require": "./dist/acl.js"
21
44
  }
22
45
  },
23
- "bin": {
24
- "openapi-codegen": "./dist/sh.js"
25
- },
26
46
  "scripts": {
27
47
  "start": "node --import tsx ./src/sh.ts",
28
48
  "test": "vitest run",
@@ -32,74 +52,36 @@
32
52
  "build": "yarn build:clean && yarn build:types && node ./esbuild.mjs && chmod +x ./dist/sh.js",
33
53
  "start:dist": "node ./dist/sh.js",
34
54
  "typecheck": "tsc --noEmit",
35
- "lint": "eslint ./src",
55
+ "lint": "oxlint --type-aware --fix",
56
+ "lint:check": "oxlint --type-aware",
57
+ "format": "oxfmt",
58
+ "format:check": "oxfmt --check",
36
59
  "check": "yarn typecheck && yarn lint && yarn test",
37
60
  "push": "yarn exec ./scripts/publish.sh",
38
61
  "dev:generate": "rm -rf ./output && yarn start generate --config ./test/config.ts",
39
62
  "dev:check": "yarn start check --config ./test/config.ts"
40
63
  },
41
- "files": [
42
- "dist/*",
43
- "src/assets/**",
44
- "src/generators/templates/**",
45
- "README.md"
46
- ],
47
- "keywords": [
48
- "povio",
49
- "openapi",
50
- "codegen",
51
- "zod",
52
- "react-query"
53
- ],
54
- "homepage": "https://github.com/povio/openapi-codegen-cli",
55
- "bugs": "https://github.com/povio/openapi-codegen-cli/issues",
56
- "repository": {
57
- "url": "git+https://github.com/povio/openapi-codegen-cli.git",
58
- "type": "git"
59
- },
60
- "license": "BSD-3-Clause",
61
64
  "dependencies": {
62
65
  "i18next": "^25.7.3",
63
66
  "import-fresh": "^3.3.1"
64
67
  },
65
- "peerDependencies": {
66
- "@casl/ability": "^6.7.3",
67
- "@casl/react": "^5.0.0",
68
- "@tanstack/react-query": "^5.89.0",
69
- "axios": "^1.13.1",
70
- "react": "^19.1.0",
71
- "zod": "^4.1.12"
72
- },
73
- "peerDependenciesMeta": {
74
- "@casl/ability": {
75
- "optional": true
76
- },
77
- "@casl/react": {
78
- "optional": true
79
- }
80
- },
81
68
  "devDependencies": {
82
69
  "@apidevtools/swagger-parser": "^10.1.0",
83
70
  "@casl/ability": "^6.7.3",
84
71
  "@casl/react": "^5.0.0",
85
72
  "@tanstack/react-query": "~5.85.9",
86
73
  "@types/node": "^20.12.12",
87
- "@types/prettier": "^3.0.0",
88
74
  "@types/prompt-sync": "^4.2.3",
89
75
  "@types/react": "^19.1.0",
90
76
  "@types/yargs": "^17.0.32",
91
- "@typescript-eslint/eslint-plugin": "^8.40.0",
92
- "@typescript-eslint/parser": "^8.40.0",
93
77
  "axios": "^1.13.1",
94
78
  "chalk": "^5.3.0",
95
- "esbuild": "^0.21.3",
96
- "eslint": "^8.57.0",
97
- "eslint-config-prettier": "^9.1.0",
98
- "eslint-plugin-no-relative-import-paths": "^1.6.1",
99
- "eslint-plugin-prettier": "^5.1.3",
79
+ "esbuild": "0.25.0",
100
80
  "handlebars": "^4.7.8",
101
81
  "openapi-types": "^12.1.3",
102
- "prettier": "^3.2.5",
82
+ "oxfmt": "^0.27.0",
83
+ "oxlint": "^1.41.0",
84
+ "oxlint-tsgolint": "^0.11.4",
103
85
  "prompt-sync": "^4.2.0",
104
86
  "react": "^19.1.0",
105
87
  "reflect-metadata": "^0.2.2",
@@ -107,15 +89,31 @@
107
89
  "ts-pattern": "^5.3.1",
108
90
  "tsx": "^4.10.5",
109
91
  "type-fest": "^4.26.0",
110
- "typescript": "^5.4.5",
92
+ "typescript": "^5.9.3",
111
93
  "vitest": "^2.0.5",
112
94
  "yargs": "^17.7.2",
113
95
  "zod": "^4.1.12"
114
96
  },
97
+ "peerDependencies": {
98
+ "@casl/ability": "^6.7.3",
99
+ "@casl/react": "^5.0.0",
100
+ "@tanstack/react-query": "^5.85.9",
101
+ "axios": "^1.13.1",
102
+ "react": "^19.1.0",
103
+ "zod": "^4.1.12"
104
+ },
105
+ "peerDependenciesMeta": {
106
+ "@casl/ability": {
107
+ "optional": true
108
+ },
109
+ "@casl/react": {
110
+ "optional": true
111
+ }
112
+ },
115
113
  "engines": {
116
114
  "node": ">= 14",
117
- "yarn": ">= 3.2",
118
- "npm": ">= 8"
115
+ "npm": ">= 8",
116
+ "yarn": ">= 3.2"
119
117
  },
120
118
  "packageManager": "yarn@4.2.2"
121
119
  }
@@ -1,7 +1,8 @@
1
- import { QueryKey, useQueryClient } from "@tanstack/react-query";
2
1
  import { useCallback } from "react";
3
2
 
4
3
  import { OpenApiQueryConfig } from "@povio/openapi-codegen-cli";
4
+ import { QueryKey, useQueryClient } from "@tanstack/react-query";
5
+
5
6
  import { QueryModule } from "./queryModules";
6
7
 
7
8
  export interface MutationEffectsOptions {