@metamask-previews/controller-utils 11.12.0-preview-ddceb3a8 → 11.12.0-preview-d79fc0b7
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.
- package/CHANGELOG.md +2 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,10 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
|
|
12
12
|
### Added
|
|
13
13
|
|
|
14
|
-
- Update `onDegraded`
|
|
15
|
-
-
|
|
16
|
-
- `ServicePolicy` is the type returned by `createServicePolicy`.
|
|
17
|
-
- **NOTE:** Although `error` and `value` are new, optional properties, this change makes an inadvertent breaking change to the signature of the event listener due to how TypeScript compares function types. We have conciously decided not to re-release this change under a major version, so be advised.
|
|
14
|
+
- Update `onDegraded` in `createServicePolicy` so that its event payload now includes an `error` property which can be used to access the error produced by the last request when the maximum number of retries is exceeded ([#6188](https://github.com/MetaMask/core/pull/6188))
|
|
15
|
+
- This `error` property will be `undefined` if the degraded event merely represents a slow request
|
|
18
16
|
|
|
19
17
|
## [11.11.0]
|
|
20
18
|
|
package/package.json
CHANGED