Skip to content

Releases: chantouchsek/vue-axios-http

v1.2.3

10 Jan 09:17
Compare
Choose a tag to compare

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

04 Jan 10:11
Compare
Choose a tag to compare

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

02 Oct 13:52
Compare
Choose a tag to compare

Features

  • 🚀 added is plain object function helpers (7b3ebff)
  • 🎉 added axios duplicate blocker check the request (87c25c0)
  • 🎉 added new first by method validator class (ddb84f7)

Bug Fixes

  • deps: bump actions/setup-node from 2.4.0 to 2.4.1 (0bd0fb3)
  • test: ✅ fixed and update some types (79a5e50)

Release 1.1.3

23 Sep 09:43
Compare
Choose a tag to compare

Fixed bug where can't overwrite default option via: beb9478

Release 1.1.2

20 Sep 04:31
Compare
Choose a tag to compare

Added parsedQs option

You can now modify Query String as you need.

Check out all Qs options available at QS

Release 1.1.1

19 Sep 16:26
e059ee4
Compare
Choose a tag to compare

Upgrade all outdated dependencies

v1.1.0

16 Aug 14:10
Compare
Choose a tag to compare

Added createMany() via 03d6db1

v1.0.0

08 Aug 16:42
267bf44
Compare
Choose a tag to compare

Breaking

  • errorsKeyName => errorProperty, Set this in nuxt.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

17 Jul 07:23
Compare
Choose a tag to compare

Added config to submit function

v0.1.0

14 Jun 15:54
Compare
Choose a tag to compare

Bug fixed on type in BaseTransformer and PaginationTransformer.