diff --git a/CHANGELOG.md b/CHANGELOG.md index f5856ce..3d38a20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ + +# [2.7.0](https://github.com/elbywan/wretch/compare/2.6.0...2.7.0) (2023-09-12) + + +### :factory: New feature(s) + +* Support FileList objects in the form data addon ([3582809](https://github.com/elbywan/wretch/commit/3582809)), closes [#201](https://github.com/elbywan/wretch/issues/201) + +### :memo: Documentation update(s) + +* Mention file names in the form data addon doc ([411fb09](https://github.com/elbywan/wretch/commit/411fb09)), closes [#197](https://github.com/elbywan/wretch/issues/197) + + + # [2.6.0](https://github.com/elbywan/wretch/compare/2.5.2...2.6.0) (2023-06-28) diff --git a/README.md b/README.md index ab14d74..a4055ce 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ license-badge

- A tiny (~1.9KB g-zipped) wrapper built around fetch with an intuitive syntax. + A tiny (~2KB g-zipped) wrapper built around fetch with an intuitive syntax.

f[ETCH] [WR]apper @@ -19,7 +19,7 @@
-##### Wretch 2.6 is now live 🎉 ! Please have a look at the [releases](https://github.com/elbywan/wretch/releases) and the [changelog](https://github.com/elbywan/wretch/blob/master/CHANGELOG.md) after each update for new features and breaking changes. If you want to try out the hot stuff, please look into the [dev](https://github.com/elbywan/wretch/tree/dev) branch. +##### Wretch 2.7 is now live 🎉 ! Please have a look at the [releases](https://github.com/elbywan/wretch/releases) and the [changelog](https://github.com/elbywan/wretch/blob/master/CHANGELOG.md) after each update for new features and breaking changes. If you want to try out the hot stuff, please look into the [dev](https://github.com/elbywan/wretch/tree/dev) branch. ##### And if you like the library please consider becoming a [sponsor](https://github.com/sponsors/elbywan) ❤️. diff --git a/docs/api/functions/addons_abort.default.html b/docs/api/functions/addons_abort.default.html index 006022c..195ada3 100644 --- a/docs/api/functions/addons_abort.default.html +++ b/docs/api/functions/addons_abort.default.html @@ -31,7 +31,7 @@

Function default

Returns WretchAddon<AbortWretch, AbortResolver>

