Releases: chantouchsek/vue-axios-http
Releases · chantouchsek/vue-axios-http
v1.2.3
What's Changed
- chore(deps-dev): bump @commitlint/cli from 16.0.1 to 16.0.2 by @dependabot in #228
- chore(deps-dev): bump @types/node from 17.0.7 to 17.0.8 by @dependabot in #223
- chore(deps-dev): bump jest from 27.4.5 to 27.4.7 by @dependabot in #225
- chore(deps-dev): bump nuxt-edge from 2.16.0-27354255.777a4b7f to 2.16.0-27358576.777a4b7f by @dependabot in #227
- chore(deps-dev): bump eslint-plugin-promise from 5.2.0 to 6.0.0 by @dependabot in #221
- Fix return correct type of base service and add lint staged by @chantouchsek in #229
Full Changelog: v1.2.2...v1.2.3
v1.2.2
What's Changed
- chore(deps-dev): bump @types/node from 16.10.2 to 16.11.12 by @dependabot in #199
- Renamed git repository name by @chantouchsek in #208
- fix(deps): bump actions/setup-node from 2.4.1 to 2.5.1 by @dependabot in #209
- chore(deps-dev): bump nuxt-edge from 2.16.0-27338416.777a4b7f to 2.16.0-27354255.777a4b7f by @dependabot in #220
- chore(deps-dev): bump eslint-plugin-import from 2.24.2 to 2.25.4 by @dependabot in #216
Full Changelog: v1.2.1...v1.2.2
Release v1.2.0
Release 1.1.3
Fixed bug where can't overwrite default option via: beb9478
Release 1.1.2
Added parsedQs
option
You can now modify Query String as you need.
Check out all Qs options available at QS
Release 1.1.1
Upgrade all outdated dependencies
v1.1.0
v1.0.0
Breaking
- errorsKeyName =>
errorProperty
, Set this innuxt.config
export default {
modules: [
// simple usage
'vue-api-queries/nuxt',
// With options
['vue-api-queries/nuxt', { errorProperty: 'errors' }],
'@nuxtjs/axios',
],
apiQueries: { errorProperty: 'errors' },
}
- in custom method in proxy, remove
this.endpoint
to set it as default. See the Examples:
Before:
import BaseProxy from './BaseProxy'
class PostProxy extends BaseProxy {
constructor(parameters = {}) {
super('posts', parameters)
}
tags(id: string | number) {
return this.submit('get', `/this.endpoint/${id}/tags`)
}
}
export default PostProxy
Now:
import BaseProxy from './BaseProxy'
class PostProxy extends BaseProxy {
constructor(parameters = {}) {
super('posts', parameters)
}
tags<T>(id: string | number) {
return this.submit<T>('get', `${id}/tags`)
}
}
export default PostProxy
OR
import BaseProxy from './BaseProxy'
class PostProxy extends BaseProxy {
constructor(parameters = {}) {
super('posts', parameters)
}
tags<T>(id: string | number) {
return this.submit<T>('get', `/${id}/tags`) // the diff is /
}
}
export default PostProxy
Added
count
method to validator
We can access this like:this.$errors.count()
or in template$errors.count()
return errors count
All above was merged from PR (#72 )
v0.1.1
Added config to submit function
v0.1.0
Bug fixed on type in BaseTransformer and PaginationTransformer.