From 4c48e5d1ee1a363c397884b3fbdae0f3ff1dd989 Mon Sep 17 00:00:00 2001
From: Julien Elbaz
Date: Sat, 30 Dec 2023 10:48:27 +0100
Subject: [PATCH] 2.8.0 tag
---
CHANGELOG.md | 10 ++++
README.md | 2 +-
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 | 4 +-
.../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 | 2 +-
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 | 2 +-
.../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 +-
package.json | 2 +-
72 files changed, 130 insertions(+), 120 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3f6d9b4..5fc42bc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,13 @@
+
+# [2.8.0](https://github.com/elbywan/wretch/compare/2.7.1...2.8.0) (2023-12-30)
+
+
+### :factory: New feature(s)
+
+* addon.resolver can now be a function ([0bf9aa8](https://github.com/elbywan/wretch/commit/0bf9aa8)), closes [#212](https://github.com/elbywan/wretch/issues/212)
+
+
+
## [2.7.1](https://github.com/elbywan/wretch/compare/2.7.0...2.7.1) (2023-11-19)
diff --git a/README.md b/README.md
index a4055ce..7e3d5b9 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@
-##### 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.
+##### Wretch 2.8 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 14d4e46..35730e3 100644
--- a/docs/api/functions/addons_abort.default.html
+++ b/docs/api/functions/addons_abort.default.html
@@ -5,4 +5,4 @@
polyfill.
import AbortAddon from "wretch/addons/abort"
const [c, w] = wretch("...")
.addon(AbortAddon())
.get()
.onAbort((_) => console.log("Aborted !"))
.controller();
w.text((_) => console.log("should never be called"));
c.abort();
// Or :
const controller = new AbortController();
wretch("...")
.addon(AbortAddon())
.signal(controller)
.get()
.onAbort((_) => console.log("Aborted !"))
.text((_) => console.log("should never be called"));
controller.abort();
-