Releases: openapi-ts/openapi-typescript
Releases · openapi-ts/openapi-typescript
v5.3.0
✨ New features
- New
--make-paths-enum
CLI flag by @berzi (#883) - New
--path-params-as-types
CLI flag by @Powell-v2 (#891) - Supports
/** @constant */
JSDoc comments by @PhilipTrauner (#896) - You can now add your own custom comment header at the top of every generated doc (#904)
🐛 Bugfixes
- Fixes inconsistent comment title (#904)
v5.2.0
✨ New features
- The
--export-type
flag was added to generatetype
instead ofinterface
by @dominikdosoudil (#868)
🐛 Bugfixes
- Fixes CommonJS error for undici on older versions of Node
🐣 Minor changes
- Tiny optimizations for a little speed boost
- Updated schemas & examples
v5.1.1
- Removes CJS version from npm (to use CJS, use
openapi-typescript@4
). Version 5 switched to ESM as default anyway, and since tests are now testing ESM, the reliability of CJS was dubious (and there were TypeScript problems as well)
🐛 Bugfixes
- Fixes type error when using TypeScript nightly (#847)
- Patches security vulnerability with node-fetch (by replacing with undici)
v5.1.0
✨ New Features
- Adds constants support by @sadfsdfdsa (#831)
🐛 Bugfixes
- Fixes a syntax error caused by an empty
oneOf
by @sadfsdfdsa (#830)
v5.0.1
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.