diff --git a/.changeset/polite-kangaroos-rhyme.md b/.changeset/polite-kangaroos-rhyme.md deleted file mode 100644 index 336cf70e7c..0000000000 --- a/.changeset/polite-kangaroos-rhyme.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-auth': patch ---- - -`authExchange()` will now block and pass on errors if the initialization function passed to it fails, and will retry indefinitely. It’ll also output a warning for these cases, as the initialization function (i.e. `authExchange(async (utils) => { /*...*/ })`) is not expected to reject/throw. diff --git a/examples/with-graphcache-updates/package.json b/examples/with-graphcache-updates/package.json index 6b01242e3d..f04bd35d85 100644 --- a/examples/with-graphcache-updates/package.json +++ b/examples/with-graphcache-updates/package.json @@ -7,7 +7,7 @@ }, "dependencies": { "@urql/core": "^4.1.0", - "@urql/exchange-auth": "^2.1.5", + "@urql/exchange-auth": "^2.1.6", "@urql/exchange-graphcache": "^6.3.1", "graphql": "^16.6.0", "react": "^18.2.0", diff --git a/examples/with-refresh-auth/package.json b/examples/with-refresh-auth/package.json index 9ca26705fc..95f4a938f6 100644 --- a/examples/with-refresh-auth/package.json +++ b/examples/with-refresh-auth/package.json @@ -7,7 +7,7 @@ }, "dependencies": { "@urql/core": "^4.1.0", - "@urql/exchange-auth": "^2.1.5", + "@urql/exchange-auth": "^2.1.6", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/exchanges/auth/CHANGELOG.md b/exchanges/auth/CHANGELOG.md index 7e6d2d7596..a7a6b10cf3 100644 --- a/exchanges/auth/CHANGELOG.md +++ b/exchanges/auth/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.1.6 + +### Patch Changes + +- `authExchange()` will now block and pass on errors if the initialization function passed to it fails, and will retry indefinitely. It’ll also output a warning for these cases, as the initialization function (i.e. `authExchange(async (utils) => { /*...*/ })`) is not expected to reject/throw + Submitted by [@kitten](https://github.com/kitten) (See [#3343](https://github.com/urql-graphql/urql/pull/3343)) + ## 2.1.5 ### Patch Changes diff --git a/exchanges/auth/package.json b/exchanges/auth/package.json index 74d56c0a40..194595798b 100644 --- a/exchanges/auth/package.json +++ b/exchanges/auth/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-auth", - "version": "2.1.5", + "version": "2.1.6", "description": "An exchange for managing authentication and token refresh in urql", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/",