@metamask-previews/assets-controllers 38.0.0-preview-cf09c0a → 38.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 +27 -1
  2. package/package.json +9 -9
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
+ ## [38.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
+ - Don't update currency rates on transient errors ([#4662](https://github.com/MetaMask/core/pull/4662))
28
+ - In `CurrencyRateController` if unexpected errors occur during requests to
29
+ crypto compare, the conversion rate in state will remain unchanged instead
30
+ of being set to null.
31
+ - Fix fallback conversion rate for token market data ([#4615](https://github.com/MetaMask/core/pull/4615))
32
+ - On networks where the native currency is not ETH, token market data is now
33
+ correctly priced in the native currency.
34
+
10
35
  ## [38.0.0]
11
36
 
12
37
  ### Added
@@ -1096,7 +1121,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1096
1121
 
1097
1122
  - Use Ethers for AssetsContractController ([#845](https://github.com/MetaMask/core/pull/845))
1098
1123
 
1099
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@38.0.0...HEAD
1124
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@38.0.1...HEAD
1125
+ [38.0.1]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@38.0.0...@metamask/assets-controllers@38.0.1
1100
1126
  [38.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@37.0.0...@metamask/assets-controllers@38.0.0
1101
1127
  [37.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@36.0.0...@metamask/assets-controllers@37.0.0
1102
1128
  [36.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@35.0.0...@metamask/assets-controllers@36.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/assets-controllers",
3
- "version": "38.0.0-preview-cf09c0a",
3
+ "version": "38.0.1-preview-e34879fb",
4
4
  "description": "Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -53,12 +53,12 @@
53
53
  "@ethersproject/contracts": "^5.7.0",
54
54
  "@ethersproject/providers": "^5.7.0",
55
55
  "@metamask/abi-utils": "^2.0.3",
56
- "@metamask/base-controller": "^7.0.0",
56
+ "@metamask/base-controller": "^7.0.1",
57
57
  "@metamask/contract-metadata": "^2.4.0",
58
- "@metamask/controller-utils": "^11.2.0",
58
+ "@metamask/controller-utils": "^11.3.0",
59
59
  "@metamask/eth-query": "^4.0.0",
60
60
  "@metamask/metamask-eth-abis": "^3.1.1",
61
- "@metamask/polling-controller": "^10.0.0",
61
+ "@metamask/polling-controller": "^10.0.1",
62
62
  "@metamask/rpc-errors": "^6.3.1",
63
63
  "@metamask/utils": "^9.1.0",
64
64
  "@types/bn.js": "^5.1.5",
@@ -73,14 +73,14 @@
73
73
  "uuid": "^8.3.2"
74
74
  },
75
75
  "devDependencies": {
76
- "@metamask/accounts-controller": "^18.2.0",
77
- "@metamask/approval-controller": "^7.0.3",
76
+ "@metamask/accounts-controller": "^18.2.1",
77
+ "@metamask/approval-controller": "^7.0.4",
78
78
  "@metamask/auto-changelog": "^3.4.4",
79
79
  "@metamask/ethjs-provider-http": "^0.3.0",
80
80
  "@metamask/keyring-api": "^8.1.0",
81
- "@metamask/keyring-controller": "^17.2.0",
82
- "@metamask/network-controller": "^21.0.0",
83
- "@metamask/preferences-controller": "^13.0.2",
81
+ "@metamask/keyring-controller": "^17.2.1",
82
+ "@metamask/network-controller": "^21.0.1",
83
+ "@metamask/preferences-controller": "^13.0.3",
84
84
  "@types/jest": "^27.4.1",
85
85
  "@types/lodash": "^4.14.191",
86
86
  "@types/node": "^16.18.54",