This document outlines the changes from version to version.
- Added support for SWR
- Revamped CLI options to accommodate SWR
- Added support for ESM output (Still includes CJS output)
- Fix return type for
anyOf
types
- Better handling of thrown errors, outputs clearer CLI errors
A major release with breaking changes. Involves updating type signatures to match React Query for the upcoming V5 release. This Rapini release doesn't directly support V5 yet, but it will make the transition to supporting it very easy once V5 is officially released publicly.
- Now using object syntax internally for
useQuery({})
, compatible with React Query V5 - Now using object syntax internally for
useMutation({})
, compatible with React Query V5 queryIds
renamed toqueryKeys
to match closer names used in React Query docsnullIfUndefined
used for queryKey codegen now returnsNonNullable<T> | null
instead ofT | null
which removedundefined
as a union type- A new TS type is exported from the package as
QueryKeys
which is an object type of all thequeryKeys
generated queryKeys
is exported from the package directly instead of as a return type frominitialize(..)
, this means it can be imported asimport { queryKeys } from 'your-package'
- Fixed bug when dealing with vague input for request types and responses, now uses default response type if available, otherwise 2xx response type
- Fix bug for resolving inline reference parameters to external files
- Fix bug for resolving inline reference types to external files
- Fix bug for resolving more inline references to external files
- Add support for Content-Type header in requests
- Update all packages
- Fix types generator when yaml file key includes dashes