@ledgerhq/ledger-key-ring-protocol 0.13.3 → 0.13.4-nightly.20260529145638
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 +17 -0
- package/package.json +7 -7
- package/scripts/e2e.ts +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @ledgerhq/live-wallet
|
|
2
2
|
|
|
3
|
+
## 0.13.4-nightly.20260529145638
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#17809](https://github.com/LedgerHQ/ledger-live/pull/17809) [`d61c27f`](https://github.com/LedgerHQ/ledger-live/commit/d61c27ffa89b7dc5d69278a38ebca3e9ea3aed6c) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Repair the speculos e2e recording pipeline:
|
|
8
|
+
|
|
9
|
+
- `live-dmk-speculos` now consumes the speculos `/events?stream=true` SSE feed and forwards events to `automationEvents`. The wiring had been silently dropped, so any scenario that drives on-device prompts (e.g. `pnpm lkrp e2e`) would stall waiting for button presses that never fired. The stream is opened lazily on first subscription and torn down when the last subscriber leaves, so APDU-only consumers (e.g. desktop e2e smoke tests) pay no socket cost. `automationEvents` is now an `Observable` rather than a `Subject` — existing `.subscribe()` / `.pipe()` consumers are unaffected.
|
|
10
|
+
- `ledger-key-ring-protocol`'s e2e runner script switches its dynamic scenario loader from `await import()` to `createRequire` so Node 22+ resolves the `.ts` scenario files through the ts-node CJS hook instead of the native ESM resolver.
|
|
11
|
+
|
|
12
|
+
- Updated dependencies [[`5fc817a`](https://github.com/LedgerHQ/ledger-live/commit/5fc817a5ee316396a327e5b10eccd8314bfb2df5), [`65f87d9`](https://github.com/LedgerHQ/ledger-live/commit/65f87d938ac4158e0ae706593d2a46561097f5a9)]:
|
|
13
|
+
- @ledgerhq/live-env@2.37.0-nightly.20260529145638
|
|
14
|
+
- @ledgerhq/hw-ledger-key-ring-protocol@0.10.4-nightly.20260529145638
|
|
15
|
+
- @ledgerhq/live-network@2.6.3-nightly.20260529145638
|
|
16
|
+
- @ledgerhq/speculos-transport@0.10.3-nightly.20260529145638
|
|
17
|
+
- @ledgerhq/hw-transport@6.35.3-nightly.20260529145638
|
|
18
|
+
- @ledgerhq/hw-transport-mocker@6.34.3-nightly.20260529145638
|
|
19
|
+
|
|
3
20
|
## 0.13.3
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/ledger-key-ring-protocol",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.4-nightly.20260529145638",
|
|
4
4
|
"description": "Ledger Key Ring Protocol layer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger"
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"rxjs": "7.8.2",
|
|
62
62
|
"ws": "8.18.3",
|
|
63
63
|
"@ledgerhq/errors": "6.35.0",
|
|
64
|
-
"@ledgerhq/hw-transport": "6.35.
|
|
65
|
-
"@ledgerhq/hw-transport-mocker": "6.34.
|
|
66
|
-
"@ledgerhq/hw-ledger-key-ring-protocol": "0.10.
|
|
67
|
-
"@ledgerhq/live-env": "2.
|
|
68
|
-
"@ledgerhq/live-network": "2.6.
|
|
64
|
+
"@ledgerhq/hw-transport": "6.35.3-nightly.20260529145638",
|
|
65
|
+
"@ledgerhq/hw-transport-mocker": "6.34.3-nightly.20260529145638",
|
|
66
|
+
"@ledgerhq/hw-ledger-key-ring-protocol": "0.10.4-nightly.20260529145638",
|
|
67
|
+
"@ledgerhq/live-env": "2.37.0-nightly.20260529145638",
|
|
68
|
+
"@ledgerhq/live-network": "2.6.3-nightly.20260529145638",
|
|
69
69
|
"@ledgerhq/logs": "6.17.0",
|
|
70
|
-
"@ledgerhq/speculos-transport": "0.10.
|
|
70
|
+
"@ledgerhq/speculos-transport": "0.10.3-nightly.20260529145638",
|
|
71
71
|
"@ledgerhq/types-devices": "^6.31.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
package/scripts/e2e.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
/* oxlint-disable eslint/no-console */
|
|
2
2
|
import fsPromises from "fs/promises";
|
|
3
|
+
import { createRequire } from "module";
|
|
3
4
|
import { listen } from "@ledgerhq/logs";
|
|
4
5
|
import { recordTestTrustchainSdk } from "../tests/test-helpers/recordTrustchainSdkTests";
|
|
5
6
|
import path from "path";
|
|
6
7
|
import expect from "expect";
|
|
7
8
|
|
|
9
|
+
// Use CJS require so ts-node's CJS hook handles .ts scenario files.
|
|
10
|
+
// Dynamic `import()` would go through Node's native ESM resolver, which
|
|
11
|
+
// does not understand TypeScript paths (broken on Node 22+).
|
|
12
|
+
const requireScenario = createRequire(__filename);
|
|
13
|
+
|
|
8
14
|
// we force inject expect to allow us to have expect() code in the test-scenarios
|
|
9
15
|
(global as any).expect = expect;
|
|
10
16
|
|
|
@@ -24,7 +30,7 @@ async function main() {
|
|
|
24
30
|
if (file.endsWith(".ts") && !file.startsWith("_")) {
|
|
25
31
|
const slug = file.slice(0, -3);
|
|
26
32
|
const e2eFile = path.join(scenarioFolder, file);
|
|
27
|
-
const mod =
|
|
33
|
+
const mod = requireScenario(e2eFile);
|
|
28
34
|
const scenario = mod.scenario;
|
|
29
35
|
const snapshotFile = path.join(mockFolder, slug + ".json");
|
|
30
36
|
const snapshotFileExists = await exists(snapshotFile);
|