Skip to content

Convert yarn → npm + Socket security upgrades + @edge.app fork aliases#454

Open
peachbits wants to merge 2 commits into
masterfrom
convert-to-npm
Open

Convert yarn → npm + Socket security upgrades + @edge.app fork aliases#454
peachbits wants to merge 2 commits into
masterfrom
convert-to-npm

Conversation

@peachbits
Copy link
Copy Markdown
Contributor

@peachbits peachbits commented May 26, 2026

Summary

Three-commit branch:

  1. Convert from yarn to npm
  2. Apply Socket-recommended security upgrades
  3. Add overrides to use @edge.app/ npm aliases for fork transitives* — ecpair, bs58grscheck@^2, and groestl-hash-js (all pulled in transitively via edge-currency-plugins and edge-currency-accountbased) now resolve through the registry instead of git URLs.

Avoids the npm git-dep-prep bug (npm/cli#9005) that conflicts with min-release-age in user ~/.npmrc.

Remaining work outside this PR

@fioprotocol/fiosdk is still pulled in via a git URL through edge-currency-accountbased. That will be addressed by switching ECA's direct dep to the registry-published @fioprotocol/fiosdk@^1.10.3 (upstream now ships types itself, making the EdgeApp fork obsolete).

Test plan

  • sfw npm install succeeds (after ECA's fiosdk move and 7-day age-in for the new @edge.app packages, or via npm ci)
  • No git URLs in the resolved lockfile beyond @fioprotocol/fiosdk (verified locally)

Note

Medium Risk
Medium risk from dependency resolution/overrides and lockfile churn affecting installs and transitive crypto libs; runtime plugin logic in the diff is mostly documentation and tooling.

Overview
This PR moves the repo from Yarn to npm as the package manager: .yarnrc is removed, .npmrc adds legacy-peer-deps and ignore-scripts, and .gitignore no longer excludes package-lock.json so the npm lockfile is tracked. Docs and scripts (README, exchange-plugin guides, convert.sh) now use npm install / npm run instead of yarn.

Per the PR scope (see package.json), it also applies Socket-recommended dependency upgrades and overrides so transitive git deps resolve to @edge.app/* registry aliases (ecpair, bs58grscheck, groestl-hash-js) plus @fioprotocol/fiosdk on the registry—reducing install friction with strict npm registry policies.

Note: Some in-repo references may still say yarn (e.g. CI/mapctl strings); the diff shown updates the main contributor-facing docs.

Reviewed by Cursor Bugbot for commit af93a63. Bugbot is set up for automated code reviews on this repo. Configure here.

convert-to-npm added 2 commits May 26, 2026 14:10
Adds `overrides` so transitive `ecpair`, `bs58grscheck@^2`, and
`groestl-hash-js` resolve through the @edge.app registry packages
instead of git URLs.

EEP itself doesn't directly depend on any of these — they come in
via `edge-currency-plugins` and `edge-currency-accountbased` (both
devDeps). With these overrides, the install graph no longer contains
git URLs for those three packages.

Remaining git dep `@fioprotocol/fiosdk` (via ECA) is outside this
PR's scope and will be replaced with the registry-published
`@fioprotocol/fiosdk@^1.10.3` separately.
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.

1 participant