@trezor/connect 9.3.1-beta.1 → 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 CHANGED
@@ -1,15 +1,106 @@
1
1
  | Package | Stable | Canary |
2
2
  | :------------------------------: | :----: | :----------: |
3
- | npm @trezor/connect | 9.3.0 | 9.3.1-beta.1 |
4
- | npm @trezor/connect-web | 9.3.0 | 9.3.1-beta.1 |
5
- | npm @trezor/connect-webextension | 9.3.0 | 9.3.1-beta.1 |
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.1 |
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
+
46
+ # 9.3.1-beta.2
47
+
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)
49
+ - fix(connect): correctly wait for device selection in case of overriding (0c7a3bd)
50
+ - fix(connect): Fork old PassphraseTypeCard to connect (155afda)
51
+ - fix(connect): longer timeout for getFeatures due to suite-native performance issue (0910ab7)
52
+ - fix(connect): handle malformed EIP-712 data (d111006)
53
+ - fix(connect): remove superfluous space from error message (81be584)
54
+ - fix(connect): correctly await transport.receive (31c8519)
55
+ - fix(connect): proper pendingTransportEvent waiting (baa4144)
56
+ - chore(connect): add a comment to legacy code (a23a365)
57
+
58
+ ## connect-web
59
+
60
+ - don't fallback to core in popup with no webusb (7120e83)
61
+ - clean up in popupmanager when useUi=false (9bc2ea9)
62
+
63
+ ## connect-popup
64
+
65
+ - add missing device icons (9fdd1d7)
66
+
67
+ ## connect-webextension
68
+
69
+ - Allow multiple content script extension conflicts (348b32a)
70
+
71
+ ## connect-explorer
72
+
73
+ - wrong default coreMode in settings (3a81f14)
74
+ - don't validate connectSrc in webextension (8737d47)
75
+ - add link to new webextension example (86a13b1)
76
+
77
+ ## Dependencies update
78
+
79
+ - bump react-intl from 6.6.2 to 6.6.8
80
+ - bump @types/chrome from 0.0.260 to 0.0.269
81
+ - bump playwright from 1.41.2 to 1.45.3
82
+ - bump webpack-merge from 5.10.0 to 6.0.1
83
+ - bump webpack-dev-server from 4.15.1 to 5.0.4
84
+ - bump @babel/preset-typescript from 7.23.3 to 7.24.7
85
+ - bump @babel/preset-react from 7.23.3 to 7.24.7
86
+ - bump webpack from 5.90.1 to 5.93.0
87
+ - bump rimraf from 5.0.5 to 6.0.1
88
+ - bump txs from 4.7.0 to 4.16.2
89
+
90
+ - npm-prerelease: @trezor/blockchain-link 2.2.1-beta.2
91
+ - npm-prerelease: @trezor/blockchain-link-utils 1.1.1-beta.2
92
+ - npm-prerelease: @trezor/blockchain-link-types 1.1.1-beta.2
93
+ - npm-prerelease: @trezor/analytics 1.1.1-beta.1
94
+ - npm-prerelease: @trezor/connect-common 0.1.1-beta.2
95
+ - npm-prerelease: @trezor/env-utils 1.1.1-beta.1
96
+ - npm-prerelease: @trezor/transport 1.2.1-beta.2
97
+ - npm-prerelease: @trezor/protobuf 1.1.1-beta.2
98
+ - npm-prerelease: @trezor/schema-utils 1.1.1-beta.1
99
+ - npm-prerelease: @trezor/protocol 1.1.1-beta.1
100
+ - npm-prerelease: @trezor/utxo-lib 2.1.1-beta.1
101
+ - npm-prerelease: @trezor/utils 9.1.1-beta.2
102
+ - npm-release: @trezor/connect 9.3.1-beta.2
103
+
13
104
  # 9.3.1-beta.1
14
105
 
