@metamask/preferences-controller
Advanced tools
Comparing version 4.3.0 to 4.4.0
@@ -9,2 +9,11 @@ # Changelog | ||
## [4.4.0] | ||
### Added | ||
- Add `isIpfsGatewayEnabled` property to PreferencesController state ([#1577](https://github.com/MetaMask/core/pull/1577)) | ||
- Add `setIsIpfsGatewayEnabled` to set `isIpfsGatewayEnabled` ([#1577](https://github.com/MetaMask/core/pull/1577)) | ||
### Changed | ||
- Bump dependency on `@metamask/base-controller` to ^3.2.1 | ||
- Bump dependency on `@metamask/controller-utils` to ^4.3.2 | ||
## [4.3.0] | ||
@@ -58,3 +67,4 @@ ### Added | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/preferences-controller@4.3.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/preferences-controller@4.4.0...HEAD | ||
[4.4.0]: https://github.com/MetaMask/core/compare/@metamask/preferences-controller@4.3.0...@metamask/preferences-controller@4.4.0 | ||
[4.3.0]: https://github.com/MetaMask/core/compare/@metamask/preferences-controller@4.2.0...@metamask/preferences-controller@4.3.0 | ||
@@ -61,0 +71,0 @@ [4.2.0]: https://github.com/MetaMask/core/compare/@metamask/preferences-controller@4.1.0...@metamask/preferences-controller@4.2.0 |
@@ -45,2 +45,3 @@ import type { BaseConfig, BaseState } from '@metamask/base-controller'; | ||
showTestNetworks: boolean; | ||
isIpfsGatewayEnabled: boolean; | ||
} | ||
@@ -158,4 +159,10 @@ /** | ||
setShowTestNetworks(showTestNetworks: boolean): void; | ||
/** | ||
* A setter for the user allow to be fetched IPFS content | ||
* | ||
* @param isIpfsGatewayEnabled - true to enable ipfs source | ||
*/ | ||
setIsIpfsGatewayEnabled(isIpfsGatewayEnabled: boolean): void; | ||
} | ||
export default PreferencesController; | ||
//# sourceMappingURL=PreferencesController.d.ts.map |
@@ -37,2 +37,3 @@ "use strict"; | ||
showTestNetworks: false, | ||
isIpfsGatewayEnabled: true, | ||
}; | ||
@@ -239,2 +240,10 @@ this.initialize(); | ||
} | ||
/** | ||
* A setter for the user allow to be fetched IPFS content | ||
* | ||
* @param isIpfsGatewayEnabled - true to enable ipfs source | ||
*/ | ||
setIsIpfsGatewayEnabled(isIpfsGatewayEnabled) { | ||
this.update({ isIpfsGatewayEnabled }); | ||
} | ||
} | ||
@@ -241,0 +250,0 @@ exports.PreferencesController = PreferencesController; |
{ | ||
"name": "@metamask/preferences-controller", | ||
"version": "4.3.0", | ||
"version": "4.4.0", | ||
"description": "Manages user-configurable settings for MetaMask", | ||
@@ -26,3 +26,2 @@ "keywords": [ | ||
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/preferences-controller", | ||
"prepare-manifest:preview": "../../scripts/prepare-preview-manifest.sh", | ||
"publish:preview": "yarn npm publish --tag preview", | ||
@@ -33,4 +32,4 @@ "test": "jest", | ||
"dependencies": { | ||
"@metamask/base-controller": "^3.2.0", | ||
"@metamask/controller-utils": "^4.3.1" | ||
"@metamask/base-controller": "^3.2.1", | ||
"@metamask/controller-utils": "^4.3.2" | ||
}, | ||
@@ -37,0 +36,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
41171
432