@trezor/connect 10.0.0-alpha.1 → 10.0.0-beta.2

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 (432) hide show
  1. package/CHANGELOG.md +159 -63
  2. package/README.md +5 -3
  3. package/lib/exports.d.ts +1 -0
  4. package/lib/exports.js +1 -0
  5. package/lib/impl/core-in-module-native.d.ts +7 -0
  6. package/lib/impl/core-in-module-native.js +11 -0
  7. package/lib/impl/core-in-module-node.d.ts +8 -0
  8. package/lib/impl/core-in-module-node.js +12 -0
  9. package/lib/impl/core-in-module-web.d.ts +9 -0
  10. package/lib/impl/core-in-module-web.js +26 -0
  11. package/lib/index.browser.d.ts +7 -0
  12. package/lib/index.browser.js +10 -0
  13. package/lib/index.d.ts +4 -0
  14. package/lib/index.js +5 -0
  15. package/lib/index.native.d.ts +4 -0
  16. package/lib/index.native.js +5 -0
  17. package/package.json +30 -83
  18. package/libESM/api/applyFlags.d.mts +0 -20
  19. package/libESM/api/applyFlags.mjs +0 -36
  20. package/libESM/api/applySettings.d.mts +0 -20
  21. package/libESM/api/applySettings.mjs +0 -55
  22. package/libESM/api/authenticateDevice.d.mts +0 -9
  23. package/libESM/api/authenticateDevice.mjs +0 -108
  24. package/libESM/api/authorizeCoinjoin.d.mts +0 -11
  25. package/libESM/api/authorizeCoinjoin.mjs +0 -44
  26. package/libESM/api/backupDevice.d.mts +0 -19
  27. package/libESM/api/backupDevice.mjs +0 -36
  28. package/libESM/api/bitcoin/TransactionComposer.d.mts +0 -46
  29. package/libESM/api/bitcoin/TransactionComposer.mjs +0 -139
  30. package/libESM/api/bitcoin/createPendingTx.d.mts +0 -33
  31. package/libESM/api/bitcoin/createPendingTx.mjs +0 -54
  32. package/libESM/api/bitcoin/enhanceSignTx.d.mts +0 -2
  33. package/libESM/api/bitcoin/enhanceSignTx.mjs +0 -23
  34. package/libESM/api/bitcoin/index.d.mts +0 -9
  35. package/libESM/api/bitcoin/index.mjs +0 -9
  36. package/libESM/api/bitcoin/inputs.d.mts +0 -6
  37. package/libESM/api/bitcoin/inputs.mjs +0 -75
  38. package/libESM/api/bitcoin/outputs.d.mts +0 -5
  39. package/libESM/api/bitcoin/outputs.mjs +0 -128
  40. package/libESM/api/bitcoin/refTx.d.mts +0 -17
  41. package/libESM/api/bitcoin/refTx.mjs +0 -252
  42. package/libESM/api/bitcoin/signtx.d.mts +0 -22
  43. package/libESM/api/bitcoin/signtx.mjs +0 -213
  44. package/libESM/api/bitcoin/signtxLegacy.d.mts +0 -3
  45. package/libESM/api/bitcoin/signtxLegacy.mjs +0 -179
  46. package/libESM/api/bitcoin/signtxVerify.d.mts +0 -12
  47. package/libESM/api/bitcoin/signtxVerify.mjs +0 -86
  48. package/libESM/api/bitcoin/transactionBytes.d.mts +0 -3
  49. package/libESM/api/bitcoin/transactionBytes.mjs +0 -65
  50. package/libESM/api/bleUnpair.d.mts +0 -11
  51. package/libESM/api/bleUnpair.mjs +0 -35
  52. package/libESM/api/blockchainDisconnect.d.mts +0 -16
  53. package/libESM/api/blockchainDisconnect.mjs +0 -39
  54. package/libESM/api/blockchainEstimateFee.d.mts +0 -14
  55. package/libESM/api/blockchainEstimateFee.mjs +0 -106
  56. package/libESM/api/blockchainEvmRpcCall.d.mts +0 -17
  57. package/libESM/api/blockchainEvmRpcCall.mjs +0 -61
  58. package/libESM/api/blockchainGetAccountBalanceHistory.d.mts +0 -14
  59. package/libESM/api/blockchainGetAccountBalanceHistory.mjs +0 -64
  60. package/libESM/api/blockchainGetContractInfo.d.mts +0 -14
  61. package/libESM/api/blockchainGetContractInfo.mjs +0 -50
  62. package/libESM/api/blockchainGetCurrentFiatRates.d.mts +0 -18
  63. package/libESM/api/blockchainGetCurrentFiatRates.mjs +0 -53
  64. package/libESM/api/blockchainGetFiatRatesForTimestamps.d.mts +0 -21
  65. package/libESM/api/blockchainGetFiatRatesForTimestamps.mjs +0 -59
  66. package/libESM/api/blockchainGetInfo.d.mts +0 -13
  67. package/libESM/api/blockchainGetInfo.mjs +0 -41
  68. package/libESM/api/blockchainGetTransactions.d.mts +0 -15
  69. package/libESM/api/blockchainGetTransactions.mjs +0 -47
  70. package/libESM/api/blockchainSetCustomBackend.d.mts +0 -13
  71. package/libESM/api/blockchainSetCustomBackend.mjs +0 -41
  72. package/libESM/api/blockchainSubscribe.d.mts +0 -17
  73. package/libESM/api/blockchainSubscribe.mjs +0 -68
  74. package/libESM/api/blockchainSubscribeFiatRates.d.mts +0 -17
  75. package/libESM/api/blockchainSubscribeFiatRates.mjs +0 -47
  76. package/libESM/api/blockchainUnsubscribe.d.mts +0 -17
  77. package/libESM/api/blockchainUnsubscribe.mjs +0 -68
  78. package/libESM/api/blockchainUnsubscribeFiatRates.d.mts +0 -15
  79. package/libESM/api/blockchainUnsubscribeFiatRates.mjs +0 -41
  80. package/libESM/api/blockchainValidateEvmRpcUrl.d.mts +0 -17
  81. package/libESM/api/blockchainValidateEvmRpcUrl.mjs +0 -54
  82. package/libESM/api/cancelCoinjoinAuthorization.d.mts +0 -11
  83. package/libESM/api/cancelCoinjoinAuthorization.mjs +0 -31
  84. package/libESM/api/cardano/api/cardanoComposeTransaction.d.mts +0 -10
  85. package/libESM/api/cardano/api/cardanoComposeTransaction.mjs +0 -79
  86. package/libESM/api/cardano/api/cardanoGetAddress.d.mts +0 -30
  87. package/libESM/api/cardano/api/cardanoGetAddress.mjs +0 -116
  88. package/libESM/api/cardano/api/cardanoGetNativeScriptHash.d.mts +0 -12
  89. package/libESM/api/cardano/api/cardanoGetNativeScriptHash.mjs +0 -66
  90. package/libESM/api/cardano/api/cardanoGetPublicKey.d.mts +0 -20
  91. package/libESM/api/cardano/api/cardanoGetPublicKey.mjs +0 -72
  92. package/libESM/api/cardano/api/cardanoSignMessage.d.mts +0 -27
  93. package/libESM/api/cardano/api/cardanoSignMessage.mjs +0 -96
  94. package/libESM/api/cardano/api/cardanoSignTransaction.d.mts +0 -81
  95. package/libESM/api/cardano/api/cardanoSignTransaction.mjs +0 -298
  96. package/libESM/api/cardano/api/index.d.mts +0 -6
  97. package/libESM/api/cardano/api/index.mjs +0 -6
  98. package/libESM/api/cardano/cardanoAddressParameters.d.mts +0 -6
  99. package/libESM/api/cardano/cardanoAddressParameters.mjs +0 -79
  100. package/libESM/api/cardano/cardanoAuxiliaryData.d.mts +0 -4
  101. package/libESM/api/cardano/cardanoAuxiliaryData.mjs +0 -74
  102. package/libESM/api/cardano/cardanoCertificate.d.mts +0 -13
  103. package/libESM/api/cardano/cardanoCertificate.mjs +0 -142
  104. package/libESM/api/cardano/cardanoInputs.d.mts +0 -25
  105. package/libESM/api/cardano/cardanoInputs.mjs +0 -39
  106. package/libESM/api/cardano/cardanoOutputs.d.mts +0 -40
  107. package/libESM/api/cardano/cardanoOutputs.mjs +0 -70
  108. package/libESM/api/cardano/cardanoTokenBundle.d.mts +0 -12
  109. package/libESM/api/cardano/cardanoTokenBundle.mjs +0 -21
  110. package/libESM/api/cardano/cardanoUtils.d.mts +0 -9
  111. package/libESM/api/cardano/cardanoUtils.mjs +0 -101
  112. package/libESM/api/cardano/cardanoWitnesses.d.mts +0 -4
  113. package/libESM/api/cardano/cardanoWitnesses.mjs +0 -47
  114. package/libESM/api/changeLanguage.d.mts +0 -18
  115. package/libESM/api/changeLanguage.mjs +0 -47
  116. package/libESM/api/changePin.d.mts +0 -11
  117. package/libESM/api/changePin.mjs +0 -25
  118. package/libESM/api/changeWipeCode.d.mts +0 -11
  119. package/libESM/api/changeWipeCode.mjs +0 -27
  120. package/libESM/api/cipherKeyValue.d.mts +0 -15
  121. package/libESM/api/cipherKeyValue.mjs +0 -51
  122. package/libESM/api/common/AbstractMiscGetAddress.d.mts +0 -35
  123. package/libESM/api/common/AbstractMiscGetAddress.mjs +0 -102
  124. package/libESM/api/common/Discovery.d.mts +0 -33
  125. package/libESM/api/common/Discovery.mjs +0 -116
  126. package/libESM/api/common/paramsValidator.d.mts +0 -23
  127. package/libESM/api/common/paramsValidator.mjs +0 -134
  128. package/libESM/api/common/requestExistingAccounts.d.mts +0 -9
  129. package/libESM/api/common/requestExistingAccounts.mjs +0 -20
  130. package/libESM/api/composeTransaction.d.mts +0 -36
  131. package/libESM/api/composeTransaction.mjs +0 -386
  132. package/libESM/api/discoverAccounts.d.mts +0 -38
  133. package/libESM/api/discoverAccounts.mjs +0 -363
  134. package/libESM/api/ethereum/api/ethereumGetAddress.d.mts +0 -28
  135. package/libESM/api/ethereum/api/ethereumGetAddress.mjs +0 -135
  136. package/libESM/api/ethereum/api/ethereumGetPublicKey.d.mts +0 -48
  137. package/libESM/api/ethereum/api/ethereumGetPublicKey.mjs +0 -90
  138. package/libESM/api/ethereum/api/ethereumSignMessage.d.mts +0 -27
  139. package/libESM/api/ethereum/api/ethereumSignMessage.mjs +0 -64
  140. package/libESM/api/ethereum/api/ethereumSignTransaction.d.mts +0 -83
  141. package/libESM/api/ethereum/api/ethereumSignTransaction.mjs +0 -148
  142. package/libESM/api/ethereum/api/ethereumSignTypedData.d.mts +0 -116
  143. package/libESM/api/ethereum/api/ethereumSignTypedData.mjs +0 -202
  144. package/libESM/api/ethereum/api/ethereumVerifyMessage.d.mts +0 -12
  145. package/libESM/api/ethereum/api/ethereumVerifyMessage.mjs +0 -33
  146. package/libESM/api/ethereum/api/index.d.mts +0 -6
  147. package/libESM/api/ethereum/api/index.mjs +0 -6
  148. package/libESM/api/ethereum/ethereumDefinitions.d.mts +0 -46
  149. package/libESM/api/ethereum/ethereumDefinitions.mjs +0 -103
  150. package/libESM/api/ethereum/ethereumSignTx.d.mts +0 -20
  151. package/libESM/api/ethereum/ethereumSignTx.mjs +0 -131
  152. package/libESM/api/ethereum/ethereumSignTypedData.d.mts +0 -32
  153. package/libESM/api/ethereum/ethereumSignTypedData.mjs +0 -169
  154. package/libESM/api/evoluGetDelegatedIdentityKey.d.mts +0 -14
  155. package/libESM/api/evoluGetDelegatedIdentityKey.mjs +0 -26
  156. package/libESM/api/evoluGetNode.d.mts +0 -13
  157. package/libESM/api/evoluGetNode.mjs +0 -27
  158. package/libESM/api/evoluSignRegistrationRequest.d.mts +0 -15
  159. package/libESM/api/evoluSignRegistrationRequest.mjs +0 -31
  160. package/libESM/api/firmware/calculateFirmwareHash.d.mts +0 -13
  161. package/libESM/api/firmware/calculateFirmwareHash.mjs +0 -56
  162. package/libESM/api/firmware/calculateXPubHash.d.mts +0 -10
  163. package/libESM/api/firmware/calculateXPubHash.mjs +0 -14
  164. package/libESM/api/firmware/getBinary.d.mts +0 -10
  165. package/libESM/api/firmware/getBinary.mjs +0 -33
  166. package/libESM/api/firmware/index.d.mts +0 -6
  167. package/libESM/api/firmware/index.mjs +0 -6
  168. package/libESM/api/firmware/modifyFirmware.d.mts +0 -3
  169. package/libESM/api/firmware/modifyFirmware.mjs +0 -13
  170. package/libESM/api/firmware/parseFirmwareHeaders.d.mts +0 -4
  171. package/libESM/api/firmware/parseFirmwareHeaders.mjs +0 -26
  172. package/libESM/api/firmware/uploadFirmware.d.mts +0 -19
  173. package/libESM/api/firmware/uploadFirmware.mjs +0 -99
  174. package/libESM/api/firmware/verifyEntropy.d.mts +0 -18
  175. package/libESM/api/firmware/verifyEntropy.mjs +0 -107
  176. package/libESM/api/getAccountInfo.d.mts +0 -94
  177. package/libESM/api/getAccountInfo.mjs +0 -385
  178. package/libESM/api/getAddress.d.mts +0 -39
  179. package/libESM/api/getAddress.mjs +0 -142
  180. package/libESM/api/getCoinInfo.d.mts +0 -148
  181. package/libESM/api/getCoinInfo.mjs +0 -29
  182. package/libESM/api/getDeviceState.d.mts +0 -8
  183. package/libESM/api/getDeviceState.mjs +0 -16
  184. package/libESM/api/getFeatures.d.mts +0 -70
  185. package/libESM/api/getFeatures.mjs +0 -20
  186. package/libESM/api/getFirmwareHash.d.mts +0 -11
  187. package/libESM/api/getFirmwareHash.mjs +0 -27
  188. package/libESM/api/getNonce.d.mts +0 -10
  189. package/libESM/api/getNonce.mjs +0 -16
  190. package/libESM/api/getOwnershipId.d.mts +0 -15
  191. package/libESM/api/getOwnershipId.mjs +0 -79
  192. package/libESM/api/getOwnershipProof.d.mts +0 -15
  193. package/libESM/api/getOwnershipProof.mjs +0 -86
  194. package/libESM/api/getPublicKey.d.mts +0 -50
  195. package/libESM/api/getPublicKey.mjs +0 -88
  196. package/libESM/api/getSettings.d.mts +0 -8
  197. package/libESM/api/getSettings.mjs +0 -15
  198. package/libESM/api/index.d.mts +0 -59
  199. package/libESM/api/index.mjs +0 -59
  200. package/libESM/api/loadDevice.d.mts +0 -16
  201. package/libESM/api/loadDevice.mjs +0 -44
  202. package/libESM/api/monero/api/index.d.mts +0 -4
  203. package/libESM/api/monero/api/index.mjs +0 -4
  204. package/libESM/api/monero/api/moneroGetAddress.d.mts +0 -30
  205. package/libESM/api/monero/api/moneroGetAddress.mjs +0 -109
  206. package/libESM/api/monero/api/moneroGetWatchKey.d.mts +0 -14
  207. package/libESM/api/monero/api/moneroGetWatchKey.mjs +0 -44
  208. package/libESM/api/monero/api/moneroKeyImageSync.d.mts +0 -17
  209. package/libESM/api/monero/api/moneroKeyImageSync.mjs +0 -127
  210. package/libESM/api/monero/api/moneroSignTransaction.d.mts +0 -17
  211. package/libESM/api/monero/api/moneroSignTransaction.mjs +0 -202
  212. package/libESM/api/pingDevice.d.mts +0 -11
  213. package/libESM/api/pingDevice.mjs +0 -27
  214. package/libESM/api/pushTransaction.d.mts +0 -17
  215. package/libESM/api/pushTransaction.mjs +0 -42
  216. package/libESM/api/recoveryDevice.d.mts +0 -20
  217. package/libESM/api/recoveryDevice.mjs +0 -50
  218. package/libESM/api/requestLogin.d.mts +0 -14
  219. package/libESM/api/requestLogin.mjs +0 -48
  220. package/libESM/api/resetDevice.d.mts +0 -22
  221. package/libESM/api/resetDevice.mjs +0 -131
  222. package/libESM/api/ripple/api/index.d.mts +0 -2
  223. package/libESM/api/ripple/api/index.mjs +0 -2
  224. package/libESM/api/ripple/api/rippleGetAddress.d.mts +0 -15
  225. package/libESM/api/ripple/api/rippleGetAddress.mjs +0 -22
  226. package/libESM/api/ripple/api/rippleSignTransaction.d.mts +0 -13
  227. package/libESM/api/ripple/api/rippleSignTransaction.mjs +0 -52
  228. package/libESM/api/setBrightness.d.mts +0 -12
  229. package/libESM/api/setBrightness.mjs +0 -26
  230. package/libESM/api/setBusy.d.mts +0 -11
  231. package/libESM/api/setBusy.mjs +0 -32
  232. package/libESM/api/showDeviceTutorial.d.mts +0 -11
  233. package/libESM/api/showDeviceTutorial.mjs +0 -21
  234. package/libESM/api/signMessage.d.mts +0 -25
  235. package/libESM/api/signMessage.mjs +0 -71
  236. package/libESM/api/signTransaction.d.mts +0 -197
  237. package/libESM/api/signTransaction.mjs +0 -334
  238. package/libESM/api/solana/api/index.d.mts +0 -4
  239. package/libESM/api/solana/api/index.mjs +0 -4
  240. package/libESM/api/solana/api/solanaComposeTransaction.d.mts +0 -31
  241. package/libESM/api/solana/api/solanaComposeTransaction.mjs +0 -76
  242. package/libESM/api/solana/api/solanaGetAddress.d.mts +0 -15
  243. package/libESM/api/solana/api/solanaGetAddress.mjs +0 -22
  244. package/libESM/api/solana/api/solanaGetPublicKey.d.mts +0 -28
  245. package/libESM/api/solana/api/solanaGetPublicKey.mjs +0 -67
  246. package/libESM/api/solana/api/solanaSignTransaction.d.mts +0 -41
  247. package/libESM/api/solana/api/solanaSignTransaction.mjs +0 -203
  248. package/libESM/api/solana/solanaDefinitions.d.mts +0 -7
  249. package/libESM/api/solana/solanaDefinitions.mjs +0 -33
  250. package/libESM/api/stellar/api/index.d.mts +0 -2
  251. package/libESM/api/stellar/api/index.mjs +0 -2
  252. package/libESM/api/stellar/api/stellarGetAddress.d.mts +0 -15
  253. package/libESM/api/stellar/api/stellarGetAddress.mjs +0 -22
  254. package/libESM/api/stellar/api/stellarSignTransaction.d.mts +0 -26
  255. package/libESM/api/stellar/api/stellarSignTransaction.mjs +0 -66
  256. package/libESM/api/stellar/stellarSignTx.d.mts +0 -7
  257. package/libESM/api/stellar/stellarSignTx.mjs +0 -191
  258. package/libESM/api/telemetryGet.d.mts +0 -14
  259. package/libESM/api/telemetryGet.mjs +0 -24
  260. package/libESM/api/tezos/api/index.d.mts +0 -3
  261. package/libESM/api/tezos/api/index.mjs +0 -3
  262. package/libESM/api/tezos/api/tezosGetAddress.d.mts +0 -15
  263. package/libESM/api/tezos/api/tezosGetAddress.mjs +0 -22
  264. package/libESM/api/tezos/api/tezosGetPublicKey.d.mts +0 -24
  265. package/libESM/api/tezos/api/tezosGetPublicKey.mjs +0 -66
  266. package/libESM/api/tezos/api/tezosSignTransaction.d.mts +0 -14
  267. package/libESM/api/tezos/api/tezosSignTransaction.mjs +0 -30
  268. package/libESM/api/tezos/tezosSignTx.d.mts +0 -71
  269. package/libESM/api/tezos/tezosSignTx.mjs +0 -204
  270. package/libESM/api/thpGetCredentials.d.mts +0 -13
  271. package/libESM/api/thpGetCredentials.mjs +0 -28
  272. package/libESM/api/thpRemoveCredentials.d.mts +0 -15
  273. package/libESM/api/thpRemoveCredentials.mjs +0 -42
  274. package/libESM/api/tron/api/index.d.mts +0 -3
  275. package/libESM/api/tron/api/index.mjs +0 -3
  276. package/libESM/api/tron/api/tronComposeTransaction.d.mts +0 -17
  277. package/libESM/api/tron/api/tronComposeTransaction.mjs +0 -51
  278. package/libESM/api/tron/api/tronGetAddress.d.mts +0 -15
  279. package/libESM/api/tron/api/tronGetAddress.mjs +0 -20
  280. package/libESM/api/tron/api/tronSignTransaction.d.mts +0 -19
  281. package/libESM/api/tron/api/tronSignTransaction.mjs +0 -129
  282. package/libESM/api/tron/tronEncode.d.mts +0 -12
  283. package/libESM/api/tron/tronEncode.mjs +0 -77
  284. package/libESM/api/tron/tronProtobuf.d.mts +0 -5
  285. package/libESM/api/tron/tronProtobuf.mjs +0 -28
  286. package/libESM/api/unlockPath.d.mts +0 -12
  287. package/libESM/api/unlockPath.mjs +0 -31
  288. package/libESM/api/verifyMessage.d.mts +0 -16
  289. package/libESM/api/verifyMessage.mjs +0 -46
  290. package/libESM/api/wipeDevice.d.mts +0 -21
  291. package/libESM/api/wipeDevice.mjs +0 -47
  292. package/libESM/backend/BackendManager.d.mts +0 -24
  293. package/libESM/backend/BackendManager.mjs +0 -137
  294. package/libESM/backend/Blockchain.d.mts +0 -81
  295. package/libESM/backend/Blockchain.mjs +0 -232
  296. package/libESM/backend/BlockchainLink.d.mts +0 -9
  297. package/libESM/backend/BlockchainLink.mjs +0 -13
  298. package/libESM/backend/fees/BitcoinFeeLevels.d.mts +0 -19
  299. package/libESM/backend/fees/BitcoinFeeLevels.mjs +0 -43
  300. package/libESM/backend/fees/EthereumFeeLevels.d.mts +0 -17
  301. package/libESM/backend/fees/EthereumFeeLevels.mjs +0 -52
  302. package/libESM/backend/fees/MiscFeeLevels.d.mts +0 -18
  303. package/libESM/backend/fees/MiscFeeLevels.mjs +0 -25
  304. package/libESM/backend/fees/index.d.mts +0 -5
  305. package/libESM/backend/fees/index.mjs +0 -30
  306. package/libESM/core/AbstractMethod.d.mts +0 -65
  307. package/libESM/core/AbstractMethod.mjs +0 -153
  308. package/libESM/core/index.d.mts +0 -27
  309. package/libESM/core/index.mjs +0 -795
  310. package/libESM/core/method.d.mts +0 -3
  311. package/libESM/core/method.mjs +0 -19
  312. package/libESM/core/method.native.d.mts +0 -2
  313. package/libESM/core/method.native.mjs +0 -29
  314. package/libESM/core/onCallFirmwareUpdate.d.mts +0 -39
  315. package/libESM/core/onCallFirmwareUpdate.mjs +0 -436
  316. package/libESM/data/coinInfo.d.mts +0 -374
  317. package/libESM/data/coinInfo.mjs +0 -183
  318. package/libESM/data/config.d.mts +0 -8
  319. package/libESM/data/config.mjs +0 -265
  320. package/libESM/data/defaultFeeLevels.d.mts +0 -18
  321. package/libESM/data/defaultFeeLevels.mjs +0 -174
  322. package/libESM/data/firmwareInfo.d.mts +0 -41
  323. package/libESM/data/firmwareInfo.mjs +0 -411
  324. package/libESM/data/firmwareReleaseStore.d.mts +0 -10
  325. package/libESM/data/firmwareReleaseStore.mjs +0 -16
  326. package/libESM/data/localFirmwareStore.d.mts +0 -3
  327. package/libESM/data/localFirmwareStore.mjs +0 -8
  328. package/libESM/data/protobufLoader.d.mts +0 -1
  329. package/libESM/data/protobufLoader.mjs +0 -29
  330. package/libESM/data/settingsStore.d.mts +0 -6
  331. package/libESM/data/settingsStore.mjs +0 -21
  332. package/libESM/device/Device.d.mts +0 -237
  333. package/libESM/device/Device.mjs +0 -729
  334. package/libESM/device/DeviceCommands.d.mts +0 -77
  335. package/libESM/device/DeviceCommands.mjs +0 -245
  336. package/libESM/device/DeviceCurrentSession.d.mts +0 -3208
  337. package/libESM/device/DeviceCurrentSession.mjs +0 -240
  338. package/libESM/device/DeviceList.d.mts +0 -68
  339. package/libESM/device/DeviceList.mjs +0 -246
  340. package/libESM/device/TransportList.d.mts +0 -9
  341. package/libESM/device/TransportList.mjs +0 -41
  342. package/libESM/device/TransportManager.d.mts +0 -30
  343. package/libESM/device/TransportManager.mjs +0 -142
  344. package/libESM/device/calculateRevisionForDevice.d.mts +0 -7
  345. package/libESM/device/calculateRevisionForDevice.mjs +0 -19
  346. package/libESM/device/checkFirmwareRevision.d.mts +0 -12
  347. package/libESM/device/checkFirmwareRevision.mjs +0 -75
  348. package/libESM/device/resolveDescriptorForTaproot.d.mts +0 -14
  349. package/libESM/device/resolveDescriptorForTaproot.mjs +0 -25
  350. package/libESM/device/thp/handshake.d.mts +0 -3
  351. package/libESM/device/thp/handshake.mjs +0 -100
  352. package/libESM/device/thp/index.d.mts +0 -5
  353. package/libESM/device/thp/index.mjs +0 -65
  354. package/libESM/device/thp/pairing.d.mts +0 -16
  355. package/libESM/device/thp/pairing.mjs +0 -237
  356. package/libESM/device/thp/session.d.mts +0 -2
  357. package/libESM/device/thp/session.mjs +0 -27
  358. package/libESM/device/thp/thpCall.d.mts +0 -40
  359. package/libESM/device/thp/thpCall.mjs +0 -58
  360. package/libESM/device/validateMessageSize.d.mts +0 -2
  361. package/libESM/device/validateMessageSize.mjs +0 -9
  362. package/libESM/device/workflow/changeLanguage.d.mts +0 -14
  363. package/libESM/device/workflow/changeLanguage.mjs +0 -59
  364. package/libESM/device/workflow/checkFirmwareHash.d.mts +0 -9
  365. package/libESM/device/workflow/checkFirmwareHash.mjs +0 -86
  366. package/libESM/device/workflow/checkFirmwareHashWithRetries.d.mts +0 -8
  367. package/libESM/device/workflow/checkFirmwareHashWithRetries.mjs +0 -36
  368. package/libESM/device/workflow/handshake.d.mts +0 -9
  369. package/libESM/device/workflow/handshake.mjs +0 -55
  370. package/libESM/device/workflow/trezorPushNotification.d.mts +0 -2
  371. package/libESM/device/workflow/trezorPushNotification.mjs +0 -73
  372. package/libESM/device/workflow/validateState.d.mts +0 -2
  373. package/libESM/device/workflow/validateState.mjs +0 -153
  374. package/libESM/events/ui-promise.d.mts +0 -22
  375. package/libESM/events/ui-promise.mjs +0 -1
  376. package/libESM/exports.d.mts +0 -3
  377. package/libESM/exports.mjs +0 -3
  378. package/libESM/impl/core-in-module.d.mts +0 -27
  379. package/libESM/impl/core-in-module.mjs +0 -173
  380. package/libESM/index.browser.d.mts +0 -9
  381. package/libESM/index.browser.mjs +0 -50
  382. package/libESM/index.d.mts +0 -6
  383. package/libESM/index.mjs +0 -32
  384. package/libESM/index.renderer.d.mts +0 -6
  385. package/libESM/index.renderer.mjs +0 -19
  386. package/libESM/tsconfig.libESM.tsbuildinfo +0 -1
  387. package/libESM/types/idevice.d.mts +0 -109
  388. package/libESM/types/idevice.mjs +0 -1
  389. package/libESM/types/typed-call-provider.d.mts +0 -29
  390. package/libESM/types/typed-call-provider.mjs +0 -1
  391. package/libESM/types/workflow.d.mts +0 -16
  392. package/libESM/types/workflow.mjs +0 -1
  393. package/libESM/utils/accountUtils.d.mts +0 -10
  394. package/libESM/utils/accountUtils.mjs +0 -83
  395. package/libESM/utils/addressUtils.d.mts +0 -2
  396. package/libESM/utils/addressUtils.mjs +0 -24
  397. package/libESM/utils/assetUtils.d.mts +0 -13
  398. package/libESM/utils/assetUtils.mjs +0 -56
  399. package/libESM/utils/assets.browser.d.mts +0 -1
  400. package/libESM/utils/assets.browser.mjs +0 -1
  401. package/libESM/utils/assets.d.mts +0 -2
  402. package/libESM/utils/assets.mjs +0 -13
  403. package/libESM/utils/assets.native.d.mts +0 -2
  404. package/libESM/utils/assets.native.mjs +0 -23
  405. package/libESM/utils/assetsTypes.d.mts +0 -5
  406. package/libESM/utils/assetsTypes.mjs +0 -1
  407. package/libESM/utils/buildOutputDescriptor.d.mts +0 -12
  408. package/libESM/utils/buildOutputDescriptor.mjs +0 -67
  409. package/libESM/utils/deviceFeaturesUtils.d.mts +0 -7
  410. package/libESM/utils/deviceFeaturesUtils.mjs +0 -109
  411. package/libESM/utils/ethereumUtils.d.mts +0 -3
  412. package/libESM/utils/ethereumUtils.mjs +0 -7
  413. package/libESM/utils/firmwareReleaseConfigUtils.d.mts +0 -19
  414. package/libESM/utils/firmwareReleaseConfigUtils.mjs +0 -131
  415. package/libESM/utils/firmwareUtils.d.mts +0 -13
  416. package/libESM/utils/firmwareUtils.mjs +0 -54
  417. package/libESM/utils/formatUtils.d.mts +0 -15
  418. package/libESM/utils/formatUtils.mjs +0 -45
  419. package/libESM/utils/hdnodeUtils.d.mts +0 -6
  420. package/libESM/utils/hdnodeUtils.mjs +0 -62
  421. package/libESM/utils/pathUtils.d.mts +0 -17
  422. package/libESM/utils/pathUtils.mjs +0 -141
  423. package/libESM/utils/paymentRequest.d.mts +0 -8
  424. package/libESM/utils/paymentRequest.mjs +0 -25
  425. package/libESM/utils/uiPromiseManager.d.mts +0 -8
  426. package/libESM/utils/uiPromiseManager.mjs +0 -51
  427. package/libESM/workers/workers.browser.d.mts +0 -10
  428. package/libESM/workers/workers.browser.mjs +0 -16
  429. package/libESM/workers/workers.d.mts +0 -10
  430. package/libESM/workers/workers.mjs +0 -8
  431. package/libESM/workers/workers.native.d.mts +0 -7
  432. package/libESM/workers/workers.native.mjs +0 -7
package/CHANGELOG.md CHANGED
@@ -1,63 +1,159 @@
1
- | Package | Stable | Canary |
2
- | :------------------------------: | :----: | :------------: |
3
- | npm @trezor/connect | - | 10.0.0-alpha.1 |
4
- | npm @trezor/connect-web | - | 10.0.0-alpha.1 |
5
- | npm @trezor/connect-webextension | - | 10.0.0-alpha.1 |
6
- | npm @trezor/connect-mobile | - | 10.0.0-alpha.1 |
7
-
8
- | Deployment | Stable | Canary |
9
- | :----------------: | :----: | :------------: |
10
- | connect.trezor.io/ | - | 10.0.0-alpha.1 |
11
-
12
- Use the persistent link [connect.trezor.io/10](https://connect.trezor.io/10/) to access the latest stable version of Connect Explorer.
13
-
14
- # 10.0.0-alpha.1
15
-
16
- First beta release of version 10.
17
- This version removes support for legacy iframe and popup integration methods and replaces them with new Suite-based integration.
18
-
19
- Features:
20
-
21
- - Tron support (`tronGetAddress`, `tronSignTransaction`)
22
- - `ethereumSignTypedData` now computes `domain_separator_hash` / `message_hash` internally for T1B1 firmware. Callers no longer need to pre-compute hashes via `@trezor/connect-plugin-ethereum`; passing only `data` works for all supported Trezor models. Caller-provided hashes still take precedence for backwards compatibility. Implementation is powered by `viem` and lives in the lazy-loaded ethereum chunk, so non-Ethereum consumers do not pay any bundle cost.
23
-
24
- Breaking changes:
25
-
26
- - `getAccountDescriptor` has been removed. The per-coin `*GetPublicKey` methods (`getPublicKey`, `ethereumGetPublicKey`, `cardanoGetPublicKey`, `solanaGetPublicKey`, `tezosGetPublicKey`) now return the same fields after the response-shape unification, so the dedicated descriptor entry point is no longer needed. Consumers that previously called `getAccountDescriptor` should call the appropriate `*GetPublicKey` for the target coin. TODO: exact field mapping (e.g. previous `payload.descriptor`) will be documented as part of the `*GetPublicKey` response-shape unification PR.
27
- - **`@trezor/connect` and every package in its dependency closure now ship ESM only.** Several transitive dependencies (`@noble/curves`, `@noble/hashes`, `@scure/base`, `@scure/bip39`, `@solana/kit`, `@solana-program/*`, `viem`, `node-fetch@3+`) are already ESM-only, so a CJS consumer of `@trezor/connect` cannot statically import them in any case. To keep the build pipeline consistent, the entire connect ecosystem follows suit: `@trezor/connect`, `@trezor/connect-web`, `@trezor/connect-webextension`, `@trezor/connect-mobile`, `@trezor/connect-common`, `@trezor/connect-data`, `@trezor/connect-plugin-ethereum`, `@trezor/connect-plugin-stellar`, `@trezor/blockchain-link`, `@trezor/blockchain-link-utils`, `@trezor/blockchain-link-types`, `@trezor/utxo-lib`, `@trezor/device-authenticity`, `@trezor/address-validator`, `@trezor/utils`, `@trezor/transport`, `@trezor/protobuf`, `@trezor/protocol`, `@trezor/schema-utils`, `@trezor/crypto-utils`, `@trezor/device-utils`, `@trezor/env-utils`, `@trezor/type-utils`, `@trezor/websocket-client`. Migration:
28
- - ESM consumer: replace `const TrezorConnect = require('@trezor/connect').default` with `import TrezorConnect from '@trezor/connect'`. Set `"type": "module"` in your `package.json` or use the `.mjs` extension.
29
- - CJS consumer that cannot migrate: use a dynamic import `const TrezorConnect = (await import('@trezor/connect')).default;` or stay on v9.
30
-
31
- Deprecations:
32
-
33
- - Remove connect-iframe and connect-popup integration
34
- - Remove EOS support
35
- - Remove NEM support
36
- - `@trezor/connect-plugin-ethereum` is deprecated. Its logic was inlined into `@trezor/connect`. When upgrading to Connect 10, drop your direct dependency on the plugin and remove manual `transformTypedData` calls. The 10.x release of the plugin is a stub that throws a deprecation error pointing at the migration.
37
-
38
- Commits:
39
-
40
- - chore: remove connect-iframe (372d11f819)
41
- - feat(connect): tronSignTransaction (57eec2f1a2)
42
- - feat(connect): tronGetAddress (f5a2bfb6cb)
43
- - chore(suite-native): remove deprecated node-libs-browser (5ff326e491)
44
- - test(connect): don't set up emu repeatedly if not necessary (55b93ac8e7)
45
- - chore: bump webpack-related deps (3f73273dba)
46
- - chore(connect): remove unsupported fixture (5acfbb81d5)
47
- - feat(connect): core-in-popup and iframe with popup modes are now removed (a902e2d3cb)
48
- - fix: use AccountDescriptor as branded type (47f2cc48d5)
49
- - feat(connect): remove EOS support (16da7214cc)
50
- - feat(connect): validation for sign message size for T1B1 (d1fb78727e)
51
- - feat(connect): remove NEM support (b9e7b55832)
52
- - refactor(connect): use CoreInModule directly (e9a5c47c7d)
53
- - refactor(connect): flatten TrezorConnectDynamic with CoreInModule (a8038c6a70)
54
- - chore(connect): move web module into main package (815158241a)
55
- - chore(connect): remove unsuppoted fixtures from txcache in tests (e5214e5706)
56
- - chore: bump prettier (3e33cbeee4)
57
- - ci(connect): expand npm install check to cover both ESM & CJS (c15485ed96)
58
- - chore(npm): start publishing source maps (36f6e9692d)
59
- - fix(connect): change THP phase after successful ThpEndResponse (66b6b03416)
60
- - chore(connect): move thp staticKey from ThpSettings to DeviceThpCredentials (6aa0bc6a06)
61
- - chore(device-authenticity): extract prepareDeviceAuthenticityData (2e061e4cc2)
62
- - chore(connect, blockchain-link): validate custom RPCs chainIds (8977871032)
63
- - feat(suite): implement evm-rpc worker into suite (cdf207e01f)
1
+ > **Upgrading from Connect 9?**
2
+ >
3
+ > - [Migration guide: Connect 9 → 10](https://connect.trezor.io/10.0.0-beta.2/guides/migrating-to-connect-10) — what you need to change in your code, as a checklist.
4
+ > - [New Connect flow in Trezor Suite](https://connect.trezor.io/10.0.0-beta.2/guides/new-connect-flow-in-trezor-suite) — how the Suite-hosted flow works and why.
5
+
6
+ | Package | Stable | Canary |
7
+ | :------------------------------: | :----: | :-----------: |
8
+ | npm @trezor/connect | 9.7.3 | 10.0.0-beta.2 |
9
+ | npm @trezor/connect-web | 9.7.3 | 10.0.0-beta.2 |
10
+ | npm @trezor/connect-webextension | 9.7.3 | 10.0.0-beta.2 |
11
+ | npm @trezor/connect-mobile | 9.7.3 | 10.0.0-beta.2 |
12
+
13
+ | Deployment | Stable | Canary |
14
+ | :----------------: | :----: | :-----------: |
15
+ | connect.trezor.io/ | 9.7.3 | 10.0.0-beta.2 |
16
+
17
+ Connect 10 has no stable release yet — use [connect.trezor.io/10.0.0-beta.2](https://connect.trezor.io/10.0.0-beta.2/) to access the prerelease version of Connect Explorer. Once Connect 10 is released, the persistent link [connect.trezor.io/10](https://connect.trezor.io/10/) will point to the latest stable version.
18
+
19
+ # 10.0.0-beta.2
20
+
21
+ An incremental prerelease on top of beta.1. It adds a handful of new methods (`sendTransaction`, `composePsbt`, `solanaSignMessage`), EIP-7702 and Stellar Soroban signing, and a Node entry point for `@trezor/connect` built on `@trezor/connect-core`, plus a batch of coin/backend fixes. It also carries several breaking changes — mostly to the UI-event and fee-selection channels used by custom-UI / host integrations, and to a couple of public method/result shapes — so read **Breaking since beta.1** before upgrading.
22
+
23
+ ## New & improved
24
+
25
+ - **`sendTransaction`** — new Bitcoin method that composes, signs and (optionally, `push`) broadcasts a transaction in one call. This is the replacement for `composeTransaction`'s old signing overload (see Breaking). (919967d6a43)
26
+ - **`composePsbt`** new device-less method that composes a Bitcoin transaction from PSBT data plus account addresses/UTXOs, returning a precomposed result with `version` and `locktime` (no permissions required). (019eada6052)
27
+ - **`solanaSignMessage`** new method to sign Solana off-chain messages (OCMS v1): plain text plus optional signer public keys, with the device serializing the envelope. (1611924b04b)
28
+ - **EIP-7702 signing.** `ethereumSignTransaction` now signs EIP-7702 set-code (type-4) transactions — pass `authorizationList` on an EIP-1559 transaction, and the parsed `authorizationList` is returned on the result. (6aeeda9b667)
29
+ - **Stellar Soroban.** `stellarSignTransaction` now supports the `InvokeHostFunction` operation (auth entries, `SorobanTransactionData` extension, full sint64 nonce precision), gated on firmware 2.12.4. (ea9b52e4402)
30
+ - **Node entry point.** `@trezor/connect` now ships a Node build (on top of `@trezor/connect-core`) that injects Bridge and NodeUSB transports by default, so a Node consumer can install only `@trezor/connect` and talk to a device over bridge or USB. Browser (`[bridge, WebUSB]`) and react-native (`[bridge]`) defaults are unchanged. (ce5690f82a7)
31
+ - **`FIRMWARE_TYPE_CHANGED`** — new UI event (payload `{ device }`) emitted during a firmware update when the installed firmware type changes. (c2e11a9572b)
32
+ - `signMessage` accepts an optional `scriptType` param that overrides the script type inferred from the derivation path (e.g. for custom purpose-45 paths). (390fdd4c819)
33
+ - `getAccountInfo` and `discoverAccounts` now accept index-less **root** derivation paths (min path length 2) for single-account coin types, e.g. the Solana root path. (31fe1d9f725)
34
+ - `getAccountInfo` and `blockchainEstimateFee` accept a new optional `privatePending` param (in-flight nonces/txids) for EVM blockbook discovery. (754da40740d)
35
+ - `@trezor/connect-common` now exports `GRANTABLE_PERMISSIONS`, the canonical allowlist of upfront-grantable permission scopes for building `requestedPermissions` UIs. (5a8804c06f9)
36
+ - New `test-unsigned-nightly` value on the public `FirmwareChannel` type (a nightly/dev release channel). (fe1eb6ac0ed)
37
+
38
+ ## Behavior & fixes
39
+
40
+ - **Named EVM inputs resolve to hex.** `getAccountInfo` now returns the backend-resolved hex address in `descriptor` for named EVM inputs (e.g. `.eth`), instead of echoing the name back. (de776b8cc76)
41
+ - **Pending BTC tx size.** The optimistic pending Bitcoin transaction now reports `size` in bytes (`byteLength`) instead of weight units (~4×), matching blockbook's byte-valued `size`. (2ec843049c0)
42
+ - **EVM slip44.** `getCoinInfo` now returns `slip44: 60` for every EVM network except ETC (61), rather than per-chain registry values — e.g. RHC and HYPE change from 4663/999 to 60. (8c4cbf2bf44)
43
+ - **`selectAccount` unsupported coins.** A Connect-valid but Suite-unmodeled coin (dash, dgb, xtz, testnets, …) is now rejected up front with the distinct `Method_UnsupportedCoinForHost` error instead of a generic modal. (2877a16d71d)
44
+ - **Manifest name sanitizing.** `manifest.appName` (and THP `hostName`) are sanitized control chars stripped, whitespace runs collapsed, trimmed; a name that becomes empty is rejected. `appName` is also now strictly required at manifest parse (as beta.1 announced). (c6a11d3a93b, fe8e15c7fe7)
45
+ - **Solana.** `solanaSignTransaction` no longer fails precompose for transactions using address lookup tables (467c4002c3f), and rejects unsupported v1 transactions upfront with `Method_InvalidParameter` (d24fa8a5d8c). `solanaComposeTransaction` now returns token metadata (`newAccountProgramName`, `tokenAccountInfo`) in `additionalInfo` for pre-serialized token transfers, fixing Solana token trades. (bb7502fedc8)
46
+ - **Backend reconnect back-off.** A dropped blockchain backend no longer triggers a tight reconnect loop / Solana reconnect storm — reconnect delay is clamped to 1–20s, the attempt counter resets only after a connection holds for 30s, and back-off attempts reject with `Backend_Disconnected` rather than forcing an immediate re-sync (explicit reconnects still bypass the wait). (f02219132e6, d1fc98016c3)
47
+ - **TRON.** Default fee info now exposes real `minFee=1` / `maxFee=15,000,000,000` SUN instead of the `-1`/unknown placeholders (f124fe96ceb), and TRX/tTRX block notifications are throttled together with EVM at ~12s per block event (2524bc4d2ca).
48
+ - `ethereumSignTypedData` no longer requires the `eip712-domain-only` firmware capability for `EIP712Domain`-only payloads. (d4ead6f1780)
49
+ - **BTC custom-fee fallback** now composes a single transaction at the coin's `minFee` instead of scanning fees down from the top level, changing which custom fee is offered when no standard level is affordable. (7988531569c)
50
+ - **Firmware rollout bucketing** no longer permanently excludes the ~1% of devices that hash into the top bucket, even at 100% rollout. (3debf109035)
51
+ - On THP devices, the PIN matrix is now requested **before** the passphrase entry. (b2c3d73ce4c)
52
+
53
+ ## Breaking since beta.1
54
+
55
+ These mostly affect **custom-UI and host (Suite-style) integrations**; a couple touch public method/result shapes.
56
+
57
+ - **`UI_EVENT` split.** The public `UI_REQUEST` constant map is split into `UI_EVENTS` (fire-and-forget notifications) and `UI_REQUESTS` (messages needing a `UI_RESPONSE`), a new `UI_REQUEST`/`UI_REQUESTS` event channel is added, and several members are renamed (e.g. `TRANSPORT`→`TRANSPORT_MISSING`, `INVALID_PIN`→`PIN_INVALID`). The event payloads were also reshaped: `requestId` was removed from `UI_EVENT` payloads (`callId` remains) and is now emitted on standalone `UI_REQUEST` payloads. Migrate `UI_REQUEST.*` references to `UI_EVENTS.*` / `UI_REQUESTS.*`. (8d5768be292, b372b090361, f26a6147e01)
58
+ - **`composeTransaction` is precompose-only.** Its signing/broadcast overload (`ComposeParams` → `SignedTransaction`, including `push`) is removed migrate signing+push flows to the new `sendTransaction`. (919967d6a43)
59
+ - **`ethereumGetPublicKey.displayablePublicKey`** is now the hex-encoded compressed public key (byte-identical to `publicKey`, matching what firmware shows on screen) instead of the xpub. (a508e4ab6e4)
60
+ - **`blockchainEvmRpcGetChainId`** (formerly `blockchainValidateEvmRpcUrl` in beta.1) now takes only `{ url }` and returns `{ chainId }`, instead of validating a supplied chainId and returning `{ valid, actualChainId }`. (39fa982888d)
61
+ - **`SELECT_FEE` event** payload now carries `feeLevels` as `FeeLevel[]` (only composable/valid levels), and the `SelectFeeLevel` type is removed from `@trezor/connect-common`. (a300e1be087)
62
+ - **`RECEIVE_FEE` response** payload is restructured: use `{ type: 'select-fee', value }` and `{ type: 'select-fee-custom', value }` (replacing `'compose-custom'` / `'send'`). (eedb2fdde5f)
63
+ - **`UPDATE_CUSTOM_FEE` UI event removed.** The `ui-update_custom_fee` member of the `UI_REQUEST` map and its `UpdateCustomFee` type are removed from `@trezor/connect-common`; custom-UI code that listened for it should drop the handler. (4f5b240fcb0)
64
+ - **`KnownDevice.availableTranslations`** now maps language codes to `TranslationMetadata` objects instead of plain strings. (26f0cd334c5)
65
+
66
+ # 10.0.0-beta.1
67
+
68
+ Connect 10 moves the Connect core out of the self-hosted iframe + popup and into **Trezor Suite**, which now hosts the core and renders every approval, PIN, passphrase and confirmation screen. Your app stays a thin client calling the same `TrezorConnect` methods — nothing to install, and it works whether or not Suite desktop is running. Alongside the move, the SDK gains a privacy-friendly account picker (`selectAccount`), granular per-coin permissions, and much smaller ESM-only client packages.
69
+
70
+ ## Highlights
71
+
72
+ ### 1. New Connect flow, powered by Trezor Suite
73
+
74
+ The legacy web popup/iframe integration has been **removed** and replaced by a flow that runs inside Trezor Suite. Connect is now a thin client that routes each call to Suite; Suite owns the core and the entire user-facing experience. It works on both desktop and web:
75
+
76
+ - **Desktop** — when Trezor Suite (desktop) is running, Connect talks to it automatically over a local (loopback) WebSocket connection — no popup window, no iframe. Suite identifies the calling application (name, origin, icon) in a single permission-approval prompt, then handles the request against the currently active, already-unlocked device.
77
+ - **Web** — when Suite desktop is not running, Connect opens Suite Web as the approval surface (production: `https://suite.trezor.io/web/connect-popup`), giving the same flow with nothing to install. This is a first-class path, not a degraded mode; in the default `'auto'` mode Connect prefers desktop and switches back to it automatically as soon as it becomes available.
78
+ - **Mobile** — `@trezor/connect-mobile` routes calls to the Trezor Suite mobile app via a deep link.
79
+
80
+ We strongly recommend keeping the default **`coreMode: 'auto'`**: users who have Trezor Suite desktop installed get the fastest, most convenient experience (a direct local connection), while everyone else falls back to Suite Web seamlessly. You can pin `coreMode` to `'suite-desktop'` or `'suite-web'` if you have a specific reason to.
81
+
82
+ The web flow relies on a bootstrap iframe + popup to exchange messages with Suite Web, so integrator pages must ship the right headers for that channel to work: a Content-Security-Policy that permits embedding the Suite Web origin (`frame-src`/`child-src` for `https://suite.trezor.io`), and a `Cross-Origin-Opener-Policy` that does not sever the popup's `window.opener` (avoid `same-origin` on the hosting page — use `same-origin-allow-popups` or `unsafe-none`). Missing or over-strict headers surface as a handshake timeout when the popup opens.
83
+
84
+ Because the active device is chosen and unlocked **in Suite**, users no longer pick a device or re-enter a passphrase per request as they did in the old popup — passphrase handling is centralized in Suite's device management (see the [passphrases & hidden wallets guide](https://trezor.io/guides/backups-recovery/advanced-wallets/passphrases-and-hidden-wallets) and the [New Connect flow in Trezor Suite guide](https://connect.trezor.io/10.0.0-beta.1/guides/new-connect-flow-in-trezor-suite)).
85
+
86
+ **Required manifest change:** `manifest.appName` is now **required**, and an optional `manifest.appIcon` (URL, sized for a 64px circle) is shown in Suite's permission prompt.
87
+
88
+ ```javascript
89
+ TrezorConnect.init({
90
+ manifest: {
91
+ email: 'developer@xyz.com',
92
+ appName: 'Your Application',
93
+ appUrl: 'https://your.application.com',
94
+ appIcon: 'https://your.application.com/icon-64.png',
95
+ },
96
+ });
97
+ ```
98
+
99
+ ### 2. `selectAccount` — private, friendlier account selection
100
+
101
+ New method for asking the user to choose one or more accounts, replacing the old "call `getAccountInfo` with no path to trigger on-device discovery" pattern. The picker, derivation and on-device verification run entirely inside Suite.
102
+
103
+ - **More private:** for UTXO coins you can request only what you need. `addressSelection: 'firstFresh' | 'manual'` exports a single **address** (with an optional SLIP-0019 `mac` to later re-prove device ownership) and never reveals the account xpub — requiring only the narrow `read_address` permission. The full-account/watch-only flow (`addressSelection: 'fullAccount'`, the default) shares the xpub and requires `read_xpub`. Account-based networks (EVM, Solana, …) always return an individual address.
104
+ - **Better UX:** `selectionType` supports `'single'` (default), `'multi'`, or bounded multi-select (`{ minCount, maxCount }`); `accountType` filters/tabs the allowed derivation types (including custom `bip43Path` templates); `requireOnDeviceVerification` (default `true`) controls device confirmation.
105
+ - Always returns an array of `{ symbol, path, address? | xpub?, accountType?, mac? }`, even for a single selection.
106
+
107
+ ### 3. Granular, per-coin permissions
108
+
109
+ Permissions are no longer coarse read/write grants. Each method requires narrow scopes (such as `read_address`, `read_xpub`, `sign`, `sign_message`), scoped to a specific coin where relevant, and Suite groups them by coin in the approval prompt. Scopes are intentionally non-overlapping — e.g. granting `read_address` does **not** also grant `read_xpub` — so an app only ever gets access to what it actually uses.
110
+
111
+ ### 4. Much lighter client packages
112
+
113
+ Because the Connect core now lives in Trezor Suite, the packages that third-party apps install (`@trezor/connect-web`, `-webextension`, `-mobile`) are thin clients that just route calls to Suite. They no longer bundle the core's heavy dependencies (transports, crypto, coin logic), so installs and bundles are dramatically smaller. As part of this, coin-family code has been reorganized into per-network packages (the former `@trezor/coins-*` are renamed to `@trezor/network-*`) that load their heavier dependencies on demand.
114
+
115
+ ### New coins & method improvements
116
+
117
+ - **Tron** support (`tronGetAddress`, `tronSignTransaction`), backed by the new `@trezor/network-tron` package.
118
+ - `solanaSignTransaction` accepts a `chunkify` flag that renders addresses on the device in 4-character chunks, matching `solanaGetAddress` and other coins' sign flows (requires firmware with chunked-address support in the Solana `SignTx` flow).
119
+ - `ethereumSignTypedData` now computes the required hashes internally for T1B1 firmware, so callers no longer need `@trezor/connect-plugin-ethereum` to pre-compute them — passing only `data` works on all models (caller-provided hashes still take precedence).
120
+ - The `*GetPublicKey` methods (`getPublicKey`, `ethereumGetPublicKey`, `cardanoGetPublicKey`, …) now share a **unified response shape** across coins, including a canonical `displayablePublicKey` string that any consumer can render without per-coin branching. This unification is also why the dedicated `getAccountDescriptor` method could be removed (see Breaking changes).
121
+
122
+ ## Breaking changes
123
+
124
+ The [migration guide](https://connect.trezor.io/10.0.0-beta.1/guides/migrating-to-connect-10) turns the changes below into a step-by-step checklist with before/after code.
125
+
126
+ ### Integration & packaging
127
+
128
+ - **Legacy iframe + popup integration removed.** `core-in-popup` and iframe-with-popup modes no longer exist; use the Suite-based flow above. `connect-iframe` has been removed.
129
+ - **`manifest.appName` is now required** (see Highlights).
130
+ - **ESM-only.** `@trezor/connect` and its dependency closure now ship ESM only. ESM consumers just `import TrezorConnect from '@trezor/connect'`; a CJS consumer that cannot migrate can use a dynamic `import()` or stay on v9.
131
+ - **Public vs privileged API split.** The client packages now expose a public API (`TrezorConnectPublicAPI`) while `@trezor/connect` exposes the full privileged one (`TrezorConnectPrivilegedAPI`) used by Suite. The public tier drops everything that is Suite's responsibility — device-management methods (`applyFlags`, `applySettings`, `authenticateDevice`, `backupDevice`, `bleUnpair`, `changeLanguage`, `changePin`, `changeWipeCode`, `getFirmwareHash`, `getNonce`, `getSettings`, `loadDevice`, `pingDevice`, `recoveryDevice`, `resetDevice`, `setBrightness`, `setBusy`, `telemetryGet`, `thpGetCredentials`, `thpRemoveCredentials`, `wipeDevice`) are no longer callable from third-party integrations. Public `TrezorConnect` objects are now class instances, so `Object.keys(...)` enumeration and monkeypatching no longer work.
132
+ - **Thin packages lost their event/settings API.** `on`/`off`/`removeAllListeners`, `uiResponse` and `updateConnectSettings` are removed from the public tier (they were already non-functional in v10, since the host Core does not forward them); calling them now throws `TypeError`.
133
+ - **Type/factory renames.** The exported `TrezorConnect` type is replaced by `TrezorConnectPublicAPI` / `TrezorConnectPrivilegedAPI`, and the `factory` function by `factoryPublic` / `factoryPrivileged`. The API-schema values (`TrezorConnectCallable`, `TrezorConnectBitcoin`, …) are no longer exported as runtime values — the names remain as types only.
134
+
135
+ ### Methods & parameters
136
+
137
+ - **`coin` accepts the coin shortcut only** (the `CoinSymbol` set — e.g. `btc`, `bch`, `ada`), narrowed from `string`. Network **names** and **labels** (e.g. `'Bitcoin'`, `'Bitcoin Cash'`) are no longer accepted and now fail both at compile time and at runtime. The shortcut itself is still matched case-insensitively at runtime, so `coin: 'BTC'` works — but the `CoinSymbol` type lists the canonical lowercase forms, so TypeScript users should pass lowercase to type-check. Resolution is uniform across all coin families. Migrate names/labels to the shortcut: `'Bitcoin' → 'btc'`, `'Bitcoin Cash' → 'bch'`, `'cardano' → 'ada'`, etc. Path-taking methods (`getAddress`, `getPublicKey`, …) derive the network from `path` when given a former name/label; methods without a path fallback (`getAccountInfo`, `selectAccount`, `verifyMessage`, `composeTransaction`, `signTransaction`, `signMessage`, `getOwnershipId`, `getOwnershipProof`, the `blockchain*` family) throw `Method_UnknownCoin`. Full list: [supported coins](https://connect.trezor.io/10.0.0-beta.1/details/coins).
138
+ - **`getPublicKey` is restricted to bitcoin-like coins.** In v9, a non-bitcoin `coin` (e.g. `'eth'`) silently fell back to Bitcoin and returned a btc xpub. Now the network must resolve to a bitcoin-like coin — from `coin`, or failing that from the derivation `path` — otherwise the call throws `Method_UnknownCoin`. Use the per-coin methods (`ethereumGetPublicKey`, `cardanoGetPublicKey`, …) for other networks.
139
+ - **`getAccountDescriptor` removed.** The per-coin `*GetPublicKey` methods now return the same fields. Field mapping: `payload.descriptor` → Bitcoin `result.descriptor` (non-Bitcoin coins: use `result.displayablePublicKey`); `payload.path` → `result.serializedPath` on every `*GetPublicKey`; generic consumers should read `result.displayablePublicKey`.
140
+ - **`getAccountInfo` no longer performs on-device discovery.** Calling it without `path` or `descriptor` now throws `Method_InvalidParameter` (`path or descriptor is required`) instead of opening a device-driven selection popup. Provide `path` (derive on device, then query backend) or `descriptor` (backend-only). For the old discovery behavior, use `discoverAccounts` — or `selectAccount` for user-facing selection.
141
+ - **`cardanoGetPublicKey`:** `publicKey` is now the raw 32-byte key in hex (consistent with other coins); the Cardano extended public key moved to the new explicit `xpub` field (also available via `displayablePublicKey`).
142
+ - **`useCardanoDerivation` removed.** Cardano session derivation is now driven by an app-level `enabledNetworks` declaration passed to `TrezorConnect.init({ enabledNetworks: [{ coin: 'ada' }] })` (or `updateConnectSettings` for in-process Core hosts). Note: `enabledNetworks` is honored only by the in-process `@trezor/connect`; on the thin packages, Cardano availability follows the host Suite wallet's enabled coins.
143
+
144
+ ### Transports
145
+
146
+ These mostly affect apps that run their own Connect core (`@trezor/connect`); most integrations use the client packages and can skip this.
147
+
148
+ - **Transports must be passed as instances.** `transports` no longer accepts string identifiers (`'BridgeTransport'`, …) or classes — pass fully constructed `Transport` instances, e.g. `import { BridgeTransport } from '@trezor/transport-common'; init({ transports: [new BridgeTransport({ id: 'my-app' })] })`. For WebUSB use `@trezor/transport-web`; avoid the Node-only `@trezor/transport` barrel in web/React Native bundles.
149
+ - **`disableWebUSB()` removed** — use `updateConnectSettings({ transports })` with a filtered list instead.
150
+ - **Legacy `trezord-go` Bridge (port `21325`) is no longer supported** and `TransportInfo.outdated` is removed; detecting an outdated Bridge is now the consumer app's job.
151
+
152
+ ## Removed & deprecated
153
+
154
+ - **Removed coin support.** Coins that no current device supports have been dropped from the coin definitions. [Supported coins](https://connect.trezor.io/10.0.0-beta.1/details/coins) is the current list — if your integration names a coin that is not on it, remove that support.
155
+ - **`@trezor/connect-plugin-ethereum` deprecated.** Its logic is inlined into `@trezor/connect`. Drop the direct dependency and remove manual `transformTypedData` calls. The 10.x plugin is a stub that throws a deprecation error pointing at the migration.
156
+
157
+ ## Previous versions
158
+
159
+ Changelogs for Connect 9 and earlier are available at [connect.trezor.io/9](https://connect.trezor.io/9/).
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @trezor/connect
2
2
 
3
- API version 10.0.0-alpha.1
3
+ API version 10.0.0-beta.2
4
4
 
5
5
  [![NPM](https://img.shields.io/npm/v/@trezor/connect.svg)](https://www.npmjs.org/package/@trezor/connect)
6
6
 
@@ -8,6 +8,8 @@ Trezor Connect is a platform for easy integration of Trezor into 3rd party servi
8
8
 
9
9
  This package is intended to be used in node.js environment. If you wan't to build a web application please refer to [@trezor/connect-web package](https://github.com/trezor/trezor-suite/blob/develop/packages/connect-web/README.md).
10
10
 
11
+ It runs Connect in-process: it composes the execution engine from [@trezor/connect-core](https://github.com/trezor/trezor-suite/blob/develop/packages/connect-core/README.md) and supplies the node transports, Trezor Bridge first and direct USB (from [@trezor/transport](https://www.npmjs.com/package/@trezor/transport)) as the fallback. No extra package or transport wiring is needed; `init({ manifest })` is enough. Passing a non-empty `transports` list replaces the defaults.
12
+
11
13
  > **Building a web app?** Use [@trezor/connect-web](https://www.npmjs.com/package/@trezor/connect-web) instead — it adds browser transport handling and popup-based UI.
12
14
  >
13
15
  > **Building a browser extension?** Use [@trezor/connect-webextension](https://www.npmjs.com/package/@trezor/connect-webextension) instead — it handles Manifest V3 and service worker constraints.
@@ -40,7 +42,7 @@ For more instructions [refer to this document](https://github.com/trezor/trezor-
40
42
 
41
43
  ## Versioning
42
44
 
43
- Version 10 is the current major version and is currently in alpha. New major versions are released when there are breaking API changes. Information about legacy versions can be found in [README_LEGACY.md](./README_LEGACY.md).
45
+ Version 10 is the current major version and is currently in beta. New major versions are released when there are breaking API changes.
44
46
 
45
47
  ## Docs
46
48
 
@@ -52,4 +54,4 @@ A collection of examples on how to implement @trezor/connect in various environm
52
54
 
53
55
  ## Tests
54
56
 
55
- For integration testing against trezord and emulator refer to [this document](https://github.com/trezor/trezor-suite/blob/develop/packages/connect/e2e/README.md).
57
+ For integration testing against trezord and emulator refer to [this document](https://github.com/trezor/trezor-suite/blob/develop/packages/connect-core/e2e/README.md).
@@ -0,0 +1 @@
1
+ export * from '@trezor/connect-core/lib/exports';
package/lib/exports.js ADDED
@@ -0,0 +1 @@
1
+ export * from "@trezor/connect-core/lib/exports.js";
@@ -0,0 +1,7 @@
1
+ import { type UpdateConnectSettings } from '@trezor/connect-common';
2
+ import { CoreInModule } from '@trezor/connect-core/lib/impl/core-in-module';
3
+ import { type AbstractTransportParams, BridgeTransport } from '@trezor/transport-common';
4
+ export declare class CoreInModuleNative extends CoreInModule {
5
+ protected defaultTransports(params: AbstractTransportParams): BridgeTransport[];
6
+ protected updateProxy(proxy: UpdateConnectSettings['proxy']): Promise<void>;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { updateProxy } from "@trezor/connect-core/lib/backend/BlockchainLink.js";
2
+ import { CoreInModule } from "@trezor/connect-core/lib/impl/core-in-module.js";
3
+ import { BridgeTransport } from "@trezor/transport-common";
4
+ export class CoreInModuleNative extends CoreInModule {
5
+ defaultTransports(params) {
6
+ return [new BridgeTransport(params)];
7
+ }
8
+ async updateProxy(proxy) {
9
+ await updateProxy(proxy);
10
+ }
11
+ }
@@ -0,0 +1,8 @@
1
+ import { type UpdateConnectSettings } from '@trezor/connect-common';
2
+ import { CoreInModule } from '@trezor/connect-core/lib/impl/core-in-module';
3
+ import { NodeUsbTransport } from '@trezor/transport';
4
+ import { type AbstractTransportParams, BridgeTransport } from '@trezor/transport-common';
5
+ export declare class CoreInModuleNode extends CoreInModule {
6
+ protected defaultTransports(params: AbstractTransportParams): (BridgeTransport | NodeUsbTransport)[];
7
+ protected updateProxy(proxy: UpdateConnectSettings['proxy']): Promise<void>;
8
+ }
@@ -0,0 +1,12 @@
1
+ import { updateProxy } from "@trezor/connect-core/lib/backend/BlockchainLink.js";
2
+ import { CoreInModule } from "@trezor/connect-core/lib/impl/core-in-module.js";
3
+ import { NodeUsbTransport } from "@trezor/transport";
4
+ import { BridgeTransport } from "@trezor/transport-common";
5
+ export class CoreInModuleNode extends CoreInModule {
6
+ defaultTransports(params) {
7
+ return [new BridgeTransport(params), new NodeUsbTransport(params)];
8
+ }
9
+ async updateProxy(proxy) {
10
+ await updateProxy(proxy);
11
+ }
12
+ }
@@ -0,0 +1,9 @@
1
+ import { type UpdateConnectSettings } from '@trezor/connect-common';
2
+ import { CoreInModule } from '@trezor/connect-core/lib/impl/core-in-module';
3
+ import { type AbstractTransportParams, BridgeTransport } from '@trezor/transport-common';
4
+ import { WebUsbTransport } from '@trezor/transport-web';
5
+ export declare class CoreInModuleWeb extends CoreInModule {
6
+ protected defaultTransports(params: AbstractTransportParams): (BridgeTransport | WebUsbTransport)[];
7
+ protected updateProxy(proxy: UpdateConnectSettings['proxy']): Promise<void>;
8
+ requestWebUSBDevice(): Promise<void>;
9
+ }
@@ -0,0 +1,26 @@
1
+ import { ERRORS } from "@trezor/connect-common";
2
+ import { config } from "@trezor/connect-core/lib/data/config.js";
3
+ import { CoreInModule } from "@trezor/connect-core/lib/impl/core-in-module.js";
4
+ import { BridgeTransport, TRANSPORT } from "@trezor/transport-common";
5
+ import { WebUsbTransport } from "@trezor/transport-web";
6
+ export class CoreInModuleWeb extends CoreInModule {
7
+ defaultTransports(params) {
8
+ return [new BridgeTransport(params), new WebUsbTransport(params)];
9
+ }
10
+ updateProxy(proxy) {
11
+ if (proxy !== undefined) {
12
+ throw ERRORS.TypedError('Method_InvalidPackage', 'proxy setting is not supported in web environment');
13
+ }
14
+ return Promise.resolve();
15
+ }
16
+ async requestWebUSBDevice() {
17
+ try {
18
+ await window.navigator.usb.requestDevice({
19
+ filters: config.webusb
20
+ });
21
+ this.handleCoreMessage({
22
+ type: TRANSPORT.REQUEST_DEVICE
23
+ });
24
+ } catch {}
25
+ }
26
+ }
@@ -0,0 +1,7 @@
1
+ import { type TrezorConnectPrivilegedAPI } from '@trezor/connect-common';
2
+ type TrezorConnectBrowserAPI = TrezorConnectPrivilegedAPI & {
3
+ requestWebUSBDevice: () => Promise<void>;
4
+ };
5
+ declare const TrezorConnect: TrezorConnectBrowserAPI;
6
+ export default TrezorConnect;
7
+ export * from "./exports.js";
@@ -0,0 +1,10 @@
1
+ import { factoryPrivileged } from "@trezor/connect-common";
2
+ import { CoreInModuleWeb } from "./impl/core-in-module-web.js";
3
+ const TrezorConnect = factoryPrivileged(new CoreInModuleWeb());
4
+ export default TrezorConnect;
5
+ export * from "./exports.js";
6
+ if (typeof window !== 'undefined') {
7
+ window.addEventListener('beforeunload', () => {
8
+ TrezorConnect.dispose();
9
+ });
10
+ }
package/lib/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { type TrezorConnectPrivilegedAPI } from '@trezor/connect-common';
2
+ declare const TrezorConnect: TrezorConnectPrivilegedAPI;
3
+ export default TrezorConnect;
4
+ export * from "./exports.js";
package/lib/index.js ADDED
@@ -0,0 +1,5 @@
1
+ import { factoryPrivileged } from "@trezor/connect-common";
2
+ import { CoreInModuleNode } from "./impl/core-in-module-node.js";
3
+ const TrezorConnect = factoryPrivileged(new CoreInModuleNode());
4
+ export default TrezorConnect;
5
+ export * from "./exports.js";
@@ -0,0 +1,4 @@
1
+ import { type TrezorConnectPrivilegedAPI } from '@trezor/connect-common';
2
+ declare const TrezorConnect: TrezorConnectPrivilegedAPI;
3
+ export default TrezorConnect;
4
+ export * from "./exports.js";
@@ -0,0 +1,5 @@
1
+ import { factoryPrivileged } from "@trezor/connect-common";
2
+ import { CoreInModuleNative } from "./impl/core-in-module-native.js";
3
+ const TrezorConnect = factoryPrivileged(new CoreInModuleNative());
4
+ export default TrezorConnect;
5
+ export * from "./exports.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trezor/connect",
3
- "version": "10.0.0-alpha.1",
3
+ "version": "10.0.0-beta.2",
4
4
  "type": "module",
5
5
  "author": "Trezor <info@trezor.io>",
6
6
  "homepage": "https://github.com/trezor/trezor-suite/tree/develop/packages/connect",
@@ -19,128 +19,75 @@
19
19
  "javascript"
20
20
  ],
21
21
  "sideEffects": false,
22
- "main": "./libESM/index.mjs",
22
+ "main": "./lib/index.js",
23
23
  "browser": {
24
- "./libESM/index.mjs": "./libESM/index.browser.mjs",
25
- "./libESM/utils/assets.mjs": "./libESM/utils/assets.browser.mjs",
26
- "./libESM/workers/workers.mjs": "./libESM/workers/workers.browser.mjs",
27
- "./libESM/data/*": "./libESM/data/*",
28
- "./libESM/exports.mjs": "./libESM/exports.mjs",
29
- "./libESM/impl/*": "./libESM/impl/*",
30
- "./libESM/utils/*": "./libESM/utils/*"
24
+ "./lib/index.js": "./lib/index.browser.js",
25
+ "./lib/exports.js": "./lib/exports.js"
31
26
  },
32
27
  "react-native": {
33
- "./src/index": "./src/index.ts",
34
- "./src/index.ts": "./src/index.ts",
35
- "./src/utils/assets": "./src/utils/assets.native.ts",
36
- "./src/workers/workers": "./src/workers/workers.native.ts"
28
+ "./src/index": "./src/index.native.ts",
29
+ "./src/index.ts": "./src/index.native.ts"
37
30
  },
38
31
  "publishConfig": {
39
- "main": "./libESM/index.mjs",
40
- "types": "./libESM/index.d.mts",
32
+ "main": "./lib/index.js",
33
+ "types": "./lib/index.d.ts",
41
34
  "exports": {
42
35
  ".": {
43
- "types": "./libESM/index.d.mts",
44
- "default": "./libESM/index.mjs"
36
+ "types": "./lib/index.d.ts",
37
+ "default": "./lib/index.js"
45
38
  },
46
- "./libESM/*": "./libESM/*"
39
+ "./lib/*": "./lib/*"
47
40
  },
48
41
  "browser": {
49
- "./libESM/index.mjs": "./libESM/index.browser.mjs",
50
- "./libESM/utils/assets.mjs": "./libESM/utils/assets.browser.mjs",
51
- "./libESM/workers/workers.mjs": "./libESM/workers/workers.browser.mjs",
52
- "./libESM/data/*": "./libESM/data/*",
53
- "./libESM/exports.mjs": "./libESM/exports.mjs",
54
- "./libESM/impl/*": "./libESM/impl/*",
55
- "./libESM/utils/*": "./libESM/utils/*"
42
+ "./lib/index.js": "./lib/index.browser.js",
43
+ "./lib/exports.js": "./lib/exports.js"
56
44
  },
57
45
  "react-native": {
58
- "./libESM/index.mjs": "./libESM/index.mjs",
59
- "./libESM/utils/assets.mjs": "./libESM/utils/assets.native.mjs",
60
- "./libESM/workers/workers.mjs": "./libESM/workers/workers.native.mjs",
61
- "./libESM/data/*": "./libESM/data/*",
62
- "./libESM/exports.mjs": "./libESM/exports.mjs",
63
- "./libESM/impl/*": "./libESM/impl/*",
64
- "./libESM/utils/*": "./libESM/utils/*"
46
+ "./lib/index.js": "./lib/index.native.js",
47
+ "./lib/exports.js": "./lib/exports.js"
65
48
  }
66
49
  },
67
50
  "files": [
68
- "libESM/",
51
+ "lib/",
69
52
  "CHANGELOG.md"
70
53
  ],
71
54
  "scripts": {
72
- "test:unit": "jest --version && jest",
55
+ "test:unit": "yarn g:jest",
73
56
  "depcheck": "yarn g:depcheck",
74
57
  "type-check": "yarn g:tsc --build",
75
- "build:lib": "yarn g:rimraf ./libESM && yarn g:tsc --build tsconfig.libESM.json && ../../scripts/publish/replace-imports.sh ./libESM esm",
58
+ "build:lib": "yarn g:rimraf ./lib && yarn g:tsc --build tsconfig.lib.json && ../../scripts/publish/replace-imports.sh ./lib",
76
59
  "version:prerelease": "yarn g:tsx scripts/bump-version.ts prerelease",
77
60
  "version:patch": "yarn g:tsx scripts/bump-version.ts patch",
78
61
  "version:prepatch": "yarn g:tsx scripts/bump-version.ts prepatch",
79
62
  "version:minor": "yarn g:tsx scripts/bump-version.ts minor",
80
63
  "version:preminor": "yarn g:tsx scripts/bump-version.ts preminor",
81
64
  "version:major": "yarn g:tsx scripts/bump-version.ts major",
82
- "test:e2e:web": "yarn g:tsx ./e2e/run.ts web",
83
- "test:e2e:node": "yarn g:tsx ./e2e/run.ts node",
84
65
  "lint:js": "yarn g:eslint '**/*.{ts,tsx,js}'"
85
66
  },
86
67
  "dependencies": {
87
- "@bufbuild/protobuf": "^2.11.0",
88
- "@ethereumjs/common": "^10.1.1",
89
- "@ethereumjs/tx": "^10.1.1",
90
- "@fivebinaries/coin-selection": "3.0.0",
91
- "@noble/hashes": "^2.0.1",
92
- "@scure/base": "^2.0.0",
93
- "@scure/bip39": "^1.5.1",
94
- "@trezor/blockchain-link": "10.0.0-alpha.1",
95
- "@trezor/blockchain-link-types": "10.0.0-alpha.1",
96
- "@trezor/coins-solana": "10.0.0-alpha.1",
97
- "@trezor/connect-common": "10.0.0-alpha.1",
98
- "@trezor/connect-data": "10.0.0-alpha.1",
99
- "@trezor/crypto-utils": "10.0.0-alpha.1",
100
- "@trezor/device-authenticity": "10.0.0-alpha.1",
101
- "@trezor/device-utils": "10.0.0-alpha.1",
102
- "@trezor/protobuf": "10.0.0-alpha.1",
103
- "@trezor/protocol": "10.0.0-alpha.1",
104
- "@trezor/schema-utils": "10.0.0-alpha.1",
105
- "@trezor/transport": "10.0.0-alpha.1",
106
- "@trezor/type-utils": "10.0.0-alpha.1",
107
- "@trezor/utils": "10.0.0-alpha.1",
108
- "@trezor/utxo-lib": "10.0.0-alpha.1",
109
- "cbor": "^10.0.12",
110
- "cross-fetch": "^4.1.0",
111
- "jws": "^4.0.1",
112
- "viem": "^2.48.1"
68
+ "@trezor/connect-common": "10.0.0-beta.2",
69
+ "@trezor/connect-core": "10.0.0-beta.2",
70
+ "@trezor/transport": "10.0.0-beta.2",
71
+ "@trezor/transport-common": "10.0.0-beta.2",
72
+ "@trezor/transport-web": "10.0.0-beta.2"
113
73
  },
114
74
  "devDependencies": {
115
- "@babel/preset-typescript": "^7.28.5",
116
75
  "@trezor/eslint": "1.0.0",
117
- "@trezor/trezor-user-env-link": "1.0.2",
118
- "@types/jws": "^3.2.11",
76
+ "@trezor/requirements": "1.0.0",
77
+ "@types/jest": "30.0.0",
119
78
  "@types/node": "22.13.10",
120
79
  "@types/w3c-web-usb": "^1.0.14",
121
- "@vitest/browser-playwright": "^4.1.4",
122
- "crypto-browserify": "3.12.1",
123
- "jest": "29.7.0",
124
- "node-fetch": "^3.3.2",
125
- "process": "^0.11.10",
126
- "stream-browserify": "^3.0.0",
127
- "tsx": "^4.21.0",
128
- "vite-plugin-node-polyfills": "^0.26.0",
129
- "vite-plugin-wasm": "^3.6.0",
130
- "vitest": "^4.1.4",
131
- "vm-browserify": "^1.1.2",
132
- "web3-utils": "^4.3.3",
133
- "ws": "^8.20.0"
80
+ "tsx": "^4.21.0"
134
81
  },
135
82
  "peerDependencies": {
136
83
  "tslib": "^2.6.2"
137
84
  },
138
85
  "exports": {
139
86
  ".": {
140
- "types": "./libESM/index.d.mts",
141
- "default": "./libESM/index.mjs"
87
+ "types": "./lib/index.d.ts",
88
+ "default": "./lib/index.js"
142
89
  },
143
- "./libESM/*": "./libESM/*"
90
+ "./lib/*": "./lib/*"
144
91
  },
145
- "types": "./libESM/index.d.mts"
92
+ "types": "./lib/index.d.ts"
146
93
  }