Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Replace superstruct with ESM-compatible fork @metamask/superstruct #327

Closed
@MajorLift

Description

@MajorLift

Explanation

As part of the Wallet Framework Team's OKR (Q2 2024 O3KR4) for upgrading TypeScript to v5.0+ in the core monorepo, we are updating dependencies of the core repo so that they generate builds and type declarations for both CJS and ESM.

This requirement applies to nested dependencies as well, so we are also replacing superstruct with the ESM-compatible fork @metamask/superstruct in all core dependency packages.

Description

  • Replace superstruct dependency with @metamask/superstruct v3.0.0.
  • Replace all superstruct import statements with @metamask/superstruct.
  • Bump @metamask/utils to v8.5.0.
  • If feasible without too much additional work, set module and moduleResolution tsconfig options to NodeNext and TypeScript to v5.
  • Create new release applying these changes.

References

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions