Skip to content

Bug: @pierre/diffs 1.6.3 release is broken #1254

Closed

Description

@gu-stav

Prerequisites

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

Activity

  1. changed the title [-]Bug: workspace: and catalog: protocol leak in @pierre/diffs 1.6.3[/-] [+]Bug: `@pierre/diffs 1.6.3` release is broken[/+] on Nov 3, 2026
  2. amadeus commented on Nov 4, 2026

    @amadeus
    Member

    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 🙏

  3. amadeus commented on Nov 4, 2026

    @amadeus
    Member

    Oki, finally 1.6.4 is out, sorry about that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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