-
-
Notifications
You must be signed in to change notification settings - Fork 254
Open
Labels
team-wallet-frameworkDeprecated: Please use `team-core-platform` instead.Deprecated: Please use `team-core-platform` instead.
Description
Motivation
- Upgrade to TypeScript v5.0 and set
module{,Resolution}option toNode16#3645 sets themoduleResolutionoption tonode16, which implies a target ofES2022.
Features
ES2022
Top-level-> not available to CJS modulesawaitexpressions- Important, because with
moduleResolutionset tonode16, we can only reference ESM-only modules using dynamic import syntax, which becomes much easier to write with top-levelawait.
- Important, because with
ES2021
String.prototype.replaceAll()Promise.any()
Regressions
- The
ErrorOptionstype defined in@metamask/approval-controllerneeds to be renamed, as it shadows a new global variable defined in theES2022.Errorlibrary.- Other exports from the package may also need to be renamed to present a consistent naming scheme.
- See https://github.com/MetaMask/core/actions/runs/9830120317/job/27135954759
Metadata
Metadata
Assignees
Labels
team-wallet-frameworkDeprecated: Please use `team-core-platform` instead.Deprecated: Please use `team-core-platform` instead.