Skip to content

Commit

Permalink
v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaotian committed Aug 27, 2024
1 parent db1c995 commit 6b31baa
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 29 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG 📝

## v0.6.0

- Fix: response interceptors should run after plugins(Fix https://github.com/suhaotian/xior/issues/29)

## v0.5.5

- Refactor: `content-type` detecting code improve and decrease size
Expand Down
54 changes: 27 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Build](https://github.com/suhaotian/xior/actions/workflows/check.yml/badge.svg)](https://github.com/suhaotian/xior/actions/workflows/check.yml)
[![Size](https://deno.bundlejs.com/badge?q=xior@0.5.5&badge=detailed)](https://bundlejs.com/?q=xior%400.5.5)
[![Size](https://deno.bundlejs.com/badge?q=xior@0.6.0&badge=detailed)](https://bundlejs.com/?q=xior%400.6.0)
[![npm version](https://badgen.net/npm/v/xior?color=green)](https://www.npmjs.com/package/xior)
![Downloads](https://img.shields.io/npm/dm/xior.svg?style=flat)
![typescript](https://badgen.net/badge/icon/typescript?icon=typescript&label&color=blue)
Expand Down Expand Up @@ -100,7 +100,7 @@ yarn add xior
Use jsDelivr CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/xior@0.5.5/dist/xior.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xior@0.6.0/dist/xior.umd.js"></script>

<!-- Usage -->
<script>
Expand All @@ -115,7 +115,7 @@ Use jsDelivr CDN:
Use unpkg CDN:

```html
<script src="https://unpkg.com/xior@0.5.5/dist/xior.umd.js"></script>
<script src="https://unpkg.com/xior@0.6.0/dist/xior.umd.js"></script>

<!-- Usage -->
<script>
Expand Down Expand Up @@ -598,9 +598,9 @@ Use CDN:
Using jsDelivr CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/xior@0.5.5/dist/xior.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xior@0.6.0/dist/xior.umd.js"></script>
<!-- Load plugin -->
<script src="https://cdn.jsdelivr.net/npm/xior@0.5.5/plugins/error-retry.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xior@0.6.0/plugins/error-retry.umd.js"></script>

<!-- Usage -->
<script>
Expand All @@ -613,10 +613,10 @@ Using jsDelivr CDN:
Using unpkg CDN:

```html
<script src="https://unpkg.com/xior@0.5.5/dist/xior.umd.js"></script>
<script src="https://unpkg.com/xior@0.6.0/dist/xior.umd.js"></script>

<!-- Load plugin -->
<script src="https://unpkg.com/xior@0.5.5/plugins/error-retry.umd.js"></script>
<script src="https://unpkg.com/xior@0.6.0/plugins/error-retry.umd.js"></script>

<!-- Usage -->
<script>
Expand Down Expand Up @@ -709,9 +709,9 @@ Use CDN:
Using jsDelivr CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/xior@0.5.5/dist/xior.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xior@0.6.0/dist/xior.umd.js"></script>
<!-- Load plugin -->
<script src="https://cdn.jsdelivr.net/npm/xior@0.5.5/plugins/throttle.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xior@0.6.0/plugins/throttle.umd.js"></script>

<!-- Usage -->
<script>
Expand All @@ -724,10 +724,10 @@ Using jsDelivr CDN:
Using unpkg CDN:

```html
<script src="https://unpkg.com/xior@0.5.5/dist/xior.umd.js"></script>
<script src="https://unpkg.com/xior@0.6.0/dist/xior.umd.js"></script>

<!-- Load plugin -->
<script src="https://unpkg.com/xior@0.5.5/plugins/throttle.umd.js"></script>
<script src="https://unpkg.com/xior@0.6.0/plugins/throttle.umd.js"></script>

<!-- Usage -->
<script>
Expand Down Expand Up @@ -782,9 +782,9 @@ Use CDN:
Using jsDelivr CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/xior@0.5.5/dist/xior.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xior@0.6.0/dist/xior.umd.js"></script>
<!-- Load plugin -->
<script src="https://cdn.jsdelivr.net/npm/xior@0.5.5/plugins/dedupe.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xior@0.6.0/plugins/dedupe.umd.js"></script>

<!-- Usage -->
<script>
Expand All @@ -797,10 +797,10 @@ Using jsDelivr CDN:
Using unpkg CDN:

```html
<script src="https://unpkg.com/xior@0.5.5/dist/xior.umd.js"></script>
<script src="https://unpkg.com/xior@0.6.0/dist/xior.umd.js"></script>

<!-- Load plugin -->
<script src="https://unpkg.com/xior@0.5.5/plugins/dedupe.umd.js"></script>
<script src="https://unpkg.com/xior@0.6.0/plugins/dedupe.umd.js"></script>

<!-- Usage -->
<script>
Expand Down Expand Up @@ -862,9 +862,9 @@ Use CDN:
Using jsDelivr CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/xior@0.5.5/dist/xior.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xior@0.6.0/dist/xior.umd.js"></script>
<!-- Load plugin -->
<script src="https://cdn.jsdelivr.net/npm/xior@0.5.5/plugins/error-cache.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xior@0.6.0/plugins/error-cache.umd.js"></script>

<!-- Usage -->
<script>
Expand All @@ -877,10 +877,10 @@ Using jsDelivr CDN:
Using unpkg CDN:

```html
<script src="https://unpkg.com/xior@0.5.5/dist/xior.umd.js"></script>
<script src="https://unpkg.com/xior@0.6.0/dist/xior.umd.js"></script>

<!-- Load plugin -->
<script src="https://unpkg.com/xior@0.5.5/plugins/error-cache.umd.js"></script>
<script src="https://unpkg.com/xior@0.6.0/plugins/error-cache.umd.js"></script>

<!-- Usage -->
<script>
Expand Down Expand Up @@ -1025,9 +1025,9 @@ Use CDN:
Using jsDelivr CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/xior@0.5.5/dist/xior.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xior@0.6.0/dist/xior.umd.js"></script>
<!-- Load plugin -->
<script src="https://cdn.jsdelivr.net/npm/xior@0.5.5/plugins/progress.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xior@0.6.0/plugins/progress.umd.js"></script>

<!-- Usage -->
<script>
Expand All @@ -1040,10 +1040,10 @@ Using jsDelivr CDN:
Using unpkg CDN:

```html
<script src="https://unpkg.com/xior@0.5.5/dist/xior.umd.js"></script>
<script src="https://unpkg.com/xior@0.6.0/dist/xior.umd.js"></script>

<!-- Load plugin -->
<script src="https://unpkg.com/xior@0.5.5/plugins/progress.umd.js"></script>
<script src="https://unpkg.com/xior@0.6.0/plugins/progress.umd.js"></script>

<!-- Usage -->
<script>
Expand Down Expand Up @@ -1150,9 +1150,9 @@ Use CDN:
Using jsDelivr CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/xior@0.5.5/dist/xior.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xior@0.6.0/dist/xior.umd.js"></script>
<!-- Load plugin -->
<script src="https://cdn.jsdelivr.net/npm/xior@0.5.5/plugins/mock.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xior@0.6.0/plugins/mock.umd.js"></script>

<!-- Usage -->
<script>
Expand All @@ -1165,10 +1165,10 @@ Using jsDelivr CDN:
Using unpkg CDN:

```html
<script src="https://unpkg.com/xior@0.5.5/dist/xior.umd.js"></script>
<script src="https://unpkg.com/xior@0.6.0/dist/xior.umd.js"></script>

<!-- Load plugin -->
<script src="https://unpkg.com/xior@0.5.5/plugins/mock.umd.js"></script>
<script src="https://unpkg.com/xior@0.6.0/plugins/mock.umd.js"></script>

<!-- Usage -->
<script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xior",
"version": "0.5.5",
"version": "0.6.0",
"description": "A lite request lib based on fetch with plugin support and similar API to axios.",
"repository": "suhaotian/xior",
"bugs": "https://github.com/suhaotian/xior/issues",
Expand Down
2 changes: 1 addition & 1 deletion src/xior.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Xior {
static create(options?: XiorRequestConfig): XiorInstance {
return new Xior(options);
}
static VERSION = '0.5.5';
static VERSION = '0.6.0';

config?: XiorRequestConfig;
defaults: XiorInterceptorRequestConfig;
Expand Down

0 comments on commit 6b31baa

Please sign in to comment.