Skip to content

1.0.0

Compare
Choose a tag to compare
@RikSchefferOberon RikSchefferOberon released this 28 Sep 08:49
· 71 commits to master since this release
980080a

New features:

  • It is now possible to provide endpoints with default values for the params. (see docs).
  • It is now possible to provide config overrides in the hook and the hoc (see the config parameter in useApiData).
  • Added property dataFailed, which contains the body of a failed call.
  • The perform promise will now reject, when the request fails.
  • Added possibility to purge individual requests via the binding and the actions.
  • All function names containing ApiData, have been renamed to a name without ApiData. The old names are hereby deprecated and will be removed in a future release.

Breaking changes:

  • The data property no longer contains the data of a failed call.
  • The perform promise will now reject, when the request fails. This means that code depending on a failed response should be moved to the catch clause of the promise.
  • The third parameter of the useApiData hook, changed from instanceId string to an options object, solve this by placing the string in this object: { instanceId: 'myInstanceIdString' }

Deprecations:

  • All function names containing ApiData, have been renamed to a name without ApiData. The old names are hereby deprecated and will be removed in a future release.