Skip to content

v0.13 release

Choose a tag to compare

@Kelin2025 Kelin2025 released this 21 Apr 18:24
· 279 commits to master since this release

New features

Service.use(cb) - calls cb with a copy of service and returns its result (#14)
You can now move part of logic in "plugins"

Bug fixes

Returned retry method for fail hooks (#19)

Deprecations

ApiService now accepts adapter as a property of options instead of first argument:

- new ApiService(fetch, {
+ new ApiService({
+   adapter: fetch,
    url: '/api'
  })

You'll get a soft warning. In future releases, it won't work.
It was made to allow changing adapters (may be useful in tests to use fake adapter instead of real)