@trezor/connect 9.3.1-beta.2 → 9.4.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 +90 -76
- package/README.md +1 -1
- package/lib/api/getAccountInfo.d.ts +2 -0
- package/lib/backend/Blockchain.js +0 -3
- package/lib/core/index.d.ts +14 -2
- package/lib/core/index.js +242 -208
- package/lib/data/DataManager.d.ts +5 -0
- package/lib/data/config.d.ts +5 -0
- package/lib/data/config.js +5 -0
- package/lib/data/downloadReleasesMetadata.d.ts +7 -0
- package/lib/data/downloadReleasesMetadata.js +15 -0
- package/lib/data/version.d.ts +1 -1
- package/lib/data/version.js +1 -1
- package/lib/device/Device.d.ts +4 -2
- package/lib/device/Device.js +31 -1
- package/lib/device/DeviceList.d.ts +1 -2
- package/lib/device/DeviceList.js +6 -5
- package/lib/device/calculateRevisionForDevice.d.ts +8 -0
- package/lib/device/calculateRevisionForDevice.js +21 -0
- package/lib/device/checkFirmwareRevision.d.ts +11 -0
- package/lib/device/checkFirmwareRevision.js +65 -0
- package/lib/types/device.d.ts +9 -0
- package/lib/types/firmware.d.ts +1 -0
- package/lib/utils/assets-browser.d.ts +1 -1
- package/lib/utils/assets-browser.js +3 -2
- package/lib/utils/assets.d.ts +3 -3
- package/lib/utils/assets.js +3 -3
- package/lib/utils/deviceFeaturesUtils.js +22 -6
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,128 +1,142 @@
|
|
|
1
|
-
| Package | Stable |
|
|
2
|
-
| :------------------------------: | :----: |
|
|
3
|
-
| npm @trezor/connect | 9.
|
|
4
|
-
| npm @trezor/connect-web | 9.
|
|
5
|
-
| npm @trezor/connect-webextension | 9.
|
|
1
|
+
| Package | Stable | Canary |
|
|
2
|
+
| :------------------------------: | :----: | :----: |
|
|
3
|
+
| npm @trezor/connect | 9.4.0 | - |
|
|
4
|
+
| npm @trezor/connect-web | 9.4.0 | - |
|
|
5
|
+
| npm @trezor/connect-webextension | 9.4.0 | - |
|
|
6
6
|
|
|
7
|
-
| Deployment | Stable |
|
|
8
|
-
| :----------------: | :----: |
|
|
9
|
-
| connect.trezor.io/ | 9.
|
|
7
|
+
| Deployment | Stable | Canary |
|
|
8
|
+
| :----------------: | :----: | :----: |
|
|
9
|
+
| connect.trezor.io/ | 9.4.0 | - |
|
|
10
10
|
|
|
11
11
|
Use the persistent link [connect.trezor.io/9](https://connect.trezor.io/9/) to access the latest stable version of Connect Explorer.
|
|
12
12
|
|
|
13
|
-
# 9.
|
|
13
|
+
# 9.4.0
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
- fix(connect): correctly wait for device selection in case of overriding (0c7a3bd)
|
|
17
|
-
- fix(connect): Fork old PassphraseTypeCard to connect (155afda)
|
|
18
|
-
- fix(connect): longer timeout for getFeatures due to suite-native performance issue (0910ab7)
|
|
19
|
-
- fix(connect): handle malformed EIP-712 data (d111006)
|
|
20
|
-
- fix(connect): remove superfluous space from error message (81be584)
|
|
21
|
-
- fix(connect): correctly await transport.receive (31c8519)
|
|
22
|
-
- fix(connect): proper pendingTransportEvent waiting (baa4144)
|
|
23
|
-
- chore(connect): add a comment to legacy code (a23a365)
|
|
24
|
-
|
|
25
|
-
## connect-web
|
|
26
|
-
|
|
27
|
-
- don't fallback to core in popup with no webusb (7120e83)
|
|
28
|
-
- clean up in popupmanager when useUi=false (9bc2ea9)
|
|
29
|
-
|
|
30
|
-
## connect-popup
|
|
15
|
+
## connect
|
|
31
16
|
|
|
32
|
-
|
|
17
|
+
### New Feature: coreMode Initialization Option
|
|
33
18
|
|
|
34
|
-
|
|
19
|
+
We have introduced a new initialization option, coreMode, which allows websites to choose between the existing iframe mode and the new popup mode. The popup mode enables the use of WebUSB on third-party websites, a feature not available in iframe mode. By default, coreMode is set to auto, allowing the library to automatically select the optimal mode based on the environment. For more details, please refer to the [init method documentation](https://connect.trezor.io/9.3.1-beta.1/methods/other/init/).
|
|
35
20
|
|
|
36
|
-
|
|
21
|
+
### Legacy Passphrase Support Removed
|
|
37
22
|
|
|
38
|
-
|
|
23
|
+
Support for legacy passphrases has been discontinued. Users with firmware versions earlier than 1.0.9 and 2.3.0 will need to update their devices to continue using @trezor/connect.
|
|
39
24
|
|
|
40
|
-
|
|
41
|
-
- don't validate connectSrc in webextension (8737d47)
|
|
42
|
-
- add link to new webextension example (86a13b1)
|
|
25
|
+
### Enhanced Popup Handshake Reliability
|
|
43
26
|
|
|
44
|
-
|
|
27
|
+
### Cardano Support Update
|
|
45
28
|
|
|
46
|
-
|
|
47
|
-
- bump @types/chrome from 0.0.260 to 0.0.269
|
|
48
|
-
- bump playwright from 1.41.2 to 1.45.3
|
|
49
|
-
- bump webpack-merge from 5.10.0 to 6.0.1
|
|
50
|
-
- bump webpack-dev-server from 4.15.1 to 5.0.4
|
|
51
|
-
- bump @babel/preset-typescript from 7.23.3 to 7.24.7
|
|
52
|
-
- bump @babel/preset-react from 7.23.3 to 7.24.7
|
|
53
|
-
- bump webpack from 5.90.1 to 5.93.0
|
|
54
|
-
- bump rimraf from 5.0.5 to 6.0.1
|
|
55
|
-
- bump txs from 4.7.0 to 4.16.2
|
|
29
|
+
Added support for Conway certificates and increased the minimum supported firmware version to 2.6.0 to streamline legacy code.
|
|
56
30
|
|
|
57
|
-
|
|
58
|
-
- npm-prerelease: @trezor/blockchain-link-utils 1.1.1-beta.2
|
|
59
|
-
- npm-prerelease: @trezor/blockchain-link-types 1.1.1-beta.2
|
|
60
|
-
- npm-prerelease: @trezor/analytics 1.1.1-beta.1
|
|
61
|
-
- npm-prerelease: @trezor/connect-common 0.1.1-beta.2
|
|
62
|
-
- npm-prerelease: @trezor/env-utils 1.1.1-beta.1
|
|
63
|
-
- npm-prerelease: @trezor/transport 1.2.1-beta.2
|
|
64
|
-
- npm-prerelease: @trezor/protobuf 1.1.1-beta.2
|
|
65
|
-
- npm-prerelease: @trezor/schema-utils 1.1.1-beta.1
|
|
66
|
-
- npm-prerelease: @trezor/protocol 1.1.1-beta.1
|
|
67
|
-
- npm-prerelease: @trezor/utxo-lib 2.1.1-beta.1
|
|
68
|
-
- npm-prerelease: @trezor/utils 9.1.1-beta.2
|
|
69
|
-
- npm-release: @trezor/connect 9.3.1-beta.2
|
|
31
|
+
### Minor Fixes
|
|
70
32
|
|
|
71
|
-
|
|
33
|
+
Various minor fixes have been implemented in Connect Explorer and the documentation.
|
|
72
34
|
|
|
73
|
-
|
|
35
|
+
### Device Authentication Enhancement
|
|
74
36
|
|
|
75
|
-
|
|
37
|
+
The AuthenticateDevice method now verifies CA certificate extensions.
|
|
76
38
|
|
|
77
|
-
|
|
39
|
+
### New Support for T3B1
|
|
78
40
|
|
|
79
|
-
|
|
41
|
+
Added support for T3B1.
|
|
80
42
|
|
|
81
43
|
- chore(connect): Add Ambire Browser Extension to knownHosts (cbe81ab)
|
|
82
|
-
- chore(connect): remove ethereum-cryptography (18851d1)
|
|
44
|
+
- chore(connect): remove ethereum-cryptography npm package (18851d1)
|
|
83
45
|
- chore(connect): split public and internal settings type (3aab4ea)
|
|
84
|
-
- chore(connect): remove useCoreInPopup from explorer and tests (fee60c1)
|
|
85
46
|
- chore(connect): add new CA pubkeys and update timestamp (48ec951)
|
|
86
47
|
- chore(connect): refactoring of the CheckFirmwareAuthenticity to support local binary (and wont download it from web, when its available in the suite) (82ab513)
|
|
87
|
-
- docs(connect): describe coreMode (a5238d6)
|
|
88
48
|
- fix(connect): disallow interaction-less fw update when switching fw type (4936939)
|
|
89
49
|
- fix(connect): validate x509 asn1 component (bc13fe2)
|
|
90
50
|
- fix(connect): handle missing language binary (954dbb9)
|
|
91
51
|
- fix(connect): proceed with fw install even when language data fails to download (b40d1b7)
|
|
92
52
|
- test(connect): x509 extensions parser (163c82c)
|
|
93
53
|
- test(connect): update to min version fw 1.0.9 and 2.3.0 (544c311)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
54
|
+
- add fw 2.8.1 (847cfd6)
|
|
55
|
+
- feat: Implement firmware hash check into device (905e656, 10a1c86, 95d3d90, 655b9d3)
|
|
56
|
+
- chore: rename bsc to bnb as it is declared in fw repo (0174dc2)
|
|
57
|
+
- fix: report devices without GetFeatures support as fw required (f6b7826)
|
|
58
|
+
- refactor: core and deviceList global state (6149ef1, d1e92f9, cbb4c5c, 167cacf, 0057aeb, 76ab7a0, 8e65374, 418b7cc)
|
|
59
|
+
- refactor(connect): removed initDeviceList, move transportReconnect inside DeviceList, make DeviceList reusable, device list constructor not throwing, singleton-like DeviceList, separate onTransportUpdate, pendingTransportEvent improved, improve DeviceList init flow (f4b3694, 02215de, b53259b, e8c6c25, e395dc8, 6509e5c, 3e30d64, d173966, 50cbbea, 1a81d89, 4780c51, 75bfe75, 83c0cb3, 73261c8, f2167bf, bb7dfee)
|
|
60
|
+
- fix(connect): correctly wait for device selection in case of overriding (0c7a3bd)
|
|
61
|
+
- fix(connect): Fork old PassphraseTypeCard to connect (155afda)
|
|
62
|
+
- fix(connect): longer timeout for getFeatures due to suite-native performance issue (0910ab7)
|
|
63
|
+
- fix(connect): handle malformed EIP-712 data (d111006)
|
|
64
|
+
- fix(connect): remove superfluous space from error message (81be584)
|
|
65
|
+
- fix(connect): correctly await transport.receive (31c8519)
|
|
66
|
+
- fix(connect): proper pendingTransportEvent waiting (baa4144)
|
|
67
|
+
- chore(connect): add a comment to legacy code (a23a365)
|
|
103
68
|
|
|
104
69
|
## connect-web
|
|
105
70
|
|
|
71
|
+
- clean up in popupmanager when useUi=false (9bc2ea9)
|
|
106
72
|
- default coreMode to auto (e45d47e)
|
|
107
|
-
- automatic fallback to core in popup (e4e1fcc)
|
|
73
|
+
- automatic fallback to core in popup (e4e1fcc, 7120e83)
|
|
108
74
|
|
|
109
|
-
## connect-
|
|
75
|
+
## connect-popup
|
|
110
76
|
|
|
111
|
-
-
|
|
77
|
+
- add missing device icons (9fdd1d7)
|
|
78
|
+
- Opera is now not marked as unsupported browser (8e34af7)
|
|
79
|
+
- fix typo in loader message (9adeb0b)
|
|
80
|
+
- allow on mobile (9a6ba2e, 462e45e)
|
|
81
|
+
- update no transport description message (10a79da)
|
|
82
|
+
- remove bridge references, deeplink to suite desktop (98e98a4)
|
|
112
83
|
|
|
113
84
|
## connect-explorer
|
|
114
85
|
|
|
86
|
+
- don't validate connectSrc in webextension (8737d47)
|
|
87
|
+
- add link to new webextension example (86a13b1)
|
|
88
|
+
- add extra meta tags & preview image (c4e1c2d)
|
|
89
|
+
- add loading indicator to method submit button (14e1248)
|
|
90
|
+
- clean up coins select - remove namecoin, vertcoin, capricoin and komodo (9cef961)
|
|
115
91
|
- applySettings optional values (0bcd83a)
|
|
116
92
|
- hide extra headings from toc in homepage (14f89c4)
|
|
117
93
|
- show success message in settings (0ca7c0c)
|
|
118
94
|
- remove MTT for firmwareUpdate (ebbe96c)
|
|
119
95
|
- bad styled-components prop (e2b7fc7)
|
|
120
96
|
|
|
97
|
+
## connect-webextension
|
|
98
|
+
|
|
99
|
+
- Prevent multiple content script extension conflicts (348b32a)
|
|
100
|
+
- link changelog to the one in connect (a02ec72)
|
|
101
|
+
|
|
121
102
|
## connect-common
|
|
122
103
|
|
|
123
104
|
- add new fw 2.8.0 (314052b)
|
|
124
105
|
- fw version 1.9.0 and 2.3.0 required (ee623e4)
|
|
125
106
|
|
|
107
|
+
## connect-plugin-stellar
|
|
108
|
+
|
|
109
|
+
- update stellar sdk (89cf20e)
|
|
110
|
+
- update trends libs (70b9c11)
|
|
111
|
+
|
|
112
|
+
## Dependencies update
|
|
113
|
+
|
|
114
|
+
- bump react-intl from 6.6.2 to 6.6.8
|
|
115
|
+
- bump @types/chrome from 0.0.260 to 0.0.269
|
|
116
|
+
- bump playwright from 1.41.2 to 1.45.3
|
|
117
|
+
- bump webpack-merge from 5.10.0 to 6.0.1
|
|
118
|
+
- bump webpack-dev-server from 4.15.1 to 5.0.4
|
|
119
|
+
- bump @babel/preset-typescript from 7.23.3 to 7.24.7
|
|
120
|
+
- bump @babel/preset-react from 7.23.3 to 7.24.7
|
|
121
|
+
- bump webpack from 5.90.1 to 5.93.0
|
|
122
|
+
- bump rimraf from 5.0.5 to 6.0.1
|
|
123
|
+
- bump txs from 4.7.0 to 4.16.2
|
|
124
|
+
|
|
125
|
+
- npm-release: @trezor/blockchain-link 2.3.0
|
|
126
|
+
- npm-release: @trezor/blockchain-link-utils 1.2.0
|
|
127
|
+
- npm-release: @trezor/blockchain-link-types 1.2.0
|
|
128
|
+
- npm-release: @trezor/connect-analytics 1.2.0
|
|
129
|
+
- npm-release: @trezor/analytics 1.2.0
|
|
130
|
+
- npm-release: @trezor/connect-common 0.2.0
|
|
131
|
+
- npm-release: @trezor/env-utils 1.2.0
|
|
132
|
+
- npm-release: @trezor/transport 1.3.0
|
|
133
|
+
- npm-release: @trezor/protobuf 1.2.0
|
|
134
|
+
- npm-release: @trezor/schema-utils 1.2.0
|
|
135
|
+
- npm-release: @trezor/protocol 1.2.0
|
|
136
|
+
- npm-release: @trezor/utxo-lib 2.2.0
|
|
137
|
+
- npm-release: @trezor/utils 9.2.0
|
|
138
|
+
- npm-release: @trezor/connect 9.4.0
|
|
139
|
+
|
|
126
140
|
# 9.3.0
|
|
127
141
|
|
|
128
142
|
Improved reliability of popup handshake mechanism.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @trezor/connect
|
|
2
2
|
|
|
3
|
-
API version 9.
|
|
3
|
+
API version 9.4.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)
|
|
@@ -58,6 +58,7 @@ export default class GetAccountInfo extends AbstractMethod<'getAccountInfo', Req
|
|
|
58
58
|
poolId: string | null;
|
|
59
59
|
} | undefined;
|
|
60
60
|
owner?: string | undefined;
|
|
61
|
+
rent?: number | undefined;
|
|
61
62
|
} | undefined;
|
|
62
63
|
page?: {
|
|
63
64
|
index: number;
|
|
@@ -103,6 +104,7 @@ export default class GetAccountInfo extends AbstractMethod<'getAccountInfo', Req
|
|
|
103
104
|
poolId: string | null;
|
|
104
105
|
} | undefined;
|
|
105
106
|
owner?: string | undefined;
|
|
107
|
+
rent?: number | undefined;
|
|
106
108
|
} | undefined;
|
|
107
109
|
page?: {
|
|
108
110
|
index: number;
|
package/lib/core/index.d.ts
CHANGED
|
@@ -5,7 +5,19 @@ import { AbstractMethod } from './AbstractMethod';
|
|
|
5
5
|
import { LogWriter } from '../utils/debug';
|
|
6
6
|
import type { ConnectSettings } from '../types';
|
|
7
7
|
export declare class Core extends EventEmitter {
|
|
8
|
-
abortController
|
|
8
|
+
private abortController;
|
|
9
|
+
private callMethods;
|
|
10
|
+
private popupPromise;
|
|
11
|
+
private methodSynchronize;
|
|
12
|
+
private uiPromises;
|
|
13
|
+
private overridePromise;
|
|
14
|
+
private waitForFirstMethod;
|
|
15
|
+
private _interactionTimeout?;
|
|
16
|
+
private get interactionTimeout();
|
|
17
|
+
private _deviceList?;
|
|
18
|
+
private get deviceList();
|
|
19
|
+
private sendCoreMessage;
|
|
20
|
+
private getCoreContext;
|
|
9
21
|
handleMessage(message: CoreRequestMessage): void;
|
|
10
22
|
dispose(): void;
|
|
11
23
|
getCurrentMethod(): Promise<AbstractMethod<any, undefined>>;
|
|
@@ -16,7 +28,7 @@ export declare class Core extends EventEmitter {
|
|
|
16
28
|
export declare const initCoreState: () => {
|
|
17
29
|
get: () => Core | undefined;
|
|
18
30
|
getPending: () => Promise<Core> | undefined;
|
|
19
|
-
getOrInit: (settings: ConnectSettings, onCoreEvent: (message: CoreEventMessage) => void, logWriterFactory?: (() => LogWriter) | undefined) => Promise<Core>;
|
|
31
|
+
getOrInit: (settings: ConnectSettings, onCoreEvent: (message: CoreEventMessage) => void, logWriterFactory?: (() => LogWriter | undefined) | undefined) => Promise<Core>;
|
|
20
32
|
dispose: () => void;
|
|
21
33
|
};
|
|
22
34
|
//# sourceMappingURL=index.d.ts.map
|