Skip to content

Conversation

@NisargIO
Copy link

@NisargIO NisargIO commented Jan 5, 2026

Problem

When installing @pierre/diffs in a project that has Shiki 3.20.0 defined, the @shikijs/core dependency would resolve to version 3.19.0 instead of the expected 3.20.0, causing version mismatches.

Root Cause

The @shikijs/core dependency in packages/diffs/package.json was using a semver range (^3.0.0) instead of the catalog: reference that other shiki packages were using:

"dependencies": {
-  "@shikijs/core": "^3.0.0",
+  "@shikijs/core": "catalog:",
   "@shikijs/engine-javascript": "catalog:",
   "@shikijs/transformers": "catalog:",
   ...
}

This inconsistency caused Bun to resolve @shikijs/core to 3.19.0 from the stale lockfile entry, ignoring the catalog-defined version of 3.20.0. Meanwhile, other shiki packages (@shikijs/engine-javascript, @shikijs/transformers, shiki) correctly used catalog: and resolved to 3.20.0.

Fix

  • Changed @shikijs/core to use catalog: reference, consistent with other shiki packages
  • Refreshed bun.lock to resolve all shiki packages to the catalog-defined version (3.20.0)

Impact

This ensures downstream consumers get consistent shiki versions across all @shikijs/* packages when installing @pierre/diffs.

…ent version resolution

The @shikijs/core dependency was using '^3.0.0' semver range instead of 'catalog:'.
This caused Bun to resolve to 3.19.0 from the lockfile even when the catalog
specified 3.20.0, leading to version mismatches for downstream consumers.

Changes:
- Update @shikijs/core to use 'catalog:' reference like other shiki packages
- Refresh bun.lock to resolve all shiki packages to catalog-defined 3.20.0
@vercel
Copy link

vercel bot commented Jan 5, 2026

@NisargIO is attempting to deploy a commit to the Pierre Computer Company Team on Vercel.

A member of the Team first needs to authorize it.

@amadeus amadeus requested a review from SlexAxton January 5, 2026 07:47
@amadeus
Copy link
Member

amadeus commented Jan 5, 2026

fixed in #253

thanks for bringing up the issue! 🙏

@amadeus amadeus closed this Jan 5, 2026
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