@openapi-qraft/openapi-typescript-plugin 1.2.0-next.9 → 1.2.1-beta.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 CHANGED
@@ -1,5 +1,98 @@
1
1
  # @openapi-qraft/openapi-typescript
2
2
 
3
+ ## 1.2.1-beta.0
4
+
5
+ ### Patch Changes
6
+
7
+ - def57df: Ensure external libraries are declared in `peerDependencies` to prevent conflicts and duplication.
8
+ - Updated dependencies [def57df]
9
+ - @openapi-qraft/plugin@2.0.1-beta.0
10
+
11
+ ## 1.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 2a53608: Updated TypeScript to version 5.5.4
16
+
17
+ ### Patch Changes
18
+
19
+ - 9dc1918: Simplified `TParams` type for conditional expressions.
20
+ - cd8a856: Resolved conflict between explicit exports and generated enum exports by aligning export strategy.
21
+ - 34ff132: Added support for `void` and `undefined` arguments in mutation operations and `setQueryData`.
22
+ - Updated dependencies [16b380f]
23
+ - Updated dependencies [8c77eb2]
24
+ - Updated dependencies [2a53608]
25
+ - Updated dependencies [76634bf]
26
+ - Updated dependencies [c111be6]
27
+ - Updated dependencies [62ff8e0]
28
+ - @openapi-qraft/plugin@2.0.0
29
+
30
+ ## 1.2.0-next.19
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies [62ff8e0]
35
+ - @openapi-qraft/plugin@2.0.0-next.19
36
+
37
+ ## 1.2.0-next.18
38
+
39
+ ### Patch Changes
40
+
41
+ - @openapi-qraft/plugin@2.0.0-next.18
42
+
43
+ ## 1.2.0-next.17
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies [16b380f]
48
+ - @openapi-qraft/plugin@2.0.0-next.17
49
+
50
+ ## 1.2.0-next.16
51
+
52
+ ### Patch Changes
53
+
54
+ - @openapi-qraft/plugin@2.0.0-next.16
55
+
56
+ ## 1.2.0-next.15
57
+
58
+ ### Patch Changes
59
+
60
+ - 4b1c13f: Fixed support for the `--explicit-import-extensions .ts` option when using the `openapi-typescript-plugin`.
61
+ - @openapi-qraft/plugin@2.0.0-next.15
62
+
63
+ ## 1.2.0-next.14
64
+
65
+ ### Patch Changes
66
+
67
+ - 34ff132: Added support for `void` and `undefined` arguments in mutation operations and `setQueryData`.
68
+ - @openapi-qraft/plugin@2.0.0-next.14
69
+
70
+ ## 1.2.0-next.13
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [c111be6]
75
+ - @openapi-qraft/plugin@2.0.0-next.13
76
+
77
+ ## 1.2.0-next.12
78
+
79
+ ### Patch Changes
80
+
81
+ - @openapi-qraft/plugin@2.0.0-next.12
82
+
83
+ ## 1.2.0-next.11
84
+
85
+ ### Patch Changes
86
+
87
+ - @openapi-qraft/plugin@2.0.0-next.11
88
+
89
+ ## 1.2.0-next.10
90
+
91
+ ### Patch Changes
92
+
93
+ - Updated dependencies [8c77eb2]
94
+ - @openapi-qraft/plugin@2.0.0-next.10
95
+
3
96
  ## 1.2.0-next.9
4
97
 
5
98
  ### 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: boolean): string;
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,OAAO,UAQlC;AAUD;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,WAEzD"}
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)}.js`
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,wBAAiC;IAEjC,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,KAAK;QAC5D,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"}
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-next.9",
3
+ "version": "1.2.1-beta.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "tsc --project tsconfig.build.json",
@@ -26,7 +26,7 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "@openapi-qraft/plugin": "^2.0.0-next.9",
29
+ "@openapi-qraft/plugin": "^2.0.1-beta.0",
30
30
  "openapi-typescript": "^7.4.0",
31
31
  "typescript": "^5.6.2"
32
32
  },
@@ -34,10 +34,18 @@
34
34
  "@openapi-qraft/eslint-config": "1.0.0",
35
35
  "@openapi-qraft/test-fixtures": "1.0.0",
36
36
  "@types/node": "^20.16.5",
37
- "eslint": "^9.10.0",
37
+ "eslint": "^9.16.0",
38
38
  "memfs": "^4.11.1",
39
39
  "rimraf": "^5.0.10",
40
- "vitest": "^1.6.0"
40
+ "vitest": "^2.1.8"
41
+ },
42
+ "peerDependencies": {
43
+ "commander": "^11.1.0"
44
+ },
45
+ "peerDependenciesMeta": {
46
+ "commander": {
47
+ "optional": false
48
+ }
41
49
  },
42
50
  "files": [
43
51
  "dist",
@@ -5,13 +5,13 @@
5
5
  */
6
6
  export function createOpenapiTypesImportPath(
7
7
  openapiTypesFileName: string,
8
- explicitImportExtensions: boolean
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)}.js`
14
+ ? `../${getTypeScriptFileBaseName(openapiTypesFileName)}${explicitImportExtensions}`
15
15
  : `../${openapiTypesFileName}`;
16
16
  }
17
17