diff --git a/.changeset/smooth-poems-shake.md b/.changeset/smooth-poems-shake.md deleted file mode 100644 index 567408f0..00000000 --- a/.changeset/smooth-poems-shake.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@blizzard-api/client': patch ---- - -Update ky to 2.2.0 and delegate 429 retry handling to ky instead of wrapping every request in a custom retry loop. - -`maxAttempts` previously compounded with ky's own retries, so a request configured with `maxAttempts: 3` sent nine HTTP requests. It now sends exactly three. `retryOnRateLimit: false` also did not stop ky from retrying twice; it now disables retries entirely. - -Retries are now configured through ky, which also means the token endpoints gain the same `Retry-After` and rate limit header handling as the resource endpoints, and `5xx`, network, and timeout failures are retried too. Retry settings passed per request are honoured rather than silently ignored. - -`kyOptions.retry` is merged with the client's defaults instead of replacing them, and `retryOnRateLimit: false` takes precedence over it. diff --git a/packages/client/CHANGELOG.md b/packages/client/CHANGELOG.md index 64147aca..3896cde7 100644 --- a/packages/client/CHANGELOG.md +++ b/packages/client/CHANGELOG.md @@ -1,5 +1,17 @@ # @blizzard-api/client +## 5.5.1 + +### Patch Changes + +- ae53cb3: Update ky to 2.2.0 and delegate 429 retry handling to ky instead of wrapping every request in a custom retry loop. + + `maxAttempts` previously compounded with ky's own retries, so a request configured with `maxAttempts: 3` sent nine HTTP requests. It now sends exactly three. `retryOnRateLimit: false` also did not stop ky from retrying twice; it now disables retries entirely. + + Retries are now configured through ky, which also means the token endpoints gain the same `Retry-After` and rate limit header handling as the resource endpoints, and `5xx`, network, and timeout failures are retried too. Retry settings passed per request are honoured rather than silently ignored. + + `kyOptions.retry` is merged with the client's defaults instead of replacing them, and `retryOnRateLimit: false` takes precedence over it. + ## 5.5.0 ### Minor Changes diff --git a/packages/client/package.json b/packages/client/package.json index b3f8242b..f0fc094b 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@blizzard-api/client", - "version": "5.5.0", + "version": "5.5.1", "description": "A node.js client to integrate with the blizzard battle.net api.", "keywords": [ "api",