Releases: teobler/swr-request-generator
Releases · teobler/swr-request-generator
1.2.2
1.2.1
1.2.0
Breaking changes
- remove useless prefix 'I' for generated interface #10
Feature & Fix
- fix creating excess definitions for top-level enum
schemas #9 @lorissikora - make console warning and error more focusable #5
- support
default
fields for response schema, and supportapplication/json; charset=UTF-8.schema
media query for it #7
Source Code
- add GitHub actions for CI
- migrate jest to vitest
- remove rollup and use tsup for building #11
- add eslint
- upgrade all dependencies to latest
Thanks for @lorissikora help!
1.1.0
1.0.0
Breaking changes
- support
useSWRMutation
for mutation request- previous: use
axios.request
for mutation request - now: use
useSWRMutation
hook as a wrapper, useaxios
as request client
- previous: use
- rename
useSWR
wrapper fromuseRequest
touseGetRequest
- support oneOf/anyOf/allOf in openAPI spec
Other changes
- add new wrapper function demo
useMutationRequest
inexample/src/request/useMutationRequest
- fix wrong rewrite behavior for request/response
- previous version will rewrite all the key in request and response to camelCase, this version fixed this wrong behavior, all the variables will follow backend definition
- clean up
any
types in source code - rewrite example folder as a independent project, can be easily understand how to use this lib