Skip to content

chore: pin @ledgerhq/logs to a single version#7355

Merged
janicduplessis merged 1 commit intodevelopfrom
@janic/pin-ledgerhq-logs-resolution
Apr 17, 2026
Merged

chore: pin @ledgerhq/logs to a single version#7355
janicduplessis merged 1 commit intodevelopfrom
@janic/pin-ledgerhq-logs-resolution

Conversation

@janicduplessis
Copy link
Copy Markdown
Contributor

@janicduplessis janicduplessis commented Apr 15, 2026

What changed (plus any additional context for devs)

Adds an explicit yarn resolution for @ledgerhq/logs pinned to 6.16.0 β€” the version already resolved on develop today. This is strictly a pin, not a bump: no package version changes, just making the existing resolution explicit so future dep updates can't split it.

Without this pin, yarn can end up with multiple versions of @ledgerhq/logs hoisted into node_modules when dependencies are updated, because different ledgerhq packages specify different semver ranges. When that happens, TypeScript sees two separate declarations of the LocalTracer class with incompatible private fields, and src/utils/ledger.ts fails to type-check with:

Argument of type 'BleTransport' is not assignable to parameter of type 'Transport'.
  Types of property 'tracer' are incompatible.
    Type 'import(".../react-native-hw-transport-ble/node_modules/@ledgerhq/hw-transport/node_modules/@ledgerhq/logs/lib/index").LocalTracer' is not assignable to type 'import(".../node_modules/@ledgerhq/logs/lib/index").LocalTracer'.
      Types have separate declarations of a private property 'type'.

This should have been added alongside the ble-plx / hw-transport-ble bump in #7323 β€” the next dep bump that touches anything ledgerhq-adjacent will re-introduce the duplicate otherwise. Surfacing it as a standalone PR so it's easy to review and doesn't get lost inside an unrelated bump.

Screen recordings / screenshots

N/A β€” resolutions-only change.

What to test

  • yarn install completes without warnings about the ledger stack
  • yarn lint:ts passes (in particular, no BleTransport/LocalTracer errors in src/utils/ledger.ts)
  • Ledger hardware wallet flows still work on iOS and Android (pairing, signing)

@janicduplessis janicduplessis force-pushed the @janic/pin-ledgerhq-logs-resolution branch from 210e076 to e7e3218 Compare April 15, 2026 18:17
@github-actions
Copy link
Copy Markdown

Launch in simulator or device for 34b275c

Adds an explicit yarn resolution for @ledgerhq/logs. Without this,
yarn can end up with multiple versions of @ledgerhq/logs hoisted
into node_modules when dependencies are updated (different ledgerhq
packages specify different semver ranges), which produces two
separate LocalTracer class definitions with incompatible private
fields and breaks src/utils/ledger.ts under tsc.

This should have been added alongside the ble-plx / hw-transport-ble
bump in #7323 β€” the next dep bump that touches anything ledgerhq-adjacent
will re-introduce the duplicate otherwise.
@janicduplessis janicduplessis force-pushed the @janic/pin-ledgerhq-logs-resolution branch from e7e3218 to 75bbf34 Compare April 17, 2026 04:19
@github-actions
Copy link
Copy Markdown

Launch in simulator or device for 5041dd3

@github-actions
Copy link
Copy Markdown

πŸ§ͺ Flashlight Performance Report (AWS Device Farm)

πŸ”€ Commit: 5041dd3

πŸ“Ž View Artifacts

Metric Current Ξ” vs Baseline
Time to Interactive (TTI) 5556 ms βšͺ -33.8 ms (-0.6%)
Average FPS 56.59 βšͺ -0.1 (-0.2%)
Average RAM 395.3 MB βšͺ +3.0 MB (+0.8%)

@janicduplessis janicduplessis merged commit 41f030d into develop Apr 17, 2026
25 of 26 checks passed
@janicduplessis janicduplessis deleted the @janic/pin-ledgerhq-logs-resolution branch April 17, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants