From a804cace6040268908eebe8014cdbad86867fd00 Mon Sep 17 00:00:00 2001 From: Julien Elbaz Date: Tue, 12 Sep 2023 19:28:27 +0200 Subject: [PATCH] 2.7.0 tag --- CHANGELOG.md | 14 ++++++ README.md | 4 +- docs/api/functions/addons_abort.default.html | 2 +- docs/api/functions/addons_perfs.default.html | 2 +- .../functions/addons_progress.default.html | 2 +- docs/api/functions/index.default-1.html | 2 +- .../functions/middlewares_dedupe.dedupe.html | 2 +- .../functions/middlewares_delay.delay.html | 2 +- .../functions/middlewares_retry.retry.html | 2 +- ...wares_throttlingCache.throttlingCache.html | 2 +- .../addons_abort.AbortResolver.html | 8 +-- .../interfaces/addons_abort.AbortWretch.html | 4 +- .../addons_formData.FormDataAddon.html | 4 +- .../addons_formUrl.FormUrlAddon.html | 4 +- .../interfaces/addons_perfs.PerfsAddon.html | 4 +- .../addons_progress.ProgressResolver.html | 4 +- .../addons_queryString.QueryStringAddon.html | 4 +- docs/api/interfaces/index.Wretch.html | 50 +++++++++---------- docs/api/interfaces/index.WretchError.html | 12 ++--- .../interfaces/index.WretchResponseChain.html | 30 +++++------ docs/api/modules/addons.html | 2 +- docs/api/modules/addons_abort.html | 2 +- docs/api/modules/addons_formData.html | 2 +- docs/api/modules/addons_formUrl.html | 2 +- docs/api/modules/addons_perfs.html | 2 +- docs/api/modules/addons_progress.html | 2 +- docs/api/modules/addons_queryString.html | 2 +- docs/api/modules/index.default.html | 12 ++--- docs/api/modules/index.html | 2 +- docs/api/modules/middlewares.html | 2 +- docs/api/modules/middlewares_dedupe.html | 2 +- docs/api/modules/middlewares_delay.html | 2 +- docs/api/modules/middlewares_retry.html | 2 +- .../modules/middlewares_throttlingCache.html | 2 +- docs/api/types/index.Config.html | 4 +- .../api/types/index.ConfiguredMiddleware.html | 2 +- docs/api/types/index.FetchLike.html | 2 +- docs/api/types/index.Middleware.html | 2 +- docs/api/types/index.WretchAddon.html | 4 +- .../types/index.WretchDeferredCallback.html | 2 +- docs/api/types/index.WretchErrorCallback.html | 2 +- docs/api/types/index.WretchOptions.html | 2 +- docs/api/types/index.WretchResponse.html | 2 +- .../middlewares_dedupe.DedupeKeyFunction.html | 2 +- .../middlewares_dedupe.DedupeMiddleware.html | 2 +- .../middlewares_dedupe.DedupeOptions.html | 2 +- ...lewares_dedupe.DedupeResolverFunction.html | 2 +- ...middlewares_dedupe.DedupeSkipFunction.html | 2 +- .../middlewares_delay.DelayMiddleware.html | 2 +- .../middlewares_retry.DelayRampFunction.html | 2 +- .../middlewares_retry.OnRetryFunction.html | 2 +- ...lewares_retry.OnRetryFunctionResponse.html | 2 +- .../middlewares_retry.RetryMiddleware.html | 2 +- .../types/middlewares_retry.RetryOptions.html | 2 +- .../types/middlewares_retry.SkipFunction.html | 2 +- .../middlewares_retry.UntilFunction.html | 2 +- ...ingCache.ThrottlingCacheClearFunction.html | 2 +- ...ache.ThrottlingCacheConditionFunction.html | 2 +- ...che.ThrottlingCacheInvalidateFunction.html | 2 +- ...tlingCache.ThrottlingCacheKeyFunction.html | 2 +- ...ttlingCache.ThrottlingCacheMiddleware.html | 2 +- ...hrottlingCache.ThrottlingCacheOptions.html | 2 +- ...lingCache.ThrottlingCacheSkipFunction.html | 2 +- .../variables/addons_formData.default.html | 2 +- .../api/variables/addons_formUrl.default.html | 2 +- .../variables/addons_queryString.default.html | 2 +- .../variables/index.default.WretchError.html | 2 +- docs/api/variables/index.default.default.html | 2 +- .../variables/index.default.errorType.html | 2 +- docs/api/variables/index.default.options.html | 2 +- .../variables/index.default.polyfills.html | 2 +- docs/index.html | 4 +- package.json | 4 +- 73 files changed, 148 insertions(+), 134 deletions(-) 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