All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
For changes prior to 3.0.0
, please see the package's GitHub Releases.
- (SEMVER-MAJOR)
filterResponse
caveat now performs a deep equality check (#127)- The filter was previously just a strict equality check per array item.
Anything that can be compared by
fast-deep-equal@^2.0.1
can now be added to the caveat value. Whether something should be added we leave to the consumer. - Since consumers may have relied on the previous behavior for object and/or array values, this change justifies a major version bump.
- The filter was previously just a strict equality check per array item.
Anything that can be compared by
3.2.1 - 2020-11-19
- @metamask/[email protected] (#121)
3.2.0 - 2020-09-23
- Update various dependencies
- [email protected] (#116)
- [email protected] (#115)
- @metamask/[email protected] (#114)
3.1.0 - 2020-07-29
- Update/remove various dependencies, resulting in a smaller bundle and better performance
3.0.1 - 2020-07-06
requestPermissionsMiddleware
: Stringifyreq.id
when defaulting to it as the permissions request ID- Allowing numerical IDs was a mistake
IPermissionsRequest
- Update type of
metadata.id
fromstring | number
tostring
- Update type of
- (SEMVER-MAJOR)
requestPermissionsMiddleware
: Stop using or setting theid
property from theIOriginMetadata
parameter - (SEMVER-MAJOR)
requestPermissionsMiddleware
: Default toreq.id
value as the pending permissions request objectid
, withuuid()
as a fallback requestPermissionsMiddleware
: RenameIOriginMetadata
parameter frommetadata
todomain
, in line with other middleware functions- Its former name led to confused usage by this package and its consumers
- Types
IPermissionsRequest
- Remove top-level
origin
property, since there's already ametadata.origin
property - Update type of
metadata.id
fromstring
tostring | number
- Remove top-level
IOriginMetadata
- Remove
id
property, which is now never used in practice
- Remove