Skip to content

Fix Docker build for js-v2.x #752

@acul71

Description

@acul71

Problem

The Docker build for js-v2.x was failing with TypeScript compilation errors:

  • discoverRelays property doesn't exist in CircuitRelayTransportInit type
  • TypeScript configuration incompatibilities with aegir 47.0.16

Solution

  • Updated aegir from ^47.0.16 to ^47.0.22 to match js-v3.x (which builds successfully)
  • Removed discoverRelays: 1 parameter from circuitRelayTransport() call - this API was removed in @libp2p/circuit-relay-v2 v3.x, relay discovery is now automatic
  • Updated package-lock.json to sync with new aegir version

Changes

  • transport/impls/js/v2.x/package.json - Updated aegir version
  • transport/impls/js/v2.x/package-lock.json - Synced dependencies
  • transport/impls/js/v2.x/test/fixtures/get-libp2p.ts - Removed deprecated discoverRelays parameter

The build now completes successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions