@metamask-previews/network-controller 21.0.0-preview-cf09c0a → 21.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +20 -1
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [21.0.1]
11
+
12
+ ### Fixed
13
+
14
+ - Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files ([#4648](https://github.com/MetaMask/core/pull/4648))
15
+ - Previously, this package shipped with only one variant of type declaration
16
+ files, and these files were only CommonJS-compatible, and the `exports`
17
+ field in `package.json` linked to these files. This is an anti-pattern and
18
+ was rightfully flagged by the
19
+ ["Are the Types Wrong?"](https://arethetypeswrong.github.io/) tool as
20
+ ["masquerading as CJS"](https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseCJS.md).
21
+ All of the ATTW checks now pass.
22
+ - Remove chunk files ([#4648](https://github.com/MetaMask/core/pull/4648)).
23
+ - Previously, the build tool we used to generate JavaScript files extracted
24
+ common code to "chunk" files. While this was intended to make this package
25
+ more tree-shakeable, it also made debugging more difficult for our
26
+ development teams. These chunk files are no longer present.
27
+
10
28
  ## [21.0.0]
11
29
 
12
30
  ### Added
@@ -605,7 +623,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
605
623
 
606
624
  All changes listed after this point were applied to this package following the monorepo conversion.
607
625
 
608
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@21.0.0...HEAD
626
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@21.0.1...HEAD
627
+ [21.0.1]: https://github.com/MetaMask/core/compare/@metamask/network-controller@21.0.0...@metamask/network-controller@21.0.1
609
628
  [21.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@20.2.0...@metamask/network-controller@21.0.0
610
629
  [20.2.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@20.1.0...@metamask/network-controller@20.2.0
611
630
  [20.1.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@20.0.0...@metamask/network-controller@20.1.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/network-controller",
3
- "version": "21.0.0-preview-cf09c0a",
3
+ "version": "21.0.1-preview-e34879fb",
4
4
  "description": "Provides an interface to the currently selected network via a MetaMask-compatible provider object",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -47,14 +47,14 @@
47
47
  "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
48
48
  },
49
49
  "dependencies": {
50
- "@metamask/base-controller": "^7.0.0",
51
- "@metamask/controller-utils": "^11.2.0",
50
+ "@metamask/base-controller": "^7.0.1",
51
+ "@metamask/controller-utils": "^11.3.0",
52
52
  "@metamask/eth-block-tracker": "^10.0.0",
53
53
  "@metamask/eth-json-rpc-infura": "^9.1.0",
54
54
  "@metamask/eth-json-rpc-middleware": "^13.0.0",
55
- "@metamask/eth-json-rpc-provider": "^4.1.3",
55
+ "@metamask/eth-json-rpc-provider": "^4.1.4",
56
56
  "@metamask/eth-query": "^4.0.0",
57
- "@metamask/json-rpc-engine": "^9.0.2",
57
+ "@metamask/json-rpc-engine": "^9.0.3",
58
58
  "@metamask/rpc-errors": "^6.3.1",
59
59
  "@metamask/swappable-obj-proxy": "^2.2.0",
60
60
  "@metamask/utils": "^9.1.0",