Skip to content

v2.0.0

Choose a tag to compare

@MattCCC MattCCC released this 04 Jul 00:39
· 741 commits to master since this release

Breaking changes:

  • Updated minimum Node.js version requirement to 18.
  • Endpoint interface order change: from Endpoint<QueryParams, UrlParams, ResponseData> to Endpoint<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