@metamask-previews/selected-network-controller 18.0.0-preview-cf09c0a → 18.0.1-preview-e34879fb
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 +27 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [18.0.1]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Redirect domains to default endpoint ([#4679](https://github.com/MetaMask/core/pull/4679))
|
|
15
|
+
- When the default RPC endpoint changes for a network, domains that were
|
|
16
|
+
referencing a network client id on that network are redirected to the new
|
|
17
|
+
default RPC endpoint.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files ([#4648](https://github.com/MetaMask/core/pull/4648))
|
|
22
|
+
- Previously, this package shipped with only one variant of type declaration
|
|
23
|
+
files, and these files were only CommonJS-compatible, and the `exports`
|
|
24
|
+
field in `package.json` linked to these files. This is an anti-pattern and
|
|
25
|
+
was rightfully flagged by the
|
|
26
|
+
["Are the Types Wrong?"](https://arethetypeswrong.github.io/) tool as
|
|
27
|
+
["masquerading as CJS"](https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseCJS.md).
|
|
28
|
+
All of the ATTW checks now pass.
|
|
29
|
+
- Remove chunk files ([#4648](https://github.com/MetaMask/core/pull/4648)).
|
|
30
|
+
- Previously, the build tool we used to generate JavaScript files extracted
|
|
31
|
+
common code to "chunk" files. While this was intended to make this package
|
|
32
|
+
more tree-shakeable, it also made debugging more difficult for our
|
|
33
|
+
development teams. These chunk files are no longer present.
|
|
34
|
+
|
|
10
35
|
## [18.0.0]
|
|
11
36
|
|
|
12
37
|
### Changed
|
|
@@ -261,7 +286,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
261
286
|
|
|
262
287
|
- Initial Release ([#1643](https://github.com/MetaMask/core/pull/1643))
|
|
263
288
|
|
|
264
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@18.0.
|
|
289
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@18.0.1...HEAD
|
|
290
|
+
[18.0.1]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@18.0.0...@metamask/selected-network-controller@18.0.1
|
|
265
291
|
[18.0.0]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@17.0.0...@metamask/selected-network-controller@18.0.0
|
|
266
292
|
[17.0.0]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@16.0.0...@metamask/selected-network-controller@17.0.0
|
|
267
293
|
[16.0.0]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@15.0.2...@metamask/selected-network-controller@16.0.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/selected-network-controller",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.1-preview-e34879fb",
|
|
4
4
|
"description": "Provides an interface to the currently selected networkClientId for a given domain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@metamask/base-controller": "^7.0.
|
|
51
|
-
"@metamask/json-rpc-engine": "^9.0.
|
|
50
|
+
"@metamask/base-controller": "^7.0.1",
|
|
51
|
+
"@metamask/json-rpc-engine": "^9.0.3",
|
|
52
52
|
"@metamask/swappable-obj-proxy": "^2.2.0",
|
|
53
53
|
"@metamask/utils": "^9.1.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@metamask/auto-changelog": "^3.4.4",
|
|
57
|
-
"@metamask/network-controller": "^21.0.
|
|
58
|
-
"@metamask/permission-controller": "^11.0.
|
|
57
|
+
"@metamask/network-controller": "^21.0.1",
|
|
58
|
+
"@metamask/permission-controller": "^11.0.2",
|
|
59
59
|
"@types/jest": "^27.4.1",
|
|
60
60
|
"deepmerge": "^4.2.2",
|
|
61
61
|
"immer": "^9.0.6",
|