Skip to content

Commit

Permalink
chore: release 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dongnaebi committed Feb 19, 2023
1 parent 4cdf972 commit 8eb8538
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
7 changes: 7 additions & 0 deletions packages/axues/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.6.1](https://github.com/rotick/axues/compare/0.6.0...0.6.1) (2023-02-19)

### Performance Improvements

- rename MaybeComputedRef to MaybeComputedRefWithoutFn ([b828278](https://github.com/rotick/axues/commit/b8282788e9089721ad153af07e6debc8fac8370a))
- the type of requestConfig is changed to MaybeComputedRef ([4cdf972](https://github.com/rotick/axues/commit/4cdf972b9fc9d0d366b1f9e6c5aa51e6cc534a23))

# [0.6.0](https://github.com/rotick/axues/compare/0.5.1...0.6.0) (2023-02-19)

### Features
Expand Down
10 changes: 6 additions & 4 deletions packages/axues/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,10 @@ That is why axues need to be created first.
### createAxues

```typescript
type MaybeComputedRef<T> = MaybeRef<T> | (() => T) | ComputedRef<T>

interface CreateAxuesOptions {
requestConfig?: () => AxiosRequestConfig
requestConfig?: MaybeComputedRef<AxiosRequestConfig>
transformUseOptions?: (options: UseAxuesOptions) => UseAxuesOptions
responseHandle?: (response: AxiosResponse, requestConfig: AxuesRequestConfig) => unknown
errorHandle?: (err: AxiosError, requestConfig: AxuesRequestConfig) => Error
Expand Down Expand Up @@ -578,8 +580,8 @@ declare function createAxues(axiosInstance: AxiosInstance, createOptions?: Creat

```typescript
type MaybeRef<T> = T | Ref<T>
type MaybeComputedRef<T> = ComputedRef<T> | MaybeRef<T>
type MaybeComputedOrActionRef<T, TAction = any> = MaybeComputedRef<T> | ((actionPayload?: TAction) => T)
type MaybeComputedRefWithoutFn<T> = ComputedRef<T> | MaybeRef<T>
type MaybeComputedOrActionRef<T, TAction = any> = MaybeComputedRefWithoutFn<T> | ((actionPayload?: TAction) => T)
interface AxuesRequestConfig<TI = any, TAction = any> extends Omit<AxiosRequestConfig, 'url' | 'headers'> {
url?: MaybeComputedOrActionRef<string, TAction>
Expand Down Expand Up @@ -631,7 +633,7 @@ interface UseAxuesOptions<TI = any, TO = any, TAction = any> extends AxuesReques
onError?: (err: Error, actionPayload?: TAction) => void
onFinally?: (actionPayload?: TAction) => void
}
type UseAxuesFirstArg<TI, TO, TAction> = MaybeComputedRef<string> | ((actionPayload?: TAction, signal?: AbortSignal) => Promise<TO>) | UseAxuesOptions<TI, TO, TAction>
type UseAxuesFirstArg<TI, TO, TAction> = MaybeComputedRefWithoutFn<string> | ((actionPayload?: TAction, signal?: AbortSignal) => Promise<TO>) | UseAxuesOptions<TI, TO, TAction>
interface UseAxuesOutput<TI, TO, TAction = any> {
pending: Ref<boolean>
loading: Ref<boolean>
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.6.0",
"version": "0.6.1",
"description": "Vue composable powered by axios for easier request state management, axios + vue = axues ✌️",
"keywords": [
"axios",
Expand Down

0 comments on commit 8eb8538

Please sign in to comment.