Releases: openapi-ts/openapi-typescript
Releases · openapi-ts/openapi-typescript
v5.0.0
🦍 Major changes
- Updates this library to full ESM! ✨ This is the future of JavaScript, and is now natively supported in Node 14+.
🐥 Minor changes
- Now supports a
URL()
as input to make ESM usage easier (see example)
- 5.x drops support for Node 12. If you’re still on Node 12, be sure to lock your version to 4.x.
v4.5.0
v4.4.0
✨ New Features
- Adds TypeScript
@deprecated
comment to deprecated schema objects by @bunkscene
v4.3.0
🐣 Minor changes
🐛 Bugfixes
- An old bug is now gone!
openapi-typescript
would incorrectly generate{ [key: string]: unknown }
for a type when it may have been a string or number. Now it will generate a more genericunknown
type, unless it knows it’s dealing with an object for sure.
v4.2.0
v4.1.1
v4.1.0
v4.0.2
v4.0.1
v4.0.0
✨ New Features
- Now supports remote references (
$ref: "remote.yaml#/components/schemas/User
) 🎉 (#602)!
- The Node.js API is now promise-based, and can no longer be run synchronously (a necessity because resolving remote schemas can never be synchronous). Other than that, there are no other breaking changes. CLI users are unaffected, and the types generated are backwards-compatible with previous versions.