File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
fern/products/sdks/overview/typescript/changelog Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ ## 3.43.1
2+ ** ` (fix): ` ** Fix bug where ts-morph would generate incorrect code when ` Accept: */* ` header would be defined as
3+ a parameter in OpenAPI. The old generated code would generate broken JSDoc comments with invalid syntax.
4+
5+
6+ ** ` (chore): ` ** Optimize generated SDK code by eliminating unnecessary ` .toString() ` calls on primitive types in headers
7+ and query parameters. The generator now only stringifies types that require it (dates/datetimes) while
8+ using primitives like strings, numbers, booleans, and UUIDs directly.
9+
10+
11+ ** ` (fix): ` ** Add ` createNumericLiteralSafe ` utility to properly handle negative numbers in generated code examples,
12+ ensuring compatibility with newer TypeScript/ts-morph versions that require prefix unary expressions.
13+
14+
15+ ** ` (fix): ` ** Add support for nullable types in query parameter type resolution, properly unwrapping both optional
16+ and nullable containers when determining primitive and object types.
17+
18+
19+ ** ` (chore): ` ** Simplify header and query parameter types from verbose union types to ` Record<string, unknown> ` for
20+ more flexible and less complex type signatures in generated SDKs.
21+
22+
You can’t perform that action at this time.
0 commit comments