Skip to content

Commit

Permalink
chore: release 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dongnaebi committed Mar 19, 2023
1 parent b20654c commit 5627397
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
12 changes: 12 additions & 0 deletions packages/axues/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

# [0.9.0](https://github.com/rotick/axues/compare/0.8.0...0.9.0) (2023-03-19)

### Features

- add refreshed state and finer grained requestTimes ([98307d4](https://github.com/rotick/axues/commit/98307d470349f9d07c8ece2e2e419e90db3ed10d))
- add resetAction method so that we can return to the initial state ([9dc2a45](https://github.com/rotick/axues/commit/9dc2a45cc293efaced39874863ee36d495297011))
- add watch option to listen for changes in url, params, data, headers and initiate requests ([35d6a16](https://github.com/rotick/axues/commit/35d6a16a02f11fdec77b500d4c91df7beef59e44))

### Performance Improvements

- add warning to deprecated API ([24ad21b](https://github.com/rotick/axues/commit/24ad21b4748ab3636027329c098bb20a3bf4d423))

# [0.8.0](https://github.com/rotick/axues/compare/0.7.0...0.8.0) (2023-03-12)

### Bug Fixes
Expand Down
15 changes: 14 additions & 1 deletion packages/axues/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,16 @@ interface CreateAxuesOptions {
delete: (key: string) => void
}
errorReport?: (err: Error) => void
loadingDelay?: number
rewriteDefault?: {
immediate?: boolean
shallow?: boolean
loadingDelay?: number
debounce?: boolean
debounceTime?: number
autoRetryTimes?: number
autoRetryInterval?: number
throwOnActionFailed?: boolean
}
overlayImplement?: {
loadingOpen?: (options: LoadingOverlayType) => void
loadingClose?: () => void
Expand Down Expand Up @@ -613,9 +622,11 @@ declare let axues: Axues
### useAxues

```typescript
type CanWatch = 'url' | 'params' | 'data' | 'headers'
interface UseAxuesOptions<TI = any, TO = any, TAction = any> extends AxuesRequestConfig<TI, TAction> {
promise?: (actionPayload?: TAction, signal?: AbortSignal) => Promise<TO>
immediate?: boolean
watch?: CanWatch | CanWatch[]
initialData?: TO
shallow?: boolean
debounce?: boolean
Expand All @@ -640,6 +651,7 @@ interface UseAxuesOutput<TI, TO, TAction = any> {
success: Ref<boolean>
error: Ref<Error | null>
refreshing: Ref<boolean>
refreshed: Ref<boolean>
retrying: Ref<boolean>
retryTimes: Ref<number>
retryCountdown: Ref<number>
Expand All @@ -648,6 +660,7 @@ interface UseAxuesOutput<TI, TO, TAction = any> {
aborted: Ref<boolean>
data: Ref<TO>
action: (actionPayload?: TAction) => PromiseLike<TO>
resetAction: (actionPayload?: TAction) => PromiseLike<TO>
retry: () => PromiseLike<TO>
refresh: () => PromiseLike<TO>
abort: () => void
Expand Down
2 changes: 1 addition & 1 deletion packages/axues/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "axues",
"version": "0.8.0",
"version": "0.9.0",
"description": "Vue composable powered by axios for easier request state management, axios + vue = axues ✌️",
"keywords": [
"axios",
Expand Down

0 comments on commit 5627397

Please sign in to comment.