@shikijs/transformers
4.6.0 · 2 Nov 2026MIT8.4M / weekRepositoryHomepagenpmAtom feed
139 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 4.x · latest line
4.6.0
2 Nov 2026transformers: Also convert single-theme inline token styles to classes
core: Render many decorations in linear time
4.5.0
1 Oct 2026Emit an explicit color level from codeToANSI
transformers: Add classActiveCode option to transformerNotationWordHighlight
transformers: Add transformerRenderLineNumber
Features
Emit an explicit color level from codeToANSI
transformers: Add classActiveCode option to transformerNotationWordHighlight
transformers: Add transformerRenderLineNumber
Bug Fixes
transformers: Keep notations on content comment lines
transformers: Handle split
#and--comments in rose-pine theme
4.4.3
10 Aug 2026Update deps and grammar
vitepress-twoslash: Delay twoslash tooltip show by 200ms
4.4.2
5 Aug 2026Unbreak CI after vite 8 bump and grammar/deps updates
core: Token split performance improvements
4.4.1
31 Jul 2026Update deps
4.4.0
31 Jul 2026Update grammars and themes
core: Guess yaml from frontmatter segments
4.3.1
3 Jul 2026Add
typefield forThemedToken
4.3.0
25 Jun 2026stream: Add svelte renderer
4.2.0
3 Jun 2026Add @shikijs/stream and @shikijs/magic-move packages
transformers: Handle YAML comment prefixes correctly for v3
vitepress-twoslash: Scroll blocking on mobile viewports
4.1.0
19 May 2026twoslash: Forward
tsModuletocreateTwoslasher
4.0.2
9 Mar 2026Support ANSI language with multiple themes
4.0.0
27 Feb 2026- Breaking
Drop Node v18 support, remove deprecated APIs
A leaner
@shikijs/primitivepackageNew
@shikijs/markdown-exitpackage
- 3.x
3.23.0
25 Feb 2026Update grammar and themes
cli: Add stdin support and list commands
transformers: Add 'leading' position to transformerRenderWhitespace
Features
Update grammar and themes
cli: Add stdin support and list commands
transformers: Add 'leading' position to transformerRenderWhitespace
transformers: Add support for [!code info] notation
Bug Fixes
Add
declaremodifier to top level declarations in.d.tscli: Normalize language/extension casing for CLI inputs
3.22.0
30 Jan 2026Update grammar and themes
3.21.0
7 Jan 2026Update grammar
core: Preserve HAST data and properties in codeToHast
vitepress-twoslash: Fix scroll blocking on mobile viewports
3.20.0
12 Dec 2025core: Eliminate redundant tokenization call in tokenizeWithTheme
3.19.0
3 Dec 2025Support
rootStyle: falseoptiontransformers: Add
classActiveCodeoption to notation transformerstransformers: Add transformerRemoveComments
Features
Support
rootStyle: falseoptiontransformers: Add
classActiveCodeoption to notation transformerstransformers: Add transformerRemoveComments
twoslash: Add context parameter to filter option
Bug Fixes
Add typesVersions for legacy resolution support
core: Check embeddedLanguages in registry dependency check
monaco: Correctly handle sparse color map updates
3.17.1
1 Dec 2025core: Enhance string utils with robust edge case handling
core: Correctly parse 4-digit hex colors in dimColor
monaco: Ensure correct color map update when switching themes
3.17.0
27 Nov 2025core: Support embeddedLanguages alias for backwards compatibility
transformers: Handle multi-token comments in rose-pine theme
types: Add 'plain' to PlainTextLanguage type
3.16.0
27 Nov 2025Update grammars
Enable decorations for structure: inline
Resolve vitest alias for wasm-inlined
Features
Update grammars
Bug Fixes
Enable decorations for structure: inline
Resolve vitest alias for wasm-inlined
transformers: Support comment-prefixed [code . highlight] markers in v3 notation matcher
3.15.0
6 Nov 2025lang-ansi: Fallback for missing theme ANSI colors
transformers: Support
meta.indentfor indent guidesAllow singleton highlighter recovery after invalid language error
Features
lang-ansi: Fallback for missing theme ANSI colors
transformers: Support
meta.indentfor indent guides
Bug Fixes
Allow singleton highlighter recovery after invalid language error
vitepress-twoslash: Prevent popper show/hide on dragging
3.14.0
26 Oct 2025Update grammars and themes
colorized-brackets: Fix default color does not work with colorized-brackets
3.13.0
19 Sep 2025transformers: Render indent guides
3.12.3
19 Sep 2025@shikijs/twoslashversion specifier
3.12.2
3 Sep 2025twoslash: Fix
onTwoslashErrorreturn value handling
3.12.1
1 Sep 20253.12.0
27 Aug 2025vitepress-twoslash: Improve UX for option customization
vitepress-twoslash: Twoslash inline type cache for markdown
remove-notation-escape: Correct escape sequence
3.11.0
19 Aug 2025core: Add
enforceoptions toShikiTransformer
3.10.0
19 Aug 2025Add funding links to playground
3.9.2
4 Aug 2025Add funding buttons to themes & languages list
Allow negative character positions for denoting end of line offsets
3.9.1
1 Aug 2025Update grammars
3.9.0
31 Jul 2025twoslash: Pass-through unrecognized
options.langtocodeToHast
3.8.1
17 Jul 2025Support for adjacent empty decorations
3.8.0
14 Jul 2025Update grammars and themes
3.6.0
6 Jun 2025Introduce
colorsRenderingoption
3.5.0
4 Jun 2025Add support for CSS
light-dark()function in dual themesCorrect style comparison logic in mergeAdjacentStyledTokens
Update styling for removed vp-code class and fix word highlighting
3.4.2
16 May 2025markdown-it: Add langAlias option
3.4.1
14 May 2025rehype: Add langAlias option
transformers:
transformerRemoveNotationEscapesupport rehype plugin usagevitepress-twoslash: Empty twoslash error at end of the line
3.4.0
6 May 2025Update deps and grammars
3.3.0
22 Apr 2025Update deps
core: Add option to merge consecutive tokens with same style
colorized-brackets: Handle correctly with dual themes
Features
Update deps
core: Add option to merge consecutive tokens with same style
Bug Fixes
colorized-brackets: Handle correctly with dual themes
transformers: Whitespace rendering transformer for inline structure
3.2.2
10 Apr 2025Add handling for
FontStyle.Strikethrough
3.2.1
11 Mar 20253.2.0
11 Mar 2025Upgrade deps, new langs and themes
Faild to run shiki doc server locally
3.0.0
18 Feb 2025- Breaking
Remove deprecated apis for v3.0
- Breaking
Remove
node10typescript resolution support - Breaking
twoslash: Make default
moduleResolutiontobundler
Breaking Changes
- Breaking
Remove deprecated apis for v3.0
- Breaking
Remove
node10typescript resolution support - Breaking
twoslash: Make default
moduleResolutiontobundler
Bug Fixes
- 2.x
2.4.2
17 Feb 2025Replace picocolors and chalk with ansis
core: Expose
flatTokenVariantsutility, refactor utils folderMissing types for
CodeToTokensWithThemesOptions
Features
Replace picocolors and chalk with ansis
core: Expose
flatTokenVariantsutility, refactor utils folder
Bug Fixes
Missing types for
CodeToTokensWithThemesOptionstransformers: Update utils order
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.