@metamask/utils
Advanced tools
Changelog
[9.0.0]
getChecksumAddress
, numberToHex
, bigIntToHex
are narrowed from string
to Hex
(#193)@metamask/superstruct
from ^3.0.0
to ^3.1.0
(#194)
@metamask/utils
<=8.5.0
is used with @metamask/superstruct
>=3.1.0
the following error may be encountered:error TS2742: The inferred type of 'ExampleType' cannot be named without a reference to '@metamask/utils/node_modules/@metamask/superstruct'. This is likely not portable. A type annotation is necessary.
This can be resolved by updating @metamask/utils
to >=9.0.0
.Changelog
[8.5.0]
semver
from ^5.7.1
to ^7.6.0
(#181).superstruct
^1.0.3
with ESM-compatible @metamask/superstruct
^3.0.0
(#185).
Node16
or NodeNext
as its moduleResolution
option.exports
field in package.json
linked to these files. This is an anti-pattern and was rightfully flagged by the "Are the Types Wrong?" tool as "masquerading as CJS". All of the ATTW checks now pass.