v0.13 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)