@metamask/snaps-controllers 14.0.2 → 14.1.0
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 +9 -1
- package/dist/snaps/SnapController.cjs +8 -0
- package/dist/snaps/SnapController.cjs.map +1 -1
- package/dist/snaps/SnapController.d.cts +7 -0
- package/dist/snaps/SnapController.d.cts.map +1 -1
- package/dist/snaps/SnapController.d.mts +7 -0
- package/dist/snaps/SnapController.d.mts.map +1 -1
- package/dist/snaps/SnapController.mjs +9 -1
- package/dist/snaps/SnapController.mjs.map +1 -1
- package/dist/utils.cjs +12 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +9 -1
- package/dist/utils.d.cts.map +1 -1
- package/dist/utils.d.mts +9 -1
- package/dist/utils.d.mts.map +1 -1
- package/dist/utils.mjs +10 -0
- package/dist/utils.mjs.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [14.1.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add support for non-fungible assets to `endowment:assets` ([#3527](https://github.com/MetaMask/snaps/pull/3527))
|
|
15
|
+
- Add feature flag to treat local Snaps as preinstalled ([#3523](https://github.com/MetaMask/snaps/pull/3523))
|
|
16
|
+
|
|
10
17
|
## [14.0.2]
|
|
11
18
|
|
|
12
19
|
### Fixed
|
|
@@ -851,7 +858,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
851
858
|
- The version of the package no longer needs to match the version of all other
|
|
852
859
|
MetaMask Snaps packages.
|
|
853
860
|
|
|
854
|
-
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@14.0
|
|
861
|
+
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@14.1.0...HEAD
|
|
862
|
+
[14.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@14.0.2...@metamask/snaps-controllers@14.1.0
|
|
855
863
|
[14.0.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@14.0.1...@metamask/snaps-controllers@14.0.2
|
|
856
864
|
[14.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@14.0.0...@metamask/snaps-controllers@14.0.1
|
|
857
865
|
[14.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@13.1.1...@metamask/snaps-controllers@14.0.0
|
|
@@ -1519,10 +1519,18 @@ class SnapController extends base_controller_1.BaseController {
|
|
|
1519
1519
|
permissions: manifest.initialPermissions,
|
|
1520
1520
|
platformVersion: manifest.platformVersion,
|
|
1521
1521
|
});
|
|
1522
|
+
const preinstalledArgs = this.#featureFlags.forcePreinstalledSnaps && (0, utils_2.isLocalSnapId)(snapId)
|
|
1523
|
+
? {
|
|
1524
|
+
preinstalled: true,
|
|
1525
|
+
hideSnapBranding: true,
|
|
1526
|
+
hidden: false,
|
|
1527
|
+
}
|
|
1528
|
+
: {};
|
|
1522
1529
|
return this.#set({
|
|
1523
1530
|
...args,
|
|
1524
1531
|
files: fetchedSnap,
|
|
1525
1532
|
id: snapId,
|
|
1533
|
+
...preinstalledArgs,
|
|
1526
1534
|
});
|
|
1527
1535
|
})();
|
|
1528
1536
|
}
|