Skip to content

Commit e027a45

Browse files
Version Packages (#1442)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 92c443a commit e027a45

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

.changeset/short-emus-fly.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# swagger-typescript-api
22

3+
## 13.2.14
4+
5+
### Patch Changes
6+
7+
- [#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.
8+
9+
The modular template was incorrectly using object method syntax (`:` and
10+
`,`) when route.namespace was present, introduced by PR #1326. This
11+
caused TypeScript syntax errors in generated code.
12+
13+
The modular template should always generate class properties with arrow
14+
functions (`=` and `;`), regardless of namespace presence.
15+
16+
This resolves the issue reported in #1366 where version 13.2.8 generated
17+
invalid TypeScript code with modular templates.
18+
319
## 13.2.13
420

521
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swagger-typescript-api",
3-
"version": "13.2.13",
3+
"version": "13.2.14",
44
"description": "Generate the API client for Fetch or Axios from an OpenAPI Specification",
55
"homepage": "https://github.com/acacode/swagger-typescript-api",
66
"bugs": "https://github.com/acacode/swagger-typescript-api/issues",

0 commit comments

Comments
 (0)