@metamask-previews/controller-utils 11.8.0-preview-a578ea2 → 11.8.0-preview-9d9178c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Changed
11
+
12
+ - Improved circuit breaker behavior to only consider actual service failures ([#5798](https://github.com/MetaMask/core/pull/5798))
13
+ - Changed from using `handleAll` to `handleWhen(isServiceFailure)` in circuit breaker policy
14
+ - This ensures that expected error responses (like 405 Method Not Allowed and 429 Rate Limited) don't trigger the circuit breaker
15
+ - Only actual service failures (like network errors, 500s, etc.) will now count towards the consecutive failure limit
16
+
10
17
  ## [11.8.0]
11
18
 
12
19
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/controller-utils",
3
- "version": "11.8.0-preview-a578ea2",
3
+ "version": "11.8.0-preview-9d9178c",
4
4
  "description": "Data and convenience functions shared by multiple packages",
5
5
  "keywords": [
6
6
  "MetaMask",