Conversation
❌ Deploy Preview for shiki-next failed.
|
@shikijs/tokenizer package@shikijs/primitive package
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1251 +/- ##
==========================================
+ Coverage 89.03% 89.41% +0.38%
==========================================
Files 76 77 +1
Lines 3439 3431 -8
Branches 994 990 -4
==========================================
+ Hits 3062 3068 +6
+ Misses 338 327 -11
+ Partials 39 36 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR introduces a new @shikijs/primitive package that extracts core tokenization primitives from @shikijs/core, creating a leaner package focused on TextMate grammar-based tokenization without advanced features like HTML serialization, transformers, and ANSI support.
Changes:
- Created new
@shikijs/primitivepackage with core tokenization functionality extracted from@shikijs/core - Renamed
ShikiInternalinterface/type toShikiPrimitivethroughout the codebase - Renamed
syncThemesTokenizationtoalignThemesTokenizationfor better clarity - Removed deprecation warning system (
enableDeprecationWarnings,warnDeprecated) from the codebase - Maintained backward compatibility by exporting deprecated function name aliases (
createShikiInternal,createShikiInternalSync)
Reviewed changes
Copilot reviewed 38 out of 48 changed files in this pull request and generated no comments.
Show a summary per file
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This PR introduces a learner
@shikijs/primitivepackage peeled from@shikijs/core, which contains the core primitives without advanced features like html-serilizer/transformer/ansi, etc.The
@shikijs/coreremanins unchanged/cc @farnabaz