@metamask/snaps-controllers 16.1.0 → 16.1.1
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 +8 -1
- package/dist/snaps/SnapController.cjs +3 -1
- package/dist/snaps/SnapController.cjs.map +1 -1
- package/dist/snaps/SnapController.d.cts.map +1 -1
- package/dist/snaps/SnapController.d.mts.map +1 -1
- package/dist/snaps/SnapController.mjs +3 -1
- package/dist/snaps/SnapController.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [16.1.1]
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Override `disableSnapInstallation` feature flag when using automatic updates ([#3735](https://github.com/MetaMask/snaps/pull/3735))
|
|
15
|
+
|
|
10
16
|
## [16.1.0]
|
|
11
17
|
|
|
12
18
|
### Added
|
|
@@ -954,7 +960,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
954
960
|
- The version of the package no longer needs to match the version of all other
|
|
955
961
|
MetaMask Snaps packages.
|
|
956
962
|
|
|
957
|
-
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@16.1.
|
|
963
|
+
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@16.1.1...HEAD
|
|
964
|
+
[16.1.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@16.1.0...@metamask/snaps-controllers@16.1.1
|
|
958
965
|
[16.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@16.0.0...@metamask/snaps-controllers@16.1.0
|
|
959
966
|
[16.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@15.0.2...@metamask/snaps-controllers@16.0.0
|
|
960
967
|
[15.0.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@15.0.1...@metamask/snaps-controllers@15.0.2
|
|
@@ -1408,7 +1408,9 @@ class SnapController extends base_controller_1.BaseController {
|
|
|
1408
1408
|
* @returns The snap metadata if updated, `null` otherwise.
|
|
1409
1409
|
*/
|
|
1410
1410
|
async #updateSnap({ origin, snapId, location, versionRange, automaticUpdate = false, }) {
|
|
1411
|
-
|
|
1411
|
+
if (!automaticUpdate) {
|
|
1412
|
+
this.#assertCanInstallSnaps();
|
|
1413
|
+
}
|
|
1412
1414
|
this.#assertCanUsePlatform();
|
|
1413
1415
|
const snap = this.getExpect(snapId);
|
|
1414
1416
|
const { preinstalled, removable, hidden, hideSnapBranding } = snap;
|