+
  • Defined in src/addons/abort.ts:110
  • +
  • Defined in src/addons/perfs.ts:58
  • +
  • Defined in src/addons/progress.ts:45
  • +
  • Defined in src/index.ts:36
  • +
  • Defined in src/addons/abort.ts:72
  • setTimeout: (<T, C, R>(this, time, controller?) => AbortResolver)
    @@ -141,7 +141,7 @@
    Optional Returns AbortResolver
    +
  • Defined in src/addons/abort.ts:50
  • +
  • Defined in src/addons/abort.ts:31
  • +
  • Defined in src/addons/perfs.ts:9
  • +
  • Defined in src/addons/progress.ts:23
  • +
  • Defined in src/types.ts:138
  • +
  • Defined in src/types.ts:679
  • error: ((this, code, cb) => WretchResponseChain<T, Self, R>)
    @@ -117,7 +117,7 @@
    cb: Returns WretchResponseChain<T, Self, R>
    +
  • Defined in src/types.ts:670
  • fetchError: ((this, cb) => WretchResponseChain<T, Self, R>)
    @@ -142,7 +142,7 @@

    Returns See

    error

    +
  • Defined in src/types.ts:733
  • forbidden: ((this, cb) => WretchResponseChain<T, Self, R>)
    @@ -168,7 +168,7 @@

    Returns See

    error

    +
  • Defined in src/types.ts:697
  • internalError: ((this, cb) => WretchResponseChain<T, Self, R>)
    @@ -194,7 +194,7 @@

    Returns See

    error

    +
  • Defined in src/types.ts:726
  • notFound: ((this, cb) => WretchResponseChain<T, Self, R>)
    @@ -220,7 +220,7 @@

    Returns See

    error

    +
  • Defined in src/types.ts:706
  • timeout: ((this, cb) => WretchResponseChain<T, Self, R>)
    @@ -246,7 +246,7 @@

    Returns See

    error

    +
  • Defined in src/types.ts:716
  • unauthorized: ((this, cb) => WretchResponseChain<T, Self, R>)
    @@ -272,7 +272,7 @@

    Returns See

    error

    +
  • Defined in src/types.ts:688
  • Properties - Response Type

    @@ -313,7 +313,7 @@

    Returns Returns Promise<Awaited<Result>>

    +
  • Defined in src/types.ts:631
  • blob: (<Result>(cb?) => Promise<Awaited<Result>>)
    @@ -352,7 +352,7 @@

    Returns Returns Promise<Awaited<Result>>

    +
  • Defined in src/types.ts:611
  • formData: (<Result>(cb?) => Promise<Awaited<Result>>)
    @@ -391,7 +391,7 @@

    Returns Returns Promise<Awaited<Result>>

    +
  • Defined in src/types.ts:621
  • json: (<Result>(cb?) => Promise<Awaited<Result>>)
    @@ -430,7 +430,7 @@

    Returns Returns Promise<Awaited<Result>>

    +
  • Defined in src/types.ts:601
  • res: (<Result>(cb?) => Promise<Awaited<Result>>)
    @@ -470,7 +470,7 @@

    Returns Returns Promise<Awaited<Result>>

    +
  • Defined in src/types.ts:591
  • text: (<Result>(cb?) => Promise<Awaited<Result>>)
    @@ -509,7 +509,7 @@

    Returns Returns Promise<Awaited<Result>>

    +
  • Defined in src/types.ts:641
  • +
  • Defined in src/addons/abort.ts:1
  • Index

    diff --git a/docs/api/modules/addons_formData.html b/docs/api/modules/addons_formData.html index b941042..debe4ac 100644 --- a/docs/api/modules/addons_formData.html +++ b/docs/api/modules/addons_formData.html @@ -16,7 +16,7 @@
  • addons/formData
  • Module addons/formData

    +
  • Defined in src/addons/formData.ts:1
  • Index

    diff --git a/docs/api/modules/addons_formUrl.html b/docs/api/modules/addons_formUrl.html index 2bd4314..6e28551 100644 --- a/docs/api/modules/addons_formUrl.html +++ b/docs/api/modules/addons_formUrl.html @@ -16,7 +16,7 @@
  • addons/formUrl
  • Module addons/formUrl

    +
  • Defined in src/addons/formUrl.ts:1
  • Index

    diff --git a/docs/api/modules/addons_perfs.html b/docs/api/modules/addons_perfs.html index 61b7471..54916f5 100644 --- a/docs/api/modules/addons_perfs.html +++ b/docs/api/modules/addons_perfs.html @@ -16,7 +16,7 @@
  • addons/perfs
  • Module addons/perfs

    +
  • Defined in src/addons/perfs.ts:1
  • Index

    diff --git a/docs/api/modules/addons_progress.html b/docs/api/modules/addons_progress.html index 77e984c..dd0ae1a 100644 --- a/docs/api/modules/addons_progress.html +++ b/docs/api/modules/addons_progress.html @@ -16,7 +16,7 @@
  • addons/progress
  • Module addons/progress

    +
  • Defined in src/addons/progress.ts:1
  • Index

    diff --git a/docs/api/modules/addons_queryString.html b/docs/api/modules/addons_queryString.html index 1757d25..aa32a2a 100644 --- a/docs/api/modules/addons_queryString.html +++ b/docs/api/modules/addons_queryString.html @@ -16,7 +16,7 @@
  • addons/queryString
  • Module addons/queryString

    +
  • Defined in src/addons/queryString.ts:1
  • Index

    diff --git a/docs/api/modules/index.default.html b/docs/api/modules/index.default.html index b8b0b7a..7f6f18a 100644 --- a/docs/api/modules/index.default.html +++ b/docs/api/modules/index.default.html @@ -17,12 +17,12 @@
  • default
  • Namespace default

    +
  • Defined in src/index.ts:36
  • +
  • Defined in src/index.ts:40
  • +
  • Defined in src/index.ts:42
  • +
  • Defined in src/index.ts:44
  • +
  • Defined in src/index.ts:46
  • +
  • Defined in src/index.ts:47
  • Index

    diff --git a/docs/api/modules/index.html b/docs/api/modules/index.html index 15ab817..6f2872e 100644 --- a/docs/api/modules/index.html +++ b/docs/api/modules/index.html @@ -16,7 +16,7 @@
  • index
  • Module index

    +
  • Defined in src/index.ts:1
  • Index

    diff --git a/docs/api/modules/middlewares.html b/docs/api/modules/middlewares.html index 3c3ea81..729fe05 100644 --- a/docs/api/modules/middlewares.html +++ b/docs/api/modules/middlewares.html @@ -16,7 +16,7 @@
  • middlewares
  • Module middlewares

    +
  • Defined in src/middlewares/index.ts:1
  • diff --git a/docs/api/modules/middlewares_dedupe.html b/docs/api/modules/middlewares_dedupe.html index ab193b5..3be2368 100644 --- a/docs/api/modules/middlewares_dedupe.html +++ b/docs/api/modules/middlewares_dedupe.html @@ -16,7 +16,7 @@
  • middlewares/dedupe
  • Module middlewares/dedupe

    +
  • Defined in src/middlewares/dedupe.ts:1
  • Index

    diff --git a/docs/api/modules/middlewares_delay.html b/docs/api/modules/middlewares_delay.html index 776b54f..c37bf76 100644 --- a/docs/api/modules/middlewares_delay.html +++ b/docs/api/modules/middlewares_delay.html @@ -16,7 +16,7 @@
  • middlewares/delay
  • Module middlewares/delay

    +
  • Defined in src/middlewares/delay.ts:1
  • Index

    diff --git a/docs/api/modules/middlewares_retry.html b/docs/api/modules/middlewares_retry.html index c837f1b..d07fd74 100644 --- a/docs/api/modules/middlewares_retry.html +++ b/docs/api/modules/middlewares_retry.html @@ -16,7 +16,7 @@
  • middlewares/retry
  • Module middlewares/retry

    +
  • Defined in src/middlewares/retry.ts:1
  • Index

    diff --git a/docs/api/modules/middlewares_throttlingCache.html b/docs/api/modules/middlewares_throttlingCache.html index 04aa685..7a24922 100644 --- a/docs/api/modules/middlewares_throttlingCache.html +++ b/docs/api/modules/middlewares_throttlingCache.html @@ -16,7 +16,7 @@
  • middlewares/throttlingCache
  • Module middlewares/throttlingCache

    +
  • Defined in src/middlewares/throttlingCache.ts:1
  • Index

    diff --git a/docs/api/types/index.Config.html b/docs/api/types/index.Config.html index 4ff86d8..1115a36 100644 --- a/docs/api/types/index.Config.html +++ b/docs/api/types/index.Config.html @@ -48,10 +48,10 @@
    Optional Rest ...args: any[]

    Returns any

    +
  • Defined in src/types.ts:743
  • +
  • Defined in src/types.ts:739
  • +
  • Defined in src/types.ts:777
  • +
  • Defined in src/types.ts:781
  • +
  • Defined in src/types.ts:771
  • +
  • Defined in src/types.ts:787
  • +
  • Defined in src/types.ts:786
  • +
  • Defined in src/types.ts:765
  • +
  • Defined in src/types.ts:757
  • +
  • Defined in src/types.ts:749
  • +
  • Defined in src/types.ts:761
  • +
  • Defined in src/middlewares/dedupe.ts:6
  • +
  • Defined in src/middlewares/dedupe.ts:33
  • +
  • Defined in src/middlewares/dedupe.ts:8
  • +
  • Defined in src/middlewares/dedupe.ts:7
  • +
  • Defined in src/middlewares/dedupe.ts:5
  • +
  • Defined in src/middlewares/delay.ts:16
  • +
  • Defined in src/middlewares/retry.ts:5
  • +
  • Defined in src/middlewares/retry.ts:13
  • +
  • Defined in src/middlewares/retry.ts:10
  • +
  • Defined in src/middlewares/retry.ts:119
  • +
  • Defined in src/middlewares/retry.ts:20
  • +
  • Defined in src/middlewares/retry.ts:19
  • +
  • Defined in src/middlewares/retry.ts:6
  • +
  • Defined in src/middlewares/throttlingCache.ts:7
  • +
  • Defined in src/middlewares/throttlingCache.ts:9
  • +
  • Defined in src/middlewares/throttlingCache.ts:8
  • +
  • Defined in src/middlewares/throttlingCache.ts:6
  • +
  • Defined in src/middlewares/throttlingCache.ts:56
  • +
  • Defined in src/middlewares/throttlingCache.ts:10
  • +
  • Defined in src/middlewares/throttlingCache.ts:5
  • +
  • Defined in src/addons/formData.ts:101
  • +
  • Defined in src/addons/formUrl.ts:53
  • +
  • Defined in src/addons/queryString.ts:99
  • +
  • Defined in src/index.ts:47
  • +
  • Defined in src/index.ts:40
  • +
  • Defined in src/index.ts:44
  • +
  • Defined in src/index.ts:42
  • +
  • Defined in src/index.ts:46