v2.0.0
Breaking changes:
- Updated minimum Node.js version requirement to 18.
- Endpoint interface order change: from
Endpoint<QueryParams, UrlParams, ResponseData>toEndpoint<ResponseData, QueryParams, UrlParams>- response data is first as that is the one defined most often. - Generic type added for the
createApiFetcher()function, usage:createApiFetcher<EndpointsList>()
Changes:
- [feat] Possibility to use generics in API calls, i.e. api.getMovies()
- updated dependencies & scanning to latest versions
- removed unused Prettier configuration.
- fixed linter issues
- updated README.md to reflect new interface examples and usage
What's Changed
Full Changelog: v1.5.0...v2.0.0