@trezor/connect 9.5.0-beta.1 → 9.5.0
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.
- package/CHANGELOG.md +56 -64
- package/README.md +1 -1
- package/lib/data/connectSettings.js +3 -1
- package/lib/data/version.d.ts +1 -1
- package/lib/data/version.js +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
| Package | Stable | Canary |
|
|
2
2
|
| :------------------------------: | :----: | :----------: |
|
|
3
|
-
| npm @trezor/connect | 9.
|
|
4
|
-
| npm @trezor/connect-web | 9.
|
|
5
|
-
| npm @trezor/connect-webextension | 9.
|
|
3
|
+
| npm @trezor/connect | 9.5.0 | - |
|
|
4
|
+
| npm @trezor/connect-web | 9.5.0 | - |
|
|
5
|
+
| npm @trezor/connect-webextension | 9.5.0 | - |
|
|
6
6
|
| npm @trezor/connect-mobile | - | 0.0.1-beta.1 |
|
|
7
7
|
|
|
8
|
-
| Deployment | Stable |
|
|
9
|
-
| :----------------: | :----: |
|
|
10
|
-
| connect.trezor.io/ | 9.
|
|
8
|
+
| Deployment | Stable | Canary |
|
|
9
|
+
| :----------------: | :----: | :----: |
|
|
10
|
+
| connect.trezor.io/ | 9.5.0 | - |
|
|
11
|
+
|
|
12
|
+
| connect.trezor.io/ | 9.4.7 | 9.5.0-beta.1 |
|
|
11
13
|
|
|
12
14
|
Use the persistent link [connect.trezor.io/9](https://connect.trezor.io/9/) to access the latest stable version of Connect Explorer.
|
|
13
15
|
|
|
14
|
-
# 9.5.0
|
|
16
|
+
# 9.5.0
|
|
15
17
|
|
|
16
18
|
Starting with this release we changed de target in all `@trezor` packages to ES2022. It might be problematic in some very old environment or if you use Typescript with lower than ES2022 you might have to add ES2022 lib to your tsconfig. We are also include esm builds in our npm packages. For now only in `@trezor/connect-plugin-stellar` and `@trezor/connect-plugin-ethereum`.
|
|
17
19
|
|
|
@@ -20,69 +22,59 @@ This should help potential inconsistent states of device communication.
|
|
|
20
22
|
|
|
21
23
|
## Feature
|
|
22
24
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
- trust \*.localhost subdomains (c148eeb)
|
|
26
|
+
- solanaComposeTransaction method (e653ae9)
|
|
27
|
+
- increase popup interaction timeout from 10 to 20 minutes (f800602)
|
|
28
|
+
- blockchain methods now have support for various L2 ETH networks (26ff8ea, 38614db)
|
|
29
|
+
- solana and Token-2022 tokens (9abc7d9)
|
|
30
|
+
- show h instead of apostrophe in taproot xpub to be consistent with firmware (82e7d84)
|
|
31
|
+
- remove Hash-Check from FW upgrade (it is performed on-device-connect anyway) (7413e2c)
|
|
32
|
+
- enable taproot in connect discovery in popup (b1ea07e)
|
|
33
|
+
- add fw binaries for 2.8.8 and 1.13.0 (6ef1768), firmware update will be offered
|
|
34
|
+
- feat(connect): upgrade to bridge when it starts (013f14a)
|
|
33
35
|
|
|
34
36
|
## Fixes
|
|
35
37
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
## Chores
|
|
52
|
-
|
|
53
|
-
- use target ES2022 from root tsconfig.lib (2b75843, 83b4e69, a0395a2, d52b30b)
|
|
54
|
-
- docs(connect-mobile): improve description of deeplinking protocol (aa1436e)
|
|
55
|
-
- chore(connect-common): update authenticity config (6ba9ead)
|
|
56
|
-
- unify timeout utils (fd9f509, dedff02, 4b57c17)
|
|
57
|
-
- chore: update solana and everstake deps (cf806ff)
|
|
58
|
-
- chore(connect-plugin-ethereum): update dep (91da7e7)
|
|
59
|
-
- chore(connect-plugin-stellar): update dep (daffb20)
|
|
60
|
-
- chore(suite): bump webpack (eab0cc7)
|
|
61
|
-
- chore(suite-desktop): bump electron-builder (306a3cf)
|
|
62
|
-
- chore(suite-desktop): bump electron (4641b02)
|
|
63
|
-
- npm-prerelease: @trezor/connect-common 0.3.0-beta.1 (e661c40)
|
|
64
|
-
- npm-prerelease: @trezor/connect-plugin-stellar 9.1.0-beta.1 (ec3e39f)
|
|
65
|
-
- npm-prerelease: @trezor/connect-plugin-ethereum 9.1.0-beta.1 (5513fee)
|
|
66
|
-
- chore(suite-native): update expo-linking (0e80d40)
|
|
38
|
+
- edgecase where device is not detected during fw update using the old bridge (5fa3d45)
|
|
39
|
+
- use serializeError on FW hash check errors (0aadfb0)
|
|
40
|
+
- handle rejection in acquire/release (e47bf08)
|
|
41
|
+
- allow firmwareUpdate from binary without known device.firmwareRelease (7517a71)
|
|
42
|
+
- filterSafeListByBootloader: current bootloader version > recent release version (53d6e22)
|
|
43
|
+
- fix potential device hang after received message assertion error (59d6e69)
|
|
44
|
+
- fix device hanged after initial getFeatures timeout (bc385c2)
|
|
45
|
+
- solana transaction decode (5cb1895)
|
|
46
|
+
- resetDevice typed error (8795800)
|
|
47
|
+
- clear initial GetFeatures timeout (c0a9ecc)
|
|
48
|
+
- ethereum decimal places (c40929b)
|
|
49
|
+
- fix(connect): gracefully handle offline FW revision check in react native (a969076)
|
|
50
|
+
- fix(connect-explorer): pass description for nested parameters (fc44b51)
|
|
51
|
+
- fix(connect): allow to: null in ethereumSignTransaction for contract deployment (1aa34bf)
|
|
67
52
|
|
|
68
53
|
## Chores
|
|
69
54
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
55
|
+
- use target ES2022 from root tsconfig.lib (2b75843, 83b4e69, a0395a2, d52b30b)
|
|
56
|
+
- docs(connect-mobile): improve description of deeplinking protocol (aa1436e)
|
|
57
|
+
- chore(connect-common): update authenticity config (6ba9ead)
|
|
58
|
+
- unify timeout utils (fd9f509, dedff02, 4b57c17)
|
|
59
|
+
- chore: update solana and everstake deps (cf806ff)
|
|
60
|
+
- chore(connect-plugin-ethereum): update dep (91da7e7)
|
|
61
|
+
- chore(connect-plugin-stellar): update dep (daffb20)
|
|
62
|
+
- chore(suite): bump webpack (eab0cc7)
|
|
63
|
+
- chore(suite-desktop): bump electron-builder (306a3cf)
|
|
64
|
+
- chore(suite-desktop): bump electron (4641b02)
|
|
65
|
+
- define TrezorError.toString with pertinent info (ad09f50)
|
|
66
|
+
- emit FIRMWARE_VERSION_CHANGED event (d6de99a)
|
|
67
|
+
- return firmwareUpdate installed version details (4b6efed)
|
|
68
|
+
- add validation schema to cardanoComposeTransaction (05e52d8)
|
|
69
|
+
- solanaSignTransaction serialize (bb73ba6)
|
|
70
|
+
- multitransport (ff74c08, 1c89c28, 4424d07)
|
|
71
|
+
- add setTransports method (4880cd3)
|
|
72
|
+
- resetDevice with entropy check (c750a73)
|
|
73
|
+
- introduce internal_model UNKNOWN for non-standard models (289ebe9, e6c74f1)
|
|
74
|
+
- rename bnb to bsc (cc18737)
|
|
75
|
+
- make types strict to prevent accidental deletion via unused types, the optionality is a trap, they are required (184ebbb)
|
|
76
|
+
- remove account.addresses from cardanoComposeTransaction (1946d9f)
|
|
77
|
+
- clone udev/bridge info (a6d61a2)
|
|
86
78
|
|
|
87
79
|
# 9.4.7
|
|
88
80
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @trezor/connect
|
|
2
2
|
|
|
3
|
-
API version 9.5.0
|
|
3
|
+
API version 9.5.0
|
|
4
4
|
|
|
5
5
|
[](https://github.com/trezor/trezor-suite/actions/workflows/test-connect.yml)
|
|
6
6
|
[](https://www.npmjs.org/package/@trezor/connect)
|
|
@@ -39,6 +39,8 @@ const parseManifest = (manifest) => {
|
|
|
39
39
|
const corsValidator = (url) => {
|
|
40
40
|
if (typeof url !== 'string')
|
|
41
41
|
return;
|
|
42
|
+
if (url === '../')
|
|
43
|
+
return url;
|
|
42
44
|
if (url.match(/^https:\/\/([A-Za-z0-9\-_]+\.)*trezor\.io\//))
|
|
43
45
|
return url;
|
|
44
46
|
if (url.match(/^https?:\/\/localhost:[58][0-9]{3}\//))
|
|
@@ -62,7 +64,7 @@ const parseConnectSettings = (input = {}) => {
|
|
|
62
64
|
if (input.trustedHost === false) {
|
|
63
65
|
settings.trustedHost = input.trustedHost;
|
|
64
66
|
}
|
|
65
|
-
if (typeof input.connectSrc === 'string'
|
|
67
|
+
if (typeof input.connectSrc === 'string') {
|
|
66
68
|
settings.connectSrc = (0, exports.corsValidator)(input.connectSrc);
|
|
67
69
|
}
|
|
68
70
|
else if (settings.trustedHost) {
|
package/lib/data/version.d.ts
CHANGED
package/lib/data/version.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DEEPLINK_VERSION = exports.CONTENT_SCRIPT_VERSION = exports.DEFAULT_DOMAIN = exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '9.5.0
|
|
4
|
+
exports.VERSION = '9.5.0';
|
|
5
5
|
const versionN = exports.VERSION.split('.').map(s => parseInt(s, 10));
|
|
6
6
|
const isBeta = exports.VERSION.includes('beta');
|
|
7
7
|
exports.DEFAULT_DOMAIN = isBeta
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trezor/connect",
|
|
3
|
-
"version": "9.5.0
|
|
3
|
+
"version": "9.5.0",
|
|
4
4
|
"author": "Trezor <info@trezor.io>",
|
|
5
5
|
"homepage": "https://github.com/trezor/trezor-suite/tree/develop/packages/connect",
|
|
6
6
|
"description": "High-level javascript interface for Trezor hardware wallet.",
|
|
@@ -80,18 +80,18 @@
|
|
|
80
80
|
"@solana-program/token": "^0.4.1",
|
|
81
81
|
"@solana-program/token-2022": "^0.3.4",
|
|
82
82
|
"@solana/web3.js": "^2.0.0",
|
|
83
|
-
"@trezor/blockchain-link": "2.4.0
|
|
84
|
-
"@trezor/blockchain-link-types": "1.3.0
|
|
85
|
-
"@trezor/blockchain-link-utils": "1.3.0
|
|
86
|
-
"@trezor/connect-analytics": "1.
|
|
87
|
-
"@trezor/connect-common": "0.3.0
|
|
88
|
-
"@trezor/crypto-utils": "1.
|
|
89
|
-
"@trezor/protobuf": "1.3.0
|
|
83
|
+
"@trezor/blockchain-link": "2.4.0",
|
|
84
|
+
"@trezor/blockchain-link-types": "1.3.0",
|
|
85
|
+
"@trezor/blockchain-link-utils": "1.3.0",
|
|
86
|
+
"@trezor/connect-analytics": "1.3.0",
|
|
87
|
+
"@trezor/connect-common": "0.3.0",
|
|
88
|
+
"@trezor/crypto-utils": "1.1.0",
|
|
89
|
+
"@trezor/protobuf": "1.3.0",
|
|
90
90
|
"@trezor/protocol": "1.2.2",
|
|
91
|
-
"@trezor/schema-utils": "1.3.0
|
|
92
|
-
"@trezor/transport": "1.4.0
|
|
93
|
-
"@trezor/utils": "9.3.0
|
|
94
|
-
"@trezor/utxo-lib": "2.3.0
|
|
91
|
+
"@trezor/schema-utils": "1.3.0",
|
|
92
|
+
"@trezor/transport": "1.4.0",
|
|
93
|
+
"@trezor/utils": "9.3.0",
|
|
94
|
+
"@trezor/utxo-lib": "2.3.0",
|
|
95
95
|
"blakejs": "^1.2.1",
|
|
96
96
|
"bs58": "^6.0.0",
|
|
97
97
|
"bs58check": "^4.0.0",
|