@metamask-previews/preferences-controller 7.0.0-preview.2431602 → 7.0.0-preview.3905f51
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 +43 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
|
|
2
3
|
All notable changes to this project will be documented in this file.
|
|
3
4
|
|
|
4
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
@@ -7,19 +8,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
8
|
## [Unreleased]
|
|
8
9
|
|
|
9
10
|
## [7.0.0]
|
|
11
|
+
|
|
10
12
|
### Changed
|
|
13
|
+
|
|
11
14
|
- **BREAKING:** Keep `PreferencesController` state synchronized with `KeyringController` state ([#3799](https://github.com/MetaMask/core/pull/3799))
|
|
12
15
|
- The `KeyringController:stateChange` event is now required by the `PreferencesController` messenger, which is a breaking change.
|
|
13
16
|
- The package `@metamask/keyring-controller` has been added as a `peerDependency` and as a `devDependency`, which is a breaking change.
|
|
14
|
-
- Previously the state was synchronized manually by calling `syncIdentities` or
|
|
17
|
+
- Previously the state was synchronized manually by calling `syncIdentities` or `updateIdentities`. Calling these methods is no longer required.
|
|
15
18
|
- Bump `@metamask/base-controller` to `^4.1.1` ([#3760](https://github.com/MetaMask/core/pull/3760), [#3821](https://github.com/MetaMask/core/pull/3821))
|
|
16
19
|
- Bump `@metamask/controller-utils` to `^8.0.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
|
|
17
20
|
|
|
18
21
|
## [6.0.0]
|
|
22
|
+
|
|
19
23
|
### Added
|
|
24
|
+
|
|
20
25
|
- Added `getDefaultPreferencesState` function ([#3736](https://github.com/MetaMask/core/pull/3736))
|
|
21
26
|
|
|
22
27
|
### Changed
|
|
28
|
+
|
|
23
29
|
- **BREAKING** Clean up types ([#3712](https://github.com/MetaMask/core/pull/3712))
|
|
24
30
|
- Replace `ContactEntry` interface with `Identity` type
|
|
25
31
|
- Convert `PreferencesState` from an interface to a type
|
|
@@ -28,12 +34,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
28
34
|
- Additional type exports have been added for the controller messenger and associated types
|
|
29
35
|
|
|
30
36
|
## [5.0.1]
|
|
37
|
+
|
|
31
38
|
### Changed
|
|
39
|
+
|
|
32
40
|
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
|
|
33
41
|
- Bump `@metamask/controller-utils` to `^8.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695), [#3678](https://github.com/MetaMask/core/pull/3678), [#3667](https://github.com/MetaMask/core/pull/3667), [#3580](https://github.com/MetaMask/core/pull/3580))
|
|
34
42
|
|
|
35
43
|
## [5.0.0]
|
|
44
|
+
|
|
36
45
|
### Added
|
|
46
|
+
|
|
37
47
|
- **BREAKING** Add required property `showIncomingTransactions` to `PreferencesState` ([#1659](https://github.com/MetaMask/core/pull/1659))
|
|
38
48
|
- Add types `EtherscanSupportedChains`, `EtherscanSupportedHexChainId` ([#1659](https://github.com/MetaMask/core/pull/1659))
|
|
39
49
|
- Add constant `ETHERSCAN_SUPPORTED_CHAIN_IDS` ([#1659](https://github.com/MetaMask/core/pull/1659))
|
|
@@ -41,75 +51,107 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
41
51
|
- This can be used to set the `showIncomingTransactions` preference for the given chain ID.
|
|
42
52
|
|
|
43
53
|
### Changed
|
|
54
|
+
|
|
44
55
|
- Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
45
56
|
- This is not breaking because this controller still inherits from BaseController v1.
|
|
46
57
|
- Bump `@metamask/controller-utils` to ^6.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
47
58
|
|
|
48
59
|
## [4.4.3]
|
|
60
|
+
|
|
49
61
|
### Changed
|
|
62
|
+
|
|
50
63
|
- Bump dependency on `@metamask/base-controller` to ^3.2.3 ([#1747](https://github.com/MetaMask/core/pull/1747))
|
|
51
64
|
- Bump dependency on `@metamask/controller-utils` to ^5.0.2 ([#1747](https://github.com/MetaMask/core/pull/1747))
|
|
52
65
|
|
|
53
66
|
## [4.4.2]
|
|
67
|
+
|
|
54
68
|
### Changed
|
|
69
|
+
|
|
55
70
|
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
|
|
56
71
|
|
|
57
72
|
## [4.4.1]
|
|
73
|
+
|
|
58
74
|
### Changed
|
|
75
|
+
|
|
59
76
|
- Bump dependency on `@metamask/controller-utils` to ^5.0.0
|
|
60
77
|
|
|
61
78
|
## [4.4.0]
|
|
79
|
+
|
|
62
80
|
### Added
|
|
81
|
+
|
|
63
82
|
- Add `isIpfsGatewayEnabled` property to PreferencesController state ([#1577](https://github.com/MetaMask/core/pull/1577))
|
|
64
83
|
- Add `setIsIpfsGatewayEnabled` to set `isIpfsGatewayEnabled` ([#1577](https://github.com/MetaMask/core/pull/1577))
|
|
65
84
|
|
|
66
85
|
### Changed
|
|
86
|
+
|
|
67
87
|
- Bump dependency on `@metamask/base-controller` to ^3.2.1
|
|
68
88
|
- Bump dependency on `@metamask/controller-utils` to ^4.3.2
|
|
69
89
|
|
|
70
90
|
## [4.3.0]
|
|
91
|
+
|
|
71
92
|
### Added
|
|
93
|
+
|
|
72
94
|
- Add preference for security alerts ([#1589](https://github.com/MetaMask/core/pull/1589))
|
|
73
95
|
|
|
74
96
|
## [4.2.0]
|
|
97
|
+
|
|
75
98
|
### Added
|
|
99
|
+
|
|
76
100
|
- Add controller state property `showTestNetworks` along with a setter method, `setShowTestNetworks` ([#1418](https://github.com/MetaMask/core/pull/1418))
|
|
77
101
|
|
|
78
102
|
## [4.1.0]
|
|
103
|
+
|
|
79
104
|
### Added
|
|
105
|
+
|
|
80
106
|
- Add `isMultiAccountBalancesEnabled` to state (default: true) along with a `setIsMultiAccountBalancesEnabled` method to set it
|
|
81
107
|
|
|
82
108
|
## [4.0.0]
|
|
109
|
+
|
|
83
110
|
### Changed
|
|
111
|
+
|
|
84
112
|
- **BREAKING:** Bump to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262))
|
|
85
113
|
|
|
86
114
|
## [3.0.0]
|
|
115
|
+
|
|
87
116
|
### Changed
|
|
117
|
+
|
|
88
118
|
- **BREAKING:** Migrate network configurations from `PreferencesController` to `NetworkController` ([#1064](https://github.com/MetaMask/core/pull/1064))
|
|
89
119
|
- Consumers will need to adapt by reading network data from `NetworkConfigurations` state on `NetworkController` rather than `frequentRpcList` on `PreferencesController`. See `NetworkController` v6.0.0 changelog entry for more details.
|
|
90
120
|
|
|
91
121
|
## [2.1.0]
|
|
122
|
+
|
|
92
123
|
### Added
|
|
124
|
+
|
|
93
125
|
- `disabledRpcMethodPreferences` state to PreferencesController ([#1109](https://github.com/MetaMask/core/pull/1109)). See [this PR on extension](https://github.com/MetaMask/metamask-extension/pull/17308) and [this ticket](https://github.com/MetaMask/metamask-mobile/issues/5676)
|
|
94
126
|
|
|
95
127
|
## [2.0.0]
|
|
128
|
+
|
|
96
129
|
### Removed
|
|
130
|
+
|
|
97
131
|
- **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106))
|
|
98
132
|
- Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch`
|
|
99
133
|
|
|
100
134
|
## [1.0.2]
|
|
135
|
+
|
|
101
136
|
### Changed
|
|
137
|
+
|
|
102
138
|
- Rename this repository to `core` ([#1031](https://github.com/MetaMask/controllers/pull/1031))
|
|
103
139
|
- Update `@metamask/controller-utils` package ([#1041](https://github.com/MetaMask/controllers/pull/1041))
|
|
104
140
|
|
|
105
141
|
## [1.0.1]
|
|
142
|
+
|
|
106
143
|
### Changed
|
|
144
|
+
|
|
107
145
|
- Relax dependencies on `@metamask/base-controller` and `@metamask/controller-utils` (use `^` instead of `~`) ([#998](https://github.com/MetaMask/core/pull/998))
|
|
108
146
|
|
|
109
147
|
## [1.0.0]
|
|
148
|
+
|
|
110
149
|
### Added
|
|
150
|
+
|
|
111
151
|
- Initial release
|
|
152
|
+
|
|
112
153
|
- As a result of converting our shared controllers repo into a monorepo ([#831](https://github.com/MetaMask/core/pull/831)), we've created this package from select parts of [`@metamask/controllers` v33.0.0](https://github.com/MetaMask/core/tree/v33.0.0), namely:
|
|
154
|
+
|
|
113
155
|
- `src/user/PreferencesController.ts` (plus `ContactEntry` copied from `src/user/AddressBookController.ts`)
|
|
114
156
|
- `src/user/PreferencesController.test.ts`
|
|
115
157
|
|