@metamask-previews/controller-utils 11.12.0-preview-d79fc0b7 → 11.12.0-preview-10aff14
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 +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,8 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
|
|
12
12
|
### Added
|
|
13
13
|
|
|
14
|
-
- Update `onDegraded` in `
|
|
15
|
-
-
|
|
14
|
+
- Update `onDegraded` property in `ServicePolicy` so that the event listener payload may be an object with either an `error` or `value` 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
|
+
- The payload will be empty (i.e. the object will be `undefined`) if the degraded event merely represents a slow request.
|
|
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.
|
|
16
18
|
|
|
17
19
|
## [11.11.0]
|
|
18
20
|
|
package/package.json
CHANGED