@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.
Files changed (2) hide show
  1. package/CHANGELOG.md +4 -2
  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 `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
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/controller-utils",
3
- "version": "11.12.0-preview-d79fc0b7",
3
+ "version": "11.12.0-preview-10aff14",
4
4
  "description": "Data and convenience functions shared by multiple packages",
5
5
  "keywords": [
6
6
  "MetaMask",