@trezor/connect 9.3.1-beta.2 → 9.3.1-beta.3
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 +37 -4
- 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 +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,48 @@
|
|
|
1
1
|
| Package | Stable | Canary |
|
|
2
2
|
| :------------------------------: | :----: | :----------: |
|
|
3
|
-
| npm @trezor/connect | 9.3.0 | 9.3.1-beta.
|
|
4
|
-
| npm @trezor/connect-web | 9.3.0 | 9.3.1-beta.
|
|
5
|
-
| npm @trezor/connect-webextension | 9.3.0 | 9.3.1-beta.
|
|
3
|
+
| npm @trezor/connect | 9.3.0 | 9.3.1-beta.3 |
|
|
4
|
+
| npm @trezor/connect-web | 9.3.0 | 9.3.1-beta.3 |
|
|
5
|
+
| npm @trezor/connect-webextension | 9.3.0 | 9.3.1-beta.3 |
|
|
6
6
|
|
|
7
7
|
| Deployment | Stable | Canary |
|
|
8
8
|
| :----------------: | :----: | :----------: |
|
|
9
|
-
| connect.trezor.io/ | 9.3.0 | 9.3.1-beta.
|
|
9
|
+
| connect.trezor.io/ | 9.3.0 | 9.3.1-beta.3 |
|
|
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.3.1-beta.3
|
|
14
|
+
|
|
15
|
+
## connect
|
|
16
|
+
|
|
17
|
+
- add fw 2.8.1 (847cfd6)
|
|
18
|
+
- feat: Implement firmware hash check into device (905e656, 10a1c86, 95d3d90, 655b9d3)
|
|
19
|
+
- chore: rename bsc to bnb as it is declared in fw repo (0174dc2)
|
|
20
|
+
- fix: report devices without GetFeatures support as fw required (f6b7826)
|
|
21
|
+
- refactor: core and deviceList global state (6149ef1, d1e92f9, cbb4c5c, 167cacf, 0057aeb, 76ab7a0, 8e65374, 418b7cc)
|
|
22
|
+
|
|
23
|
+
## connect-popup
|
|
24
|
+
|
|
25
|
+
- Opera is now not marked as unsupported browser (8e34af7)
|
|
26
|
+
- fix typo in loader message (9adeb0b)
|
|
27
|
+
- allow on mobile (9a6ba2e, 462e45e)
|
|
28
|
+
- update no transport description message (10a79da)
|
|
29
|
+
|
|
30
|
+
## connect-explorer
|
|
31
|
+
|
|
32
|
+
- add extra meta tags & preview image (c4e1c2d)
|
|
33
|
+
- add loading indicator to method submit button (14e1248)
|
|
34
|
+
- clean up coins select - remove namecoin, vertcoin, capricoin and komodo (9cef961)
|
|
35
|
+
|
|
36
|
+
## Dependencies update
|
|
37
|
+
|
|
38
|
+
- npm-prerelease: @trezor/blockchain-link 2.2.1-beta.3
|
|
39
|
+
- npm-prerelease: @trezor/blockchain-link-utils 1.1.1-beta.3
|
|
40
|
+
- npm-prerelease: @trezor/blockchain-link-types 1.1.1-beta.3
|
|
41
|
+
- npm-prerelease: @trezor/connect-analytics 1.1.1-beta.1
|
|
42
|
+
- npm-prerelease: @trezor/connect-common 0.1.1-beta.3
|
|
43
|
+
- npm-prerelease: @trezor/transport 1.2.1-beta.3
|
|
44
|
+
- npm-prerelease: @trezor/utils 9.1.1-beta.3
|
|
45
|
+
|
|
13
46
|
# 9.3.1-beta.2
|
|
14
47
|
|
|
15
48
|
- 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)
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @trezor/connect
|
|
2
2
|
|
|
3
|
-
API version 9.3.1-beta.
|
|
3
|
+
API version 9.3.1-beta.3
|
|
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
|