(format is dd.mm.yyyy
)
- updated axios peer dependency to version
^0.27
- updated typescript dev dependency to
^4.6
- updated typescript lib configuration from es2015 to es2018 and DOM
- updated axios peer dependency to version
^0.21
- allow all HTTP request methods to set a payload (contributed by @dries007, see christianmalek#103)
- fix typing for boxed type (contributed by @Glandos, see christianmalek#101)
- add
namespaced
flag (contributed by @johndab, see christianmalek#99)
- updated lodash dependency to version
^4.5
- updated typescript dev dependency to version
^3.6
- added parameter
{ params, data}
toonSuccess
andonError
functions (see readme for more info) - updated
typescript
dev dependency to version 3.0.x
- added
beforeRequest
function to enable optimistic updates (contributed by @BorisTB, see christianmalek#71)
- adding support for providing dynamic headers to requests (contributed by @rmaclean-ee, see christianmalek#66)
- 🐛 fixed broken typescript definition for the
Store
interface.Store.state
is now properly declared asObject | Function
(see christianmalek#67).
- 🐛 if
axios.defaults.baseURL
was set and it was no absolute URL it was appended twice (see christianmalek#60). See baseURL from the constructor's options parameter in the README for more info.
- updated axios peer dependency to version 0.18.x
- 🐛 removed axios from package.json dependencies (is peer dependency since 2.5.0)
- changed
ResourceOptions.axios
to typeAxiosInstance
for better typescript support - added property
ResourceAction.axios: AxiosInstance
- the
onSuccess
andonError
fns now provide their axios instance as third parameter. The method signatures look like the following:method(state, payload, axios)
axios
is now a peer dependency.
- 🐛 added
ShorthandResourceActionOptions
interface to avoid Typescript linting error "method options is required" for shorthand action methods (christianmalek#39) - 🐛 declared baseUrl as optional in
ResourceOptions
interface
- added Changelog
- updated axios dependency to version
0.17.1
- set package.json dependencies to exact versions and removed ranged versioning to avoid errors due to wrong usage of semver
- added yarn and npm lock files to gitignore
- made baseUrl officially optional (christianmalek#45)
Resource
andcreateStore
are now combined in the classVapi
Resource.options.pathFn
renamed topath
path
can now also be a string (if no params are needed)addAction
renamed toadd
- shorthand methods for get, delete, post, put, patch
createStore
is removed, thereforeVapi
has the methodgetStore
baseURL
is now part of the constructor'soptions
object- added option createStateFn to return the state as a function
property
is now optional