diff --git a/.changeset/short-emus-fly.md b/.changeset/short-emus-fly.md deleted file mode 100644 index 3b419022..00000000 --- a/.changeset/short-emus-fly.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"swagger-typescript-api": patch ---- - -Fix modular template to always generate class property syntax. - -The modular template was incorrectly using object method syntax (`:` and -`,`) when route.namespace was present, introduced by PR #1326. This -caused TypeScript syntax errors in generated code. - -The modular template should always generate class properties with arrow -functions (`=` and `;`), regardless of namespace presence. - -This resolves the issue reported in #1366 where version 13.2.8 generated -invalid TypeScript code with modular templates. diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b5f898d..a1a9ec0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # swagger-typescript-api +## 13.2.14 + +### Patch Changes + +- [#1398](https://github.com/acacode/swagger-typescript-api/pull/1398) [`d987aee`](https://github.com/acacode/swagger-typescript-api/commit/d987aee6a2f7dbf6edba73b58a2df2fceb32a876) Thanks [@k1rd3rf](https://github.com/k1rd3rf)! - Fix modular template to always generate class property syntax. + + The modular template was incorrectly using object method syntax (`:` and + `,`) when route.namespace was present, introduced by PR #1326. This + caused TypeScript syntax errors in generated code. + + The modular template should always generate class properties with arrow + functions (`=` and `;`), regardless of namespace presence. + + This resolves the issue reported in #1366 where version 13.2.8 generated + invalid TypeScript code with modular templates. + ## 13.2.13 ### Patch Changes diff --git a/package.json b/package.json index 1f469e76..ae6afc31 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "swagger-typescript-api", - "version": "13.2.13", + "version": "13.2.14", "description": "Generate the API client for Fetch or Axios from an OpenAPI Specification", "homepage": "https://github.com/acacode/swagger-typescript-api", "bugs": "https://github.com/acacode/swagger-typescript-api/issues",