Skip to content

Maintenance: remove deprecated crypto-js from development dependencies #459

Open

Description

@aelmanaa

Found during the 0.10.1 release review of #448 at 0ffdf5eaf89b4707b174e27559b1bcf4f94185e2 (base 2fb410a5ba52f0d29977725c934e2d35c1937aa4). Refs #47 and #253. The release preflight requires one issue per deprecation finding.

crypto-js@4.2.0 is already marked deprecated in the lockfile and the live npm metadata checked on 2026-10-10. The package is no longer maintained.

Dependency path: @nomicfoundation/hardhat-ledger@3.1.0 → @ledgerhq/evm-tools@1.15.0 → crypto-js@4.2.0.

Scope: Ledger integration tests. The Package checks job confirms this dependency is in the development tree only. All six fresh production installs (AWS/GCP/Azure with npm and pnpm) pass. This is a maintenance follow-up, not a blocker for 0.10.1 under the current documented deprecation policy.

Evidence: Package checks, Fresh install. Reproduce the notice with npm view crypto-js@4.2.0 deprecated and inspect the locked dependency path with pnpm why -r crypto-js on an installed checkout at this revision.

Suggested work: Keep Ledger coexistence coverage while moving the upstream dependency chain off CryptoJS. Prefer a supported upstream release; do not remove the integration tests just to hide this notice.

Acceptance:

  • The release lockfile no longer contains this deprecated version in the affected chain, or an explicit, evidence-backed upstream constraint is documented here.
  • The affected integration/example tests pass, as do package and fresh-install checks.
  • No unsupported dependency override is introduced merely to silence the warning.

Activity

  1. added this to the v1.1 milestone on Oct 10, 2026
  2. added
    dependencies
    type:chore
    priority:P2
    status:needs-triage
    size:M
    area:tooling
    area:upstream
    on Oct 10, 2026
  3. removed
    status:needs-triage
    on Oct 15, 2026
  4. removed this from the v1.1 milestone on Oct 15, 2026
  5. added
    maintenance
    status:blocked
    priority:P3
    on Oct 15, 2026
  6. aelmanaa commented on Oct 15, 2026

    @aelmanaa
    OwnerAuthor

    Triage 2026-10-15: dev-only (through @nomicfoundation/hardhat-ledger). Blocked upstream: hardhat-ledger 3.1.0 accepts only @ledgerhq/evm-tools ^1.7.7, and Ledger's hw-transport-node-hid pins node-hid 2.1.2 (prebuild-install). Next step is an upstream request to Hardhat; tracked like the other event-triggered issues (maintenance, no milestone).

  7. removed
    priority:P2
    on Oct 15, 2026
  8. added this to the Maintenance milestone on Oct 17, 2026
  9. aelmanaa commented on Oct 29, 2026

    @aelmanaa
    OwnerAuthor

    Upstream check on 2026-10-29, with npm view: this is blocked upstream, and there is no supported fix without an override.

    • @nomicfoundation/hardhat-ledger@3.1.1 (latest, 2026-10-15) depends directly on @ledgerhq/evm-tools: ^1.7.7.
    • Every 1.x release of @ledgerhq/evm-tools still pins crypto-js: 4.2.0, including the latest, 1.15.1 (2026-10-01).
    • @ledgerhq/evm-tools@2.0.0 (2026-10-08) replaces it with @noble/hashes, and @ledgerhq/hw-app-eth@7.11.1 already uses 2.0.0. The ^1.7.7 range in hardhat-ledger's own dependencies keeps 1.x in the tree, though.

    It clears when hardhat-ledger widens that range to ^2. Moving to hardhat-ledger 3.1.1 alone would not remove crypto-js, and it brings @nomicfoundation/hardhat-utils ^5, which #587 covers. I'm leaving this open to track the upstream change.

    🤖 Generated with Claude Code

  10. aelmanaa commented on Oct 30, 2026

    @aelmanaa
    OwnerAuthor

    Upstream status on 2026-10-30: @ledgerhq/evm-tools 2.0.0 dropped crypto-js for @noble/hashes (LedgerHQ/ts-libs#137). hardhat-ledger still asks for ^1.7.7. NomicFoundation/hardhat#8706 (open) removes evm-tools from hardhat-ledger altogether, but crypto-js comes back through @ledgerhq/context-module (^4.2.0, in getSchemaHash.ts).

    The open request for that is LedgerHQ/device-sdk-ts#923 ("switch to @noble/hashes", no reply since 2025-07). We plan a PR for it. This issue closes once Hardhat ships #8706 and a context-module release without crypto-js exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:toolingarea:upstreamdependenciesmaintenancepriority:P3size:Mstatus:blockedtype:chore

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions