Skip to content

fix(wallet-lib): keep @yarnpkg/pnpify out of runtime dependencies so npm can install dashmate - #5435

Merged
shumkov merged 1 commit into
v5.0-devfrom
fix/wallet-lib-pnpify-dev-dependency
Oct 15, 2026
Merged

shumkov merged 1 commit into
v5.0-devfrom
fix/wallet-lib-pnpify-dev-dependency

Conversation

@shumkov

@shumkov shumkov commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

npm i -g dashmate fails for every published version (including 4.1.1 and 5.0.0-rc.2) since 2026-09-24:

npm error code EUNSUPPORTEDPROTOCOL
npm error Unsupported URL Type "patch:": patch:got@npm%3A11.8.2#~/.yarn/patches/got-npm-11.8.2-c1eb105458.patch

dashmate depends on @dashevo/wallet-lib, which lists @yarnpkg/pnpify as a runtime dependency. pnpify pulls @yarnpkg/core@^4.9.1, and @yarnpkg/[email protected] (published 2026-09-24) declares got with yarn's own patch: protocol, which npm cannot resolve.

What was done?

Moved @yarnpkg/pnpify from dependencies to devDependencies in packages/wallet-lib/package.json. wallet-lib uses it only in its test:types script (yarn pnpify tsd); dash and wasm-dpp already list it as a dev dependency. yarn.lock does not change, and yarn constraints passes.

This ships to npm with the next release, so npm i -g dashmate@<next> installs again. Already-published versions stay broken on npm until upstream fixes @yarnpkg/core.

How Has This Been Tested?

npm 11.19 / Node 24, a scratch project depending on [email protected] with @dashevo/wallet-lib overridden to a tarball packed from this branch (yarn workspace @dashevo/wallet-lib pack):

  • before the change: EUNSUPPORTEDPROTOCOL (the error above);
  • after: 543 packages installed, no @yarnpkg/* package in the tree, dashmate --version runs.

No automated test: the failure depends on the state of the public npm registry.

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed
  • If I added or changed GroveDB structure, I described it in the area's structure.rs, regenerated grovedb-structure.json, and checked the structure viewer link posted on this pull request

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated internal package configuration. This change does not affect wallet features or behavior visible to users. No other user-facing changes are included in this release.

…npm can install dashmate

`npm i -g dashmate` fails for every published version since 2026-09-24:

  npm error code EUNSUPPORTEDPROTOCOL
  npm error Unsupported URL Type "patch:": patch:got@npm%3A11.8.2#~/.yarn/patches/got-npm-11.8.2-c1eb105458.patch

dashmate depends on @dashevo/wallet-lib, which listed @yarnpkg/pnpify as a
runtime dependency. pnpify pulls @yarnpkg/core@^4.9.1, and @yarnpkg/core
4.9.2 (published 2026-09-24) declares `got` with yarn's own `patch:`
protocol, which npm cannot resolve. wallet-lib uses pnpify only in its
`test:types` script (`yarn pnpify tsd`), so it belongs in devDependencies,
as it already is in dash and wasm-dpp. yarn.lock does not change.

Verified with npm 11.19 / Node 24: a project depending on dashmate
5.0.0-rc.2 with @dashevo/wallet-lib overridden to a tarball packed from
this branch: before the change ✖ EUNSUPPORTEDPROTOCOL; after it ✔ 543
packages installed, no @yarnpkg package in the tree, `dashmate --version`
runs. No automated test: the failure depends on the published npm
registry state; the check is a manual npm install of the packed tarball.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@shumkov shumkov added this to the v5.0.0 milestone Oct 15, 2026
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: dashpay/platform/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f9ead73b-5861-4170-98a1-2a5b17ba60eb
📥 Commits

Reviewing files that changed from the base of the PR and between f1be90e and b241f78.

📒 Files selected for processing: 1
  • packages/wallet-lib/package.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The wallet library package manifest moves @yarnpkg/pnpify from dependencies to devDependencies. The version remains ^4.0.0-rc.42.

Changes: Wallet library dependency classification

Layer / File(s) Summary
Dependency classification
packages/wallet-lib/package.json
Moves @yarnpkg/pnpify from dependencies to devDependencies at the same version.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: quantumexplorer

Merge Risk: ⚪ Minimal · up to b241f

This keeps pnpify available for wallet-lib type tests while removing it from consumer runtime dependencies; no shipped runtime path uses it, so no actionable merge risk remains.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: moving @yarnpkg/pnpify out of runtime dependencies to allow npm to install dashmate.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thepastaclaw

Copy link
Copy Markdown
Collaborator

🕓 Review not started yet because the new head is waiting for the 30-minute push debounce.

  • Request normal review — click when the PR is ready for review.
  • Request priority review — click to move this review to the front of the queue.

Commit b241f78. Normal review starts when eligible; priority review starts as soon as a slot is available.

@shumkov
shumkov merged commit c1649d8 into v5.0-dev Oct 15, 2026
10 checks passed
@shumkov
shumkov deleted the fix/wallet-lib-pnpify-dev-dependency branch October 15, 2026 06:19
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