@metamask-previews/controller-utils 8.0.1-preview.fa529884 → 8.0.2-preview.56c80981

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