fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #2653 from hey-api/changeset-release/main

authored by

Lubos and committed by
GitHub
5d94ef73 1b5d9a5c

+78 -90
-5
.changeset/beige-rocks-remain.md
··· 1 - --- 2 - '@hey-api/openapi-ts': patch 3 - --- 4 - 5 - fix(plugin): every plugin extends Plugin.Hooks interface
-9
.changeset/eleven-beans-sort.md
··· 1 - --- 2 - '@hey-api/openapi-ts': patch 3 - --- 4 - 5 - fix(renderer): group and sort imported modules 6 - 7 - ### TypeScript renderer 8 - 9 - We ship a dedicated TypeScript renderer for `.ts` files. This release improves the renderer's ability to group and sort imported modules, resulting in a more polished output.
-5
.changeset/fix-zod-union-deduplication.md
··· 1 - --- 2 - "@hey-api/openapi-ts": patch 3 - --- 4 - 5 - fix(parser): expand schema deduplication by including validation constraints in type ID
-5
.changeset/gorgeous-spiders-build.md
··· 1 - --- 2 - '@hey-api/openapi-ts': patch 3 - --- 4 - 5 - fix(parser): bump support for OpenAPI 3.1.2
-33
.changeset/healthy-experts-grow.md
··· 1 - --- 2 - '@hey-api/openapi-ts': patch 3 - --- 4 - 5 - fix(config): add `output.fileName` option 6 - 7 - ## File Name 8 - 9 - You can customize the naming and casing pattern for files using the `fileName` option. 10 - 11 - ```js 12 - export default { 13 - input: 'hey-api/backend', // sign up at app.heyapi.dev 14 - output: { 15 - fileName: '{{name}}', 16 - path: 'src/client', 17 - }, 18 - }; 19 - ``` 20 - 21 - By default, we append every file name with a `.gen` suffix to highlight it's automatically generated. You can customize or disable this suffix using the `fileName.suffix` option. 22 - 23 - ```js 24 - export default { 25 - input: 'hey-api/backend', // sign up at app.heyapi.dev 26 - output: { 27 - fileName: { 28 - suffix: '.gen', 29 - }, 30 - path: 'src/client', 31 - }, 32 - }; 33 - ```
-5
.changeset/rare-kangaroos-try.md
··· 1 - --- 2 - "@hey-api/openapi-ts": patch 3 - --- 4 - 5 - fix(axios): remove duplicate `baseURL` when using relative values
-5
.changeset/selfish-hornets-beg.md
··· 1 - --- 2 - '@hey-api/codegen-core': minor 3 - --- 4 - 5 - feat: Symbol API
-15
.changeset/two-buses-dance.md
··· 1 - --- 2 - '@hey-api/openapi-ts': minor 3 - --- 4 - 5 - feat: Symbol API 6 - 7 - ### Symbol API 8 - 9 - This release improves the Symbol API, which adds the capability to place symbols in arbitrary files. We preserved the previous output structure for all plugins except Angular. 10 - 11 - You can preserve the previous Angular output by writing your own [placement function](https://heyapi.dev/openapi-ts/configuration/parser#hooks-symbols). 12 - 13 - ### Removed `output` plugin option 14 - 15 - Due to the Symbol API release, this option has been removed from the Plugin API.
+6
packages/codegen-core/CHANGELOG.md
··· 1 1 # @hey-api/codegen-core 2 2 3 + ## 0.2.0 4 + 5 + ### Minor Changes 6 + 7 + - feat: Symbol API ([#2664](https://github.com/hey-api/openapi-ts/pull/2664)) ([`e1ede9c`](https://github.com/hey-api/openapi-ts/commit/e1ede9cabf52b5bbcb9195570deff58db8f43dbb)) by [@mrlubos](https://github.com/mrlubos) 8 + 3 9 ## 0.1.0 4 10 5 11 ### Minor Changes
+1 -1
packages/codegen-core/package.json
··· 1 1 { 2 2 "name": "@hey-api/codegen-core", 3 - "version": "0.1.0", 3 + "version": "0.2.0", 4 4 "description": "🧱 TypeScript framework for generating structured, multi-file source code from abstract syntax trees.", 5 5 "homepage": "https://heyapi.dev/", 6 6 "repository": {
+65 -1
packages/openapi-ts/CHANGELOG.md
··· 1 1 # @hey-api/openapi-ts 2 2 3 + ## 0.84.0 4 + 5 + ### Minor Changes 6 + 7 + - feat: Symbol API 8 + 9 + ### Symbol API 10 + 11 + This release improves the Symbol API, which adds the capability to place symbols in arbitrary files. We preserved the previous output structure for all plugins except Angular. 12 + 13 + You can preserve the previous Angular output by writing your own [placement function](https://heyapi.dev/openapi-ts/configuration/parser#hooks-symbols). 14 + 15 + ### Removed `output` plugin option 16 + 17 + Due to the Symbol API release, this option has been removed from the Plugin API. ([#2664](https://github.com/hey-api/openapi-ts/pull/2664)) ([`e1ede9c`](https://github.com/hey-api/openapi-ts/commit/e1ede9cabf52b5bbcb9195570deff58db8f43dbb)) by [@mrlubos](https://github.com/mrlubos) 18 + 19 + ### Patch Changes 20 + 21 + - fix(plugin): every plugin extends Plugin.Hooks interface ([#2664](https://github.com/hey-api/openapi-ts/pull/2664)) ([`e1ede9c`](https://github.com/hey-api/openapi-ts/commit/e1ede9cabf52b5bbcb9195570deff58db8f43dbb)) by [@mrlubos](https://github.com/mrlubos) 22 + 23 + - fix(renderer): group and sort imported modules 24 + 25 + ### TypeScript renderer 26 + 27 + We ship a dedicated TypeScript renderer for `.ts` files. This release improves the renderer's ability to group and sort imported modules, resulting in a more polished output. ([#2664](https://github.com/hey-api/openapi-ts/pull/2664)) ([`e1ede9c`](https://github.com/hey-api/openapi-ts/commit/e1ede9cabf52b5bbcb9195570deff58db8f43dbb)) by [@mrlubos](https://github.com/mrlubos) 28 + 29 + - fix(parser): expand schema deduplication by including validation constraints in type ID ([#2650](https://github.com/hey-api/openapi-ts/pull/2650)) ([`31b3933`](https://github.com/hey-api/openapi-ts/commit/31b3933b2caa1085dbead1ef94695bca4b83d6ac)) by [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent) 30 + 31 + - fix(parser): bump support for OpenAPI 3.1.2 ([#2667](https://github.com/hey-api/openapi-ts/pull/2667)) ([`3511fb8`](https://github.com/hey-api/openapi-ts/commit/3511fb88cbe6b767b631af16336cb6c0722c3ff8)) by [@mrlubos](https://github.com/mrlubos) 32 + 33 + - fix(config): add `output.fileName` option 34 + 35 + ## File Name 36 + 37 + You can customize the naming and casing pattern for files using the `fileName` option. 38 + 39 + ```js 40 + export default { 41 + input: 'hey-api/backend', // sign up at app.heyapi.dev 42 + output: { 43 + fileName: '{{name}}', 44 + path: 'src/client', 45 + }, 46 + }; 47 + ``` 48 + 49 + By default, we append every file name with a `.gen` suffix to highlight it's automatically generated. You can customize or disable this suffix using the `fileName.suffix` option. 50 + 51 + ````js 52 + export default { 53 + input: 'hey-api/backend', // sign up at app.heyapi.dev 54 + output: { 55 + fileName: { 56 + suffix: '.gen', 57 + }, 58 + path: 'src/client', 59 + }, 60 + }; 61 + ``` ([#2664](https://github.com/hey-api/openapi-ts/pull/2664)) ([`e1ede9c`](https://github.com/hey-api/openapi-ts/commit/e1ede9cabf52b5bbcb9195570deff58db8f43dbb)) by [@mrlubos](https://github.com/mrlubos) 62 + 63 + - fix(axios): remove duplicate `baseURL` when using relative values ([#2624](https://github.com/hey-api/openapi-ts/pull/2624)) ([`8ffceec`](https://github.com/hey-api/openapi-ts/commit/8ffceec89fe471d4e14df17a172f3d5a254eb819)) by [@Ben-Pfirsich](https://github.com/Ben-Pfirsich) 64 + ### Updated Dependencies: 65 + - @hey-api/codegen-core@0.2.0 66 + 3 67 ## 0.83.1 4 68 5 69 ### Patch Changes ··· 104 168 }, 105 169 }, 106 170 }; 107 - ``` 171 + ```` 108 172 109 173 ### Patch Changes 110 174
+2 -2
packages/openapi-ts/package.json
··· 1 1 { 2 2 "name": "@hey-api/openapi-ts", 3 - "version": "0.83.1", 3 + "version": "0.84.0", 4 4 "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.", 5 5 "homepage": "https://heyapi.dev/", 6 6 "repository": { ··· 89 89 "node": "^18.18.0 || ^20.9.0 || >=22.10.0" 90 90 }, 91 91 "dependencies": { 92 - "@hey-api/codegen-core": "workspace:^0.1.0", 92 + "@hey-api/codegen-core": "workspace:^0.2.0", 93 93 "@hey-api/json-schema-ref-parser": "1.1.0", 94 94 "ansi-colors": "4.1.3", 95 95 "c12": "2.0.1",
+4 -4
pnpm-lock.yaml
··· 1174 1174 packages/openapi-ts: 1175 1175 dependencies: 1176 1176 '@hey-api/codegen-core': 1177 - specifier: workspace:^0.1.0 1177 + specifier: workspace:^0.2.0 1178 1178 version: link:../codegen-core 1179 1179 '@hey-api/json-schema-ref-parser': 1180 1180 specifier: 1.1.0 ··· 22250 22250 eslint: 9.17.0(jiti@2.5.1) 22251 22251 eslint-import-resolver-node: 0.3.9 22252 22252 eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.29.1(eslint@9.17.0(jiti@2.5.1))(typescript@5.8.3))(eslint@9.17.0(jiti@2.5.1)))(eslint@9.17.0(jiti@2.5.1)) 22253 - eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.29.1(eslint@9.17.0(jiti@2.5.1))(typescript@5.8.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.29.1(eslint@9.17.0(jiti@2.5.1))(typescript@5.8.3))(eslint@9.17.0(jiti@2.5.1)))(eslint@9.17.0(jiti@2.5.1)))(eslint@9.17.0(jiti@2.5.1)) 22253 + eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.29.1(eslint@9.17.0(jiti@2.5.1))(typescript@5.8.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.17.0(jiti@2.5.1)) 22254 22254 eslint-plugin-jsx-a11y: 6.10.2(eslint@9.17.0(jiti@2.5.1)) 22255 22255 eslint-plugin-react: 7.37.5(eslint@9.17.0(jiti@2.5.1)) 22256 22256 eslint-plugin-react-hooks: 5.2.0(eslint@9.17.0(jiti@2.5.1)) ··· 22284 22284 tinyglobby: 0.2.14 22285 22285 unrs-resolver: 1.11.1 22286 22286 optionalDependencies: 22287 - eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.29.1(eslint@9.17.0(jiti@2.5.1))(typescript@5.8.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.29.1(eslint@9.17.0(jiti@2.5.1))(typescript@5.8.3))(eslint@9.17.0(jiti@2.5.1)))(eslint@9.17.0(jiti@2.5.1)))(eslint@9.17.0(jiti@2.5.1)) 22287 + eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.29.1(eslint@9.17.0(jiti@2.5.1))(typescript@5.8.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.17.0(jiti@2.5.1)) 22288 22288 transitivePeerDependencies: 22289 22289 - supports-color 22290 22290 ··· 22299 22299 transitivePeerDependencies: 22300 22300 - supports-color 22301 22301 22302 - eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.29.1(eslint@9.17.0(jiti@2.5.1))(typescript@5.8.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.29.1(eslint@9.17.0(jiti@2.5.1))(typescript@5.8.3))(eslint@9.17.0(jiti@2.5.1)))(eslint@9.17.0(jiti@2.5.1)))(eslint@9.17.0(jiti@2.5.1)): 22302 + eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.29.1(eslint@9.17.0(jiti@2.5.1))(typescript@5.8.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.17.0(jiti@2.5.1)): 22303 22303 dependencies: 22304 22304 '@rtsao/scc': 1.1.0 22305 22305 array-includes: 3.1.9