diff --git a/CHANGELOG.md b/CHANGELOG.md index c4168c5..72c35ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,17 @@ ## Unreleased +--- +## 4.0.0 - 2024-08-21 + +> All packages were updated to 4.0.0 + - Add `-p,--prettier` option to the cli to format the generated code with prettier [#51](https://github.com/Embraser01/typoas/pull/51) - Add a new `@typoas/react-query` package to generate fully typed react-query hooks [#63](https://github.com/Embraser01/typoas/pull/63) - **BREAKING**: `FetcherData` must now extend `BaseFetcherData`. This change allow to have default options like `signal` for every request (fixes [#62](https://github.com/Embraser01/typoas/issues/62)) [#64](https://github.com/Embraser01/typoas/issues/64) - **BREAKING**: Generate all responses types (fixes [#57](https://github.com/Embraser01/typoas/issues/57)) [#60](https://github.com/Embraser01/typoas/pull/60) - Functions will not throw on non-2XX http status anymore - - Instead, users will have to check themselves or use the ok helper function + - 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)