diff --git a/packages/axues/CHANGELOG.md b/packages/axues/CHANGELOG.md index fe73d7e..7711dfb 100644 --- a/packages/axues/CHANGELOG.md +++ b/packages/axues/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +# [0.7.0](https://github.com/rotick/axues/compare/0.6.1...0.7.0) (2023-03-05) + +### Features + +- use `debounce` instead of `debounceMode`, it will be deprecated in next major version ([ce25ee8](https://github.com/rotick/axues/commit/ce25ee8f0daf16f3fb13d64bf0d2962eca1b8b76)) + ## [0.6.1](https://github.com/rotick/axues/compare/0.6.0...0.6.1) (2023-02-19) ### Performance Improvements diff --git a/packages/axues/README.md b/packages/axues/README.md index de1213f..f2c770e 100644 --- a/packages/axues/README.md +++ b/packages/axues/README.md @@ -221,8 +221,8 @@ import { useAxues } from 'axues' const keyword = ref('') const { data, action } = useAxues({ url: '/api/foo', - params: { keyword }, - debounceMode: 'lastPass', + params: () => ({ keyword: keyword.value }), + debounce: true, debounceTime: 600 // default: 500 (ms) }) @@ -618,7 +618,7 @@ interface UseAxuesOptions extends AxuesReques immediate?: boolean initialData?: TO shallow?: boolean - debounceMode?: 'firstPass' | 'lastPass' | 'none' + debounce?: boolean debounceTime?: number autoRetryTimes?: number autoRetryInterval?: number diff --git a/packages/axues/package.json b/packages/axues/package.json index 878fe0e..7e7462b 100644 --- a/packages/axues/package.json +++ b/packages/axues/package.json @@ -1,6 +1,6 @@ { "name": "axues", - "version": "0.6.1", + "version": "0.7.0", "description": "Vue composable powered by axios for easier request state management, axios + vue = axues ✌️", "keywords": [ "axios",