All packages were updated to 4.0.0
- Add
-p,--prettier
option to the cli to format the generated code with prettier #51 - Add a new
@typoas/react-query
package to generate fully typed react-query hooks #63 - BREAKING:
FetcherData
must now extendBaseFetcherData
. This change allow to have default options likesignal
for every request (fixes #62) #64 - BREAKING: Generate all responses types (fixes #57) #60
- Functions will not throw on non-2XX http status anymore
- Instead, users will have to check themselves or use the
ok
helper function
The reason behind this is to allow easier error handling with better error typing. It also improves multiple success response handling (for complex usage mainly)
- Automated release process
Only the runtime was published, the generator and cli are still at 3.1.5
- Allow null return value in AuthProvider.getConfig() #50
Only the runtime was published, the generator and cli are still at 3.1.5
- Fix AuthProviders configuration #44
Only the generator and cli were published, the runtime is still at 3.1.3
- Handle most of quoted property name issues #47
Only the generator and cli were published, the runtime is still at 3.1.3
Version 3.1.2 and 3.1.3 are broken, please upgrade to 3.1.4
Version 3.1.0 is broken, please upgrade to 3.1.1
- Allow BearerAuthConfig to override prefix name
- Fix generator when a
securityScheme
had special chars
- Do not add content-type header when formdata or blob body (#41)
- The RefResolver system that was used to resolve OpenAPI refs and apply transforms was reworked in order to be tree shakable.
- This reworked allowed us to reduce the generated file by removing useless transforms and refs.
- BREAKING CHANGE: The
RefResolver
class was removed from the runtime and replaced by arrow functions. - BREAKING CHANGE:
HttpSecurityAuthentication
was split into two classes:HttpBasicSecurityAuthentication
for basic authenticationHttpBearerSecurityAuthentication
for bearer authentication
- BREAKING CHANGE: When running the client on Node, the minimum version is now 16.
- Fix generator where
*/
appears in JSDoc comments. - The
description
field in theSecurityAuthentication
interface wasn't used and is now removed.
Most of those changes shouldn't affect the usage of the library, so upgrade should be easy. To upgrade:
- Update all
@typoas/*
to^3.0.0
- Rerun the generator
- Enjoy!
Before 3.0.0, there wasn't a changelog. Please refer to the commit history.