@metamask-previews/controller-utils 8.0.2-preview.8cdddaf → 8.0.2-preview.d392f46
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 +60 -0
- 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,33 +8,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
8
|
## [Unreleased]
|
|
8
9
|
|
|
9
10
|
## [8.0.2]
|
|
11
|
+
|
|
10
12
|
### Changed
|
|
13
|
+
|
|
11
14
|
- Bump `@metamask/utils` to `^8.3.0` ([#3769](https://github.com/MetaMask/core/pull/3769))
|
|
12
15
|
|
|
13
16
|
## [8.0.1]
|
|
17
|
+
|
|
14
18
|
### Changed
|
|
19
|
+
|
|
15
20
|
- There are no consumer-facing changes to this package. This version is a part of a synchronized release across all packages in our monorepo.
|
|
16
21
|
|
|
17
22
|
## [8.0.0]
|
|
23
|
+
|
|
18
24
|
### Changed
|
|
25
|
+
|
|
19
26
|
- **BREAKING**: `OPENSEA_PROXY_URL` now points to OpenSea's v2 API. `OPENSEA_API_URL` + `OPENSEA_TEST_API_URL` have been removed ([#3654](https://github.com/MetaMask/core/pull/3654))
|
|
20
27
|
|
|
21
28
|
## [7.0.0]
|
|
29
|
+
|
|
22
30
|
### Changed
|
|
31
|
+
|
|
23
32
|
- **BREAKING:** Make `safelyExecute` generic so they preserve types ([#3629](https://github.com/MetaMask/core/pull/3629))
|
|
24
33
|
- Update `successfulFetch` so that a URL instance can now be passed to it ([#3600](https://github.com/MetaMask/core/pull/3600))
|
|
25
34
|
- Update `handleFetch` so that a URL instance can now be passed to it ([#3600](https://github.com/MetaMask/core/pull/3600))
|
|
26
35
|
|
|
27
36
|
## [6.1.0]
|
|
37
|
+
|
|
28
38
|
### Added
|
|
39
|
+
|
|
29
40
|
- Add `isInfuraNetworkType` type guard for `InfuraNetworkType` ([#2055](https://github.com/MetaMask/core/pull/2055))
|
|
30
41
|
|
|
31
42
|
### Fixed
|
|
43
|
+
|
|
32
44
|
- Restore missing dependency `eth-query`([#3578](https://github.com/MetaMask/core/pull/3578))
|
|
33
45
|
- This was mistakenly recategorized as a devDependency in v6.0.0
|
|
34
46
|
|
|
35
47
|
## [6.0.0]
|
|
48
|
+
|
|
36
49
|
### Changed
|
|
50
|
+
|
|
37
51
|
- **BREAKING:** Bump `@metamask/eth-query` to ^4.0.0 ([#2028](https://github.com/MetaMask/core/pull/2028))
|
|
38
52
|
- This affects `query`: the `sendAsync` method on the given EthQuery must now have a narrower type
|
|
39
53
|
- Bump `@metamask/utils` from ^8.1.0 to ^8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957))
|
|
@@ -41,66 +55,91 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
41
55
|
- Replace `ethjs-unit` ^0.1.6 with `@metamask/ethjs-unit` ^0.2.1 ([#2064](https://github.com/MetaMask/core/pull/2064))
|
|
42
56
|
|
|
43
57
|
### Fixed
|
|
58
|
+
|
|
44
59
|
- Move `@metamask/eth-query` from a development dependency to a runtime dependency ([#1815](https://github.com/MetaMask/core/pull/1815))
|
|
45
60
|
|
|
46
61
|
## [5.0.2]
|
|
62
|
+
|
|
47
63
|
### Changed
|
|
64
|
+
|
|
48
65
|
- Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639))
|
|
49
66
|
- Move `eth-rpc-errors@^4.0.2` dependency to `@metamask/rpc-errors@^6.0.2` ([#1743](https://github.com/MetaMask/core/pull/1743))
|
|
50
67
|
|
|
51
68
|
### Fixed
|
|
69
|
+
|
|
52
70
|
- Update linea goerli explorer url ([#1666](https://github.com/MetaMask/core/pull/1666))
|
|
53
71
|
|
|
54
72
|
## [5.0.1]
|
|
73
|
+
|
|
55
74
|
### Changed
|
|
75
|
+
|
|
56
76
|
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
|
|
57
77
|
|
|
58
78
|
## [5.0.0]
|
|
79
|
+
|
|
59
80
|
### Changed
|
|
81
|
+
|
|
60
82
|
- **BREAKING**: Rename `NETWORK_ID_TO_ETHERS_NETWORK_NAME_MAP` to `CHAIN_ID_TO_ETHERS_NETWORK_NAME_MAP` ([#1633](https://github.com/MetaMask/core/pull/1633))
|
|
61
83
|
- Change it to a map of `Hex` chain ID to `BuiltInNetworkName`
|
|
62
84
|
|
|
63
85
|
### Removed
|
|
86
|
+
|
|
64
87
|
- **BREAKING**: Remove `NetworkId` constant and type ([#1633](https://github.com/MetaMask/core/pull/1633))
|
|
65
88
|
|
|
66
89
|
## [4.3.2]
|
|
90
|
+
|
|
67
91
|
### Changed
|
|
92
|
+
|
|
68
93
|
- There are no consumer-facing changes to this package. This version is a part of a synchronized release across all packages in our monorepo.
|
|
69
94
|
|
|
70
95
|
## [4.3.1]
|
|
96
|
+
|
|
71
97
|
### Changed
|
|
98
|
+
|
|
72
99
|
- Replace `eth-query` ^2.1.2 with `@metamask/eth-query` ^3.0.1 ([#1546](https://github.com/MetaMask/core/pull/1546))
|
|
73
100
|
|
|
74
101
|
## [4.3.0]
|
|
102
|
+
|
|
75
103
|
### Changed
|
|
104
|
+
|
|
76
105
|
- Update `@metamask/utils` to `^6.2.0` ([#1514](https://github.com/MetaMask/core/pull/1514))
|
|
77
106
|
- Remove unnecessary `babel-runtime` dependency ([#1504](https://github.com/MetaMask/core/pull/1504))
|
|
78
107
|
|
|
79
108
|
## [4.2.0]
|
|
109
|
+
|
|
80
110
|
### Added
|
|
111
|
+
|
|
81
112
|
- Add support for Linea networks ([#1423](https://github.com/MetaMask/core/pull/1423))
|
|
82
113
|
- Add `LINEA_GOERLI` to `TESTNET_TICKER_SYMBOLS` map
|
|
83
114
|
- Add `linea-goerli` and `linea-mainnet` to `BUILT_IN_NETWORKS` map, as well as `NetworkType`, `InfuraNetworkType`, `ChainId`, and `NetworkId `enums
|
|
84
115
|
- Add `LineaGoerli` and `LineaMainnet` to `BuiltInNetworkName` enum
|
|
85
116
|
|
|
86
117
|
## [4.1.0]
|
|
118
|
+
|
|
87
119
|
### Added
|
|
120
|
+
|
|
88
121
|
- Add approval types for result pages ([#1442](https://github.com/MetaMask/core/pull/1442))
|
|
89
122
|
|
|
90
123
|
## [4.0.1]
|
|
124
|
+
|
|
91
125
|
### Changed
|
|
126
|
+
|
|
92
127
|
- Add dependencies `eth-query` and `babel-runtime` ([#1447](https://github.com/MetaMask/core/pull/1447))
|
|
93
128
|
|
|
94
129
|
### Fixed
|
|
130
|
+
|
|
95
131
|
- Fix bug where query function failed to call built-in EthQuery methods ([#1447](https://github.com/MetaMask/core/pull/1447))
|
|
96
132
|
|
|
97
133
|
## [4.0.0]
|
|
134
|
+
|
|
98
135
|
### Added
|
|
136
|
+
|
|
99
137
|
- Add constants `BuiltInNetwork` and `ChainId` ([#1354](https://github.com/MetaMask/core/pull/1354))
|
|
100
138
|
- Add Aurora network to the `ChainId` constant ([#1327](https://github.com/MetaMask/core/pull/1327))
|
|
101
139
|
- Add `InfuraNetworkType` enum ([#1264](https://github.com/MetaMask/core/pull/1264))
|
|
102
140
|
|
|
103
141
|
### Changed
|
|
142
|
+
|
|
104
143
|
- **BREAKING:** Bump to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262))
|
|
105
144
|
- **BREAKING:** The `isSafeChainId` chain ID parameter is now type `Hex` rather than `number` ([#1367](https://github.com/MetaMask/core/pull/1367))
|
|
106
145
|
- **BREAKING:** The `ChainId` enum and the `GANACHE_CHAIN_ID` constant are now formatted as 0x-prefixed hex strings rather than as decimal strings. ([#1367](https://github.com/MetaMask/core/pull/1367))
|
|
@@ -109,6 +148,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
109
148
|
- Bump @metamask/utils from 5.0.1 to 5.0.2 ([#1271](https://github.com/MetaMask/core/pull/1271))
|
|
110
149
|
|
|
111
150
|
### Removed
|
|
151
|
+
|
|
112
152
|
- **BREAKING:** Remove `Json` type ([#1370](https://github.com/MetaMask/core/pull/1370))
|
|
113
153
|
- **BREAKING:** Remove `NetworksChainId` constant ([#1354](https://github.com/MetaMask/core/pull/1354))
|
|
114
154
|
- Use the new `ChainId` constant or the pre-existing `NetworkId` constant instead
|
|
@@ -121,53 +161,72 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
121
161
|
- We didn't discover this until many releases later, which is why this happened in a minor release
|
|
122
162
|
|
|
123
163
|
## [3.4.0] [DEPRECATED]
|
|
164
|
+
|
|
124
165
|
### Added
|
|
166
|
+
|
|
125
167
|
- add WalletConnect in approval type ([#1240](https://github.com/MetaMask/core/pull/1240))
|
|
126
168
|
|
|
127
169
|
## [3.3.0] [DEPRECATED]
|
|
170
|
+
|
|
128
171
|
### Added
|
|
172
|
+
|
|
129
173
|
- Add Sign-in-with-Ethereum origin validation ([#1163](https://github.com/MetaMask/core/pull/1163))
|
|
130
174
|
- Add `NetworkId` enum and `NETWORK_ID_TO_ETHERS_NETWORK_NAME_MAP` constant that includes entries for each built-in Infura network ([#1170](https://github.com/MetaMask/core/pull/1170))
|
|
131
175
|
|
|
132
176
|
## [3.2.0] [DEPRECATED]
|
|
177
|
+
|
|
133
178
|
### Added
|
|
179
|
+
|
|
134
180
|
- Add `ORIGIN_METAMASK` constant ([#1166](https://github.com/MetaMask/core/pull/1166))
|
|
135
181
|
- Add `ApprovalType` enum ([#1174](https://github.com/MetaMask/core/pull/1174))
|
|
136
182
|
|
|
137
183
|
### Changed
|
|
184
|
+
|
|
138
185
|
- Improve return type of `toHex` ([#1195](https://github.com/MetaMask/core/pull/1195))
|
|
139
186
|
|
|
140
187
|
## [3.1.0] [DEPRECATED]
|
|
188
|
+
|
|
141
189
|
### Added
|
|
190
|
+
|
|
142
191
|
- Add SIWE detection support for PersonalMessageManager ([#1139](https://github.com/MetaMask/core/pull/1139))
|
|
143
192
|
- Add `NetworkType` ([#1132](https://github.com/MetaMask/core/pull/1132))
|
|
144
193
|
- Add `isSafeChainId` ([#1064](https://github.com/MetaMask/core/pull/1064))
|
|
145
194
|
|
|
146
195
|
### Removed
|
|
196
|
+
|
|
147
197
|
- **BREAKING:** Remove constants `MAINNET` and `TESTNET_TICKER_SYMBOLS` ([#1132](https://github.com/MetaMask/core/pull/1132))
|
|
148
198
|
- We didn't discover this until many releases later, which is why this happened in a minor release
|
|
149
199
|
|
|
150
200
|
## [3.0.0]
|
|
201
|
+
|
|
151
202
|
### Removed
|
|
203
|
+
|
|
152
204
|
- **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106))
|
|
153
205
|
- Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch`
|
|
154
206
|
|
|
155
207
|
## [2.0.0]
|
|
208
|
+
|
|
156
209
|
### Added
|
|
210
|
+
|
|
157
211
|
- Add Sepolia-related constants ([#1041](https://github.com/MetaMask/controllers/pull/1041))
|
|
158
212
|
- Update `getBuyURL` function to return Sepolia faucet for Sepolia network ([#1041](https://github.com/MetaMask/controllers/pull/1041))
|
|
159
213
|
|
|
160
214
|
### Changed
|
|
215
|
+
|
|
161
216
|
- **BREAKING:**: Migrate from `metaswap` to `metafi` subdomain for OpenSea proxy ([#1060](https://github.com/MetaMask/core/pull/1060))
|
|
162
217
|
- Rename this repository to `core` ([#1031](https://github.com/MetaMask/controllers/pull/1031))
|
|
163
218
|
|
|
164
219
|
### Removed
|
|
220
|
+
|
|
165
221
|
- **BREAKING:** Remove all constants associated with Ropsten, Rinkeby, and Kovan ([#1041](https://github.com/MetaMask/controllers/pull/1041))
|
|
166
222
|
- **BREAKING:** Remove support for Ropsten, Rinkeby, and Kovan from `getBuyUrl` function ([#1041](https://github.com/MetaMask/controllers/pull/1041))
|
|
167
223
|
|
|
168
224
|
## [1.0.0]
|
|
225
|
+
|
|
169
226
|
### Added
|
|
227
|
+
|
|
170
228
|
- Initial release
|
|
229
|
+
|
|
171
230
|
- 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:
|
|
172
231
|
- `src/constants.ts` (but see below)
|
|
173
232
|
- `src/util.ts` (but see below)
|
|
@@ -175,6 +234,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
175
234
|
- `NetworkType` and `NetworkChainsId` from `src/network/NetworkController.ts` (via `types.ts`)
|
|
176
235
|
- `ESTIMATE_GAS_ERROR`, which used to be exported by `src/constants.ts`, is now available via the `@metamask/gas-fee-controller` package.
|
|
177
236
|
- A number of functions and types that were previously exported by `src/util.ts` are now available via other packages. Here's a breakdown of these exports and their new locations:
|
|
237
|
+
|
|
178
238
|
- `@metamask/assets-controllers`:
|
|
179
239
|
- `SupportedTokenDetectionNetworks`
|
|
180
240
|
- `addUrlProtocolPrefix`
|