Repository navigation
Conversation
Bump `@trezor/connect-web` from `^9.6.0` to `^10.0.1`. Connect 10 runs
through Trezor Suite instead of the self-hosted iframe and popup.
- Rename `TrezorBridge.getPublicKey` to `ethereumGetPublicKey`, since
Connect 10 restricts `getPublicKey` to bitcoin-like coins
- Read unsuccessful responses from `error` (`{ message, code }`) instead
of `payload`
- Load the ESM-only `@trezor/connect-web` with a dynamic `import()` so it
works from both the CJS and ESM builds
- Drop the device event listener (`on` throws in Connect 10) and the
removed `lazyLoad` setting
BREAKING CHANGE: `TrezorBridge` implementations must provide
`ethereumGetPublicKey` instead of `getPublicKey`, and
`createErrorFromTrezorResponse` takes the response `error` instead of
its `payload`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Drop `@trezor/connect-plugin-ethereum`: Connect 10 computes the typed data hashes itself, so `TrezorBridge.ethereumSignTypedData` now takes `EthereumSignTypedData` params without `domain_separator_hash` and `message_hash` - Reject non-V4 typed data explicitly, which the plugin used to do - Remove the 1-second delay between unlocking and signing that avoided overlapping Connect 9 popups BREAKING CHANGE: `TrezorBridge.ethereumSignTypedData` no longer receives pre-computed typed data hashes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning MetaMask internal reviewing guidelines:
|
72e56ae to
c862770
Compare
Updates
@metamask/eth-trezor-keyringto@trezor/connect-web@^10.0.1. In Connect 10, calls go through Trezor Suite (desktop or web) instead of a self-hosted iframe and popup.The two commits can be reviewed separately:
1. Migrate to Connect 10
TrezorBridge.getPublicKeyis renamed toethereumGetPublicKey, because Connect 10 only allowsgetPublicKeyfor bitcoin-like coins.{ success: false, error: { message, code } }, socreateErrorFromTrezorResponseand the keyring readerrorinstead ofpayload.@trezor/connect-webis ESM-only, soTrezorConnectBridgeloads it with a dynamicimport().lazyLoadsetting are removed. Neither exists in Connect 10, soTrezorConnectBridge.modelstaysundefined.2. Remove Connect 9 workarounds
@trezor/connect-plugin-ethereumis dropped, because Connect 10 computes the EIP-712 hashes itself.signTypedDatastill rejects non-V4 data with the same error.Breaking changes:
TrezorBridgeimplementations must provideethereumGetPublicKey.ethereumSignTypedDatano longer receives pre-computed hashes.createErrorFromTrezorResponsetakes the responseerror.