@openapi-qraft/openapi-typescript-plugin 1.2.0-next.8 → 1.2.0
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 +92 -0
- package/dist/lib/createOpenapiTypesImportPath.d.ts +1 -1
- package/dist/lib/createOpenapiTypesImportPath.d.ts.map +1 -1
- package/dist/lib/createOpenapiTypesImportPath.js +1 -1
- package/dist/lib/createOpenapiTypesImportPath.js.map +1 -1
- package/package.json +8 -8
- package/src/lib/createOpenapiTypesImportPath.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,97 @@
|
|
|
1
1
|
# @openapi-qraft/openapi-typescript
|
|
2
2
|
|
|
3
|
+
## 1.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2a53608: Updated TypeScript to version 5.5.4
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 9dc1918: Simplified `TParams` type for conditional expressions.
|
|
12
|
+
- cd8a856: Resolved conflict between explicit exports and generated enum exports by aligning export strategy.
|
|
13
|
+
- 34ff132: Added support for `void` and `undefined` arguments in mutation operations and `setQueryData`.
|
|
14
|
+
- Updated dependencies [16b380f]
|
|
15
|
+
- Updated dependencies [8c77eb2]
|
|
16
|
+
- Updated dependencies [2a53608]
|
|
17
|
+
- Updated dependencies [76634bf]
|
|
18
|
+
- Updated dependencies [c111be6]
|
|
19
|
+
- Updated dependencies [62ff8e0]
|
|
20
|
+
- @openapi-qraft/plugin@2.0.0
|
|
21
|
+
|
|
22
|
+
## 1.2.0-next.19
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [62ff8e0]
|
|
27
|
+
- @openapi-qraft/plugin@2.0.0-next.19
|
|
28
|
+
|
|
29
|
+
## 1.2.0-next.18
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- @openapi-qraft/plugin@2.0.0-next.18
|
|
34
|
+
|
|
35
|
+
## 1.2.0-next.17
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Updated dependencies [16b380f]
|
|
40
|
+
- @openapi-qraft/plugin@2.0.0-next.17
|
|
41
|
+
|
|
42
|
+
## 1.2.0-next.16
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- @openapi-qraft/plugin@2.0.0-next.16
|
|
47
|
+
|
|
48
|
+
## 1.2.0-next.15
|
|
49
|
+
|
|
50
|
+
### Patch Changes
|
|
51
|
+
|
|
52
|
+
- 4b1c13f: Fixed support for the `--explicit-import-extensions .ts` option when using the `openapi-typescript-plugin`.
|
|
53
|
+
- @openapi-qraft/plugin@2.0.0-next.15
|
|
54
|
+
|
|
55
|
+
## 1.2.0-next.14
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- 34ff132: Added support for `void` and `undefined` arguments in mutation operations and `setQueryData`.
|
|
60
|
+
- @openapi-qraft/plugin@2.0.0-next.14
|
|
61
|
+
|
|
62
|
+
## 1.2.0-next.13
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- Updated dependencies [c111be6]
|
|
67
|
+
- @openapi-qraft/plugin@2.0.0-next.13
|
|
68
|
+
|
|
69
|
+
## 1.2.0-next.12
|
|
70
|
+
|
|
71
|
+
### Patch Changes
|
|
72
|
+
|
|
73
|
+
- @openapi-qraft/plugin@2.0.0-next.12
|
|
74
|
+
|
|
75
|
+
## 1.2.0-next.11
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- @openapi-qraft/plugin@2.0.0-next.11
|
|
80
|
+
|
|
81
|
+
## 1.2.0-next.10
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- Updated dependencies [8c77eb2]
|
|
86
|
+
- @openapi-qraft/plugin@2.0.0-next.10
|
|
87
|
+
|
|
88
|
+
## 1.2.0-next.9
|
|
89
|
+
|
|
90
|
+
### Patch Changes
|
|
91
|
+
|
|
92
|
+
- 9dc1918: Simplified `TParams` type for conditional expressions.
|
|
93
|
+
- @openapi-qraft/plugin@2.0.0-next.9
|
|
94
|
+
|
|
3
95
|
## 1.2.0-next.8
|
|
4
96
|
|
|
5
97
|
### Patch Changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @param openapiTypesFileName The file name of the OpenAPI types file. Eg: `schema.d.ts`
|
|
4
4
|
* @param explicitImportExtensions Whether to include explicit `.js` extensions in the import path.
|
|
5
5
|
*/
|
|
6
|
-
export declare function createOpenapiTypesImportPath(openapiTypesFileName: string, explicitImportExtensions:
|
|
6
|
+
export declare function createOpenapiTypesImportPath(openapiTypesFileName: string, explicitImportExtensions: '.ts' | '.js' | undefined): string;
|
|
7
7
|
/**
|
|
8
8
|
* Check if the file name is a valid TypeScript file name.
|
|
9
9
|
* Eg: `schema.d.ts`, `schema.ts`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOpenapiTypesImportPath.d.ts","sourceRoot":"","sources":["../../src/lib/createOpenapiTypesImportPath.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,oBAAoB,EAAE,MAAM,EAC5B,wBAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"createOpenapiTypesImportPath.d.ts","sourceRoot":"","sources":["../../src/lib/createOpenapiTypesImportPath.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,oBAAoB,EAAE,MAAM,EAC5B,wBAAwB,EAAE,KAAK,GAAG,KAAK,GAAG,SAAS,UAQpD;AAUD;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,WAEzD"}
|
|
@@ -7,7 +7,7 @@ export function createOpenapiTypesImportPath(openapiTypesFileName, explicitImpor
|
|
|
7
7
|
if (openapiTypesFileName.endsWith('.d.ts'))
|
|
8
8
|
return `../${getTypeScriptFileBaseName(openapiTypesFileName)}.d.ts`;
|
|
9
9
|
return explicitImportExtensions
|
|
10
|
-
? `../${getTypeScriptFileBaseName(openapiTypesFileName)}
|
|
10
|
+
? `../${getTypeScriptFileBaseName(openapiTypesFileName)}${explicitImportExtensions}`
|
|
11
11
|
: `../${openapiTypesFileName}`;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOpenapiTypesImportPath.js","sourceRoot":"","sources":["../../src/lib/createOpenapiTypesImportPath.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,4BAA4B,CAC1C,oBAA4B,EAC5B,
|
|
1
|
+
{"version":3,"file":"createOpenapiTypesImportPath.js","sourceRoot":"","sources":["../../src/lib/createOpenapiTypesImportPath.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,4BAA4B,CAC1C,oBAA4B,EAC5B,wBAAmD;IAEnD,IAAI,oBAAoB,CAAC,QAAQ,CAAC,OAAO,CAAC;QACxC,OAAO,MAAM,yBAAyB,CAAC,oBAAoB,CAAC,OAAO,CAAC;IAEtE,OAAO,wBAAwB;QAC7B,CAAC,CAAC,MAAM,yBAAyB,CAAC,oBAAoB,CAAC,GAAG,wBAAwB,EAAE;QACpF,CAAC,CAAC,MAAM,oBAAoB,EAAE,CAAC;AACnC,CAAC;AAED;;;GAGG;AACH,SAAS,yBAAyB,CAAC,oBAA4B;IAC7D,OAAO,oBAAoB,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,EAAE,CAAC,CAAC;AAClE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAC,QAAgB;IACxD,OAAO,oBAAoB,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC/C,CAAC;AAED,SAAS,oBAAoB;IAC3B,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openapi-qraft/openapi-typescript-plugin",
|
|
3
|
-
"version": "1.2.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@openapi-qraft/plugin": "^2.0.0
|
|
30
|
-
"openapi-typescript": "^7.
|
|
31
|
-
"typescript": "^5.
|
|
29
|
+
"@openapi-qraft/plugin": "^2.0.0",
|
|
30
|
+
"openapi-typescript": "^7.4.0",
|
|
31
|
+
"typescript": "^5.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@openapi-qraft/eslint-config": "1.0.0",
|
|
35
35
|
"@openapi-qraft/test-fixtures": "1.0.0",
|
|
36
|
-
"@types/node": "^
|
|
37
|
-
"eslint": "^9.
|
|
38
|
-
"memfs": "^4.
|
|
36
|
+
"@types/node": "^20.16.5",
|
|
37
|
+
"eslint": "^9.16.0",
|
|
38
|
+
"memfs": "^4.11.1",
|
|
39
39
|
"rimraf": "^5.0.10",
|
|
40
|
-
"vitest": "^1.
|
|
40
|
+
"vitest": "^2.1.8"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|
|
43
43
|
"dist",
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export function createOpenapiTypesImportPath(
|
|
7
7
|
openapiTypesFileName: string,
|
|
8
|
-
explicitImportExtensions:
|
|
8
|
+
explicitImportExtensions: '.ts' | '.js' | undefined
|
|
9
9
|
) {
|
|
10
10
|
if (openapiTypesFileName.endsWith('.d.ts'))
|
|
11
11
|
return `../${getTypeScriptFileBaseName(openapiTypesFileName)}.d.ts`;
|
|
12
12
|
|
|
13
13
|
return explicitImportExtensions
|
|
14
|
-
? `../${getTypeScriptFileBaseName(openapiTypesFileName)}
|
|
14
|
+
? `../${getTypeScriptFileBaseName(openapiTypesFileName)}${explicitImportExtensions}`
|
|
15
15
|
: `../${openapiTypesFileName}`;
|
|
16
16
|
}
|
|
17
17
|
|