15
106
  We introduce a new init option `coreMode`, which allows websites to interact either using the existing `iframe` mode or the new `popup` mode. The `popup` mode is allows to use WebUSB even on third-party websites, which is not possible with the `iframe` mode. By default, the `coreMode` is set to `auto`, which means that the library will automatically choose the best mode based on the environment. More information can be found in [init method documentation](https://connect.trezor.io/9.3.1-beta.1/methods/other/init/).
@@ -20,50 +111,50 @@ AuthenticateDevice verify CA cert extensions (4ba4445)
20
111
 
21
112
  Add support for T3B1 (f7f1705)
22
113
 
23
- - chore(connect): Add Ambire Browser Extension to knownHosts (cbe81ab)
24
- - chore(connect): remove ethereum-cryptography (18851d1)
25
- - chore(connect): split public and internal settings type (3aab4ea)
26
- - chore(connect): remove useCoreInPopup from explorer and tests (fee60c1)
27
- - chore(connect): add new CA pubkeys and update timestamp (48ec951)
28
- - chore(connect): refactoring of the CheckFirmwareAuthenticity to support local binary (and wont download it from web, when its available in the suite) (82ab513)
29
- - docs(connect): describe coreMode (a5238d6)
30
- - fix(connect): disallow interaction-less fw update when switching fw type (4936939)
31
- - fix(connect): validate x509 asn1 component (bc13fe2)
32
- - fix(connect): handle missing language binary (954dbb9)
33
- - fix(connect): proceed with fw install even when language data fails to download (b40d1b7)
34
- - test(connect): x509 extensions parser (163c82c)
35
- - test(connect): update to min version fw 1.0.9 and 2.3.0 (544c311)
114
+ - chore(connect): Add Ambire Browser Extension to knownHosts (cbe81ab)
115
+ - chore(connect): remove ethereum-cryptography (18851d1)
116
+ - chore(connect): split public and internal settings type (3aab4ea)
117
+ - chore(connect): remove useCoreInPopup from explorer and tests (fee60c1)
118
+ - chore(connect): add new CA pubkeys and update timestamp (48ec951)
119
+ - chore(connect): refactoring of the CheckFirmwareAuthenticity to support local binary (and wont download it from web, when its available in the suite) (82ab513)
120
+ - docs(connect): describe coreMode (a5238d6)
121
+ - fix(connect): disallow interaction-less fw update when switching fw type (4936939)
122
+ - fix(connect): validate x509 asn1 component (bc13fe2)
123
+ - fix(connect): handle missing language binary (954dbb9)
124
+ - fix(connect): proceed with fw install even when language data fails to download (b40d1b7)
125
+ - test(connect): x509 extensions parser (163c82c)
126
+ - test(connect): update to min version fw 1.0.9 and 2.3.0 (544c311)
36
127
 
37
128
  ## connect-ui
38
129
 
39
- - remove bridge references, deeplink to suite desktop (98e98a4)
130
+ - remove bridge references, deeplink to suite desktop (98e98a4)
40
131
 
41
132
  ## connect-plugin-stellar
42
133
 
43
- - update stellar sdk (89cf20e)
44
- - update trends libs (70b9c11)
134
+ - update stellar sdk (89cf20e)
135
+ - update trends libs (70b9c11)
45
136
 
46
137
  ## connect-web
47
138
 
48
- - default coreMode to auto (e45d47e)
49
- - automatic fallback to core in popup (e4e1fcc)
139
+ - default coreMode to auto (e45d47e)
140
+ - automatic fallback to core in popup (e4e1fcc)
50
141
 
51
142
  ## connect-webextension
52
143
 
53
- - link changelog to the one in connect (a02ec72)
144
+ - link changelog to the one in connect (a02ec72)
54
145
 
55
146
  ## connect-explorer
56
147
 
57
- - applySettings optional values (0bcd83a)
58
- - hide extra headings from toc in homepage (14f89c4)
59
- - show success message in settings (0ca7c0c)
60
- - remove MTT for firmwareUpdate (ebbe96c)
61
- - bad styled-components prop (e2b7fc7)
148
+ - applySettings optional values (0bcd83a)
149
+ - hide extra headings from toc in homepage (14f89c4)
150
+ - show success message in settings (0ca7c0c)
151
+ - remove MTT for firmwareUpdate (ebbe96c)
152
+ - bad styled-components prop (e2b7fc7)
62
153
 
63
154
  ## connect-common
64
155
 
65
- - add new fw 2.8.0 (314052b)
66
- - fw version 1.9.0 and 2.3.0 required (ee623e4)
156
+ - add new fw 2.8.0 (314052b)
157
+ - fw version 1.9.0 and 2.3.0 required (ee623e4)
67
158
 
68
159
  # 9.3.0
69
160
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @trezor/connect
2
2
 
3
- API version 9.3.1-beta.1
3
+ API version 9.3.1-beta.3
4
4
 
5
5
  [![Build Status](https://github.com/trezor/trezor-suite/actions/workflows/test-connect.yml/badge.svg)](https://github.com/trezor/trezor-suite/actions/workflows/test-connect.yml)
6
6
  [![NPM](https://img.shields.io/npm/v/@trezor/connect.svg)](https://www.npmjs.org/package/@trezor/connect)
@@ -150,7 +150,9 @@ class EthereumSignTypedData extends AbstractMethod_1.AbstractMethod {
150
150
  memberTypeName = memberTypeDefinition.type;
151
151
  memberData = memberData[memberTypeDefinition.name];
152
152
  }
153
- else {
153
+ if (memberData === null || memberData === undefined) {
154
+ cmd.typedCall('Cancel', 'Success');
155
+ throw constants_1.ERRORS.TypedError('Runtime', `Value from member path ${member_path} is missing in the data object`);
154
156
  }
155
157
  }
156
158
  let encodedData;
@@ -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;
@@ -26,9 +26,6 @@ const getNormalizedShortcut = (shortcut) => {
26
26
  if (shortcut === 'tXRP') {
27
27
  return 'XRP';
28
28
  }
29
- if (shortcut.toLowerCase() === 'bsc') {
30
- return 'bnb';
31
- }
32
29
  return shortcut;
33
30
  };
34
31
  class Blockchain {
@@ -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: 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