Skip to content

Commit

Permalink
chore: Prepare CHANGELOG for v4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Embraser01 committed Aug 21, 2024
1 parent a5d7c6f commit 1b7788f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1b7788f

Please sign in to comment.