Skip to content

chore(deps): upgrade Shiki to v4 - #602

Merged
farnabaz merged 1 commit into
vercel:mainfrom
songkeys:chore/shiki-v4
Aug 31, 2026
Merged

chore(deps): upgrade Shiki to v4#602
farnabaz merged 1 commit into
vercel:mainfrom
songkeys:chore/shiki-v4

Conversation

@songkeys

@songkeys songkeys commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Description

Upgrade @streamdown/code and the documentation website from Shiki 3 to Shiki 4.4.3. Shiki v4 requires Node.js 20 or newer, so this also updates the repository prerequisite and declares the requirement on the published code plugin.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Performance improvement
  • Refactoring (no functional changes)

Related Issues

No related issue.

Changes Made

  • Upgrade direct Shiki dependencies from ^3.19.0 to ^4.4.3.
  • Require Node.js 20 or newer in the workspace and @streamdown/code package metadata.
  • Update the contributor prerequisite and add a major changeset for @streamdown/code.

Testing

  • All existing tests pass
  • Added new tests for the changes
  • Manually tested the changes

Test Coverage

  • pnpm --filter @streamdown/code build
  • pnpm --filter @streamdown/code test (22 tests)
  • pnpm build:packages
  • pnpm --filter website build
  • pnpm test (all 6 test tasks passed; 1,704 tests total)
  • pnpm check

Screenshots/Demos

Not applicable; this dependency upgrade does not change the user interface.

Checklist

  • My code follows the project's code style
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have created a changeset (pnpm changeset)

Changeset

  • I have created a changeset for these changes

Additional Notes

The Shiki v4 API used by @streamdown/code remains compatible with the existing implementation; no source changes were required. The Node.js 20 minimum is the only intended breaking change.

The lockfile still contains Shiki 3 through documentation-tooling transitive dependencies. This PR upgrades Streamdown's direct Shiki dependencies only.

Copilot AI lite review requested due to automatic review settings August 29, 2026 11:21
@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

@songkeys is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@socket-security

socket-security Bot commented Aug 29, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​shiki@​4.4.31001007797100

View full report

@farnabaz farnabaz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks

@farnabaz
farnabaz merged commit db6fefc into vercel:main Aug 31, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants