# Changelog
(format is dd.mm.yyyy
)
# 2.12.0 (16.01.2020)
- add
namespaced
flag (contributed by @johndab, see https://github.com/christianmalek/vuex-rest-api/pull/99)
# 2.11.0 (20.10.2019)
- updated lodash dependency to version
^4.5
- updated typescript dev dependency to version
^3.6
# 2.10.0 (07.09.2018)
- added parameter
{ params, data}
toonSuccess
andonError
functions (see readme for more info) - updated
typescript
dev dependency to version 3.0.x
# 2.9.0 (12.08.2018)
- added
beforeRequest
function to enable optimistic updates (contributed by @BorisTB, see https://github.com/christianmalek/vuex-rest-api/pull/71)
# 2.8.0 (04.07.2018)
- adding support for providing dynamic headers to requests (contributed by @rmaclean-ee, see https://github.com/christianmalek/vuex-rest-api/pull/66)
# 2.7.1 (03.07.2018)
- 🐛 fixed broken typescript definition for the
Store
interface.Store.state
is now properly declared asObject | Function
(see https://github.com/christianmalek/vuex-rest-api/issues/67).
# 2.7.0 (10.04.2018)
- 🐛 if
axios.defaults.baseURL
was set and it was no absolute URL it was appended twice (see https://github.com/christianmalek/vuex-rest-api/issues/60). See baseURL from the constructor's options parameter in the README for more info.
# 2.6.2 (10.04.2018)
- updated axios peer dependency to version 0.18.x
# 2.6.1 (12.02.2018)
- 🐛 removed axios from package.json dependencies (is peer dependency since 2.5.0)
# 2.6.0 (06.02.2018)
- 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)
# 2.5.0 (05.02.2018)
axios
is now a peer dependency.
# 2.4.4 (03.12.2017)
- 🐛 added
ShorthandResourceActionOptions
interface to avoid Typescript linting error "method options is required" for shorthand action methods (https://github.com/christianmalek/vuex-rest-api/issues/39) - 🐛 declared baseUrl as optional in
ResourceOptions
interface
# 2.4.3 (03.12.2017)
- 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
# 2.4.2 (03.12.2017)
- made baseUrl officially optional (https://github.com/christianmalek/vuex-rest-api/pull/45)
# Changelog to Version 1
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