Repository navigation
Closed
Description
Prerequisites
- I have searched for duplicate or closed issues
- I have read the contributing guidelines
Describe the issue
@pierre/[email protected] (tagged latest, published 2026-11-03 02:15 UTC) was published with unresolved workspace:* and catalog: specifiers in dependencies (package.json#L72-L77).
$ npm view @pierre/[email protected] dependencies --json
{
"diff": "catalog:",
"shiki": "^3.0.0 || ^4.0.0",
"lru_map": "catalog:",
"@pierre/theme": "workspace:*",
"@pierre/theming": "workspace:*",
"hast-util-to-html": "catalog:",
"@pierre/highlights": "workspace:*"
}
$ npm view @pierre/[email protected] dependencies --json
{
"diff": "9.0.0",
"shiki": "^3.0.0 || ^4.0.0",
"lru_map": "0.4.1",
"@pierre/theme": "2.0.0",
"@pierre/theming": "1.0.2",
"hast-util-to-html": "9.0.5",
"@pierre/highlights": "0.3.0"
}
The registry metadata suggests 1.6.3 was published with the npm CLI rather than pnpm publish. npm doesn't rewrite workspace: or catalog: specifiers when packing:
$ npm view @pierre/[email protected] _npmVersion gitHead
(both empty, as with pnpm publish)
$ npm view @pierre/[email protected] _npmVersion gitHead
_npmVersion = '11.17.0'
gitHead = '27bb17834cb273c23c09321f7c1590318b37dc11'
The prepublishOnly guard (scripts/assert-pnpm-version.ts) checks the installed pnpm version, not which client runs the publish, so it passes under npm publish as well.
1.6.2 is fine. Anything depending on @pierre/diffs@^1.6.x without a lockfile now fails to install.
Reproduction
npm:
$ npm install @pierre/[email protected]
npm error code EUNSUPPORTEDPROTOCOL
npm error Unsupported URL Type "catalog:": catalog:
pnpm (12.15.0), outside a workspace that defines these packages:
"@pierre/highlights@workspace:*" is in the dependencies but no package named "@pierre/highlights" is present in the workspace
What browser(s) are you seeing the problem on?
Other (install-time, not browser-specific)
What version of @pierre/diffs are you using?
1.6.3
Reacted by Drew Harris
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-]Bug: workspace: and catalog: protocol leak in @pierre/diffs 1.6.3[/-][+]Bug: `@pierre/diffs 1.6.3` release is broken[/+]amadeus commentedon Nov 4, 2026
Ye, thanks for the report. I published 1.6.4 that should fix this, however NPM is taking its sweet time validating it, so hopefully soon 🙏
amadeus commentedon Nov 4, 2026
Oki, finally 1.6.4 is out, sorry about that