Packages

@shikijs/transformers

4.6.0 · 2 Nov 2026MIT8.4M / weekRepositoryHomepagenpmAtom feed

Your version

139 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 4.x · latest line
  2. 4.6.0

    2 Nov 2026
    • transformers: Also convert single-theme inline token styles to classes

    • core: Render many decorations in linear time

  3. 4.5.0

    1 Oct 2026
    • Emit an explicit color level from codeToANSI

    • transformers: Add classActiveCode option to transformerNotationWordHighlight

    • transformers: Add transformerRenderLineNumber

  4. 4.4.3

    10 Aug 2026
    • Update deps and grammar

    • vitepress-twoslash: Delay twoslash tooltip show by 200ms

  5. 4.4.2

    5 Aug 2026
    • Unbreak CI after vite 8 bump and grammar/deps updates

    • core: Token split performance improvements

  6. 4.4.1

    31 Jul 2026
    • Update deps

  7. 4.4.0

    31 Jul 2026
    • Update grammars and themes

    • core: Guess yaml from frontmatter segments

  8. 4.3.1

    3 Jul 2026
    • Add type field for ThemedToken

  9. 4.3.0

    25 Jun 2026
    • stream: Add svelte renderer

  10. 4.2.0

    3 Jun 2026
    • Add @shikijs/stream and @shikijs/magic-move packages

    • transformers: Handle YAML comment prefixes correctly for v3

    • vitepress-twoslash: Scroll blocking on mobile viewports

  11. 4.1.0

    19 May 2026
    • twoslash: Forward tsModule to createTwoslasher

  12. 4.0.2

    9 Mar 2026
    • Support ANSI language with multiple themes

  13. 4.0.1

    2 Mar 2026
    • Try fix dts bundle, thanks @sxzz

  14. 4.0.0

    27 Feb 2026
  15. 3.x
  16. 3.23.0

    25 Feb 2026
    • Update grammar and themes

    • cli: Add stdin support and list commands

    • transformers: Add 'leading' position to transformerRenderWhitespace

  17. 3.22.0

    30 Jan 2026
    • Update grammar and themes

  18. 3.21.0

    7 Jan 2026
    • Update grammar

    • core: Preserve HAST data and properties in codeToHast

    • vitepress-twoslash: Fix scroll blocking on mobile viewports

  19. 3.20.0

    12 Dec 2025
    • core: Eliminate redundant tokenization call in tokenizeWithTheme

  20. 3.19.0

    3 Dec 2025
    • Support rootStyle: false option

    • transformers: Add classActiveCode option to notation transformers

    • transformers: Add transformerRemoveComments

  21. 3.18.0

    2 Dec 2025
    • transformers: Support zeroIndexed option to transformerMetaHighlight

    • core: Correct offset calculation in mergeWhitespaceTokens

    • core: Allow langAlias to special languages, close #1164

  22. 3.17.1

    1 Dec 2025
    • core: 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

  23. 3.17.0

    27 Nov 2025
    • core: Support embeddedLanguages alias for backwards compatibility

    • transformers: Handle multi-token comments in rose-pine theme

    • types: Add 'plain' to PlainTextLanguage type

  24. 3.16.0

    27 Nov 2025
    • Update grammars

    • Enable decorations for structure: inline

    • Resolve vitest alias for wasm-inlined

  25. 3.15.0

    6 Nov 2025
    • lang-ansi: Fallback for missing theme ANSI colors

    • transformers: Support meta.indent for indent guides

    • Allow singleton highlighter recovery after invalid language error

  26. 3.14.0

    26 Oct 2025
    • Update grammars and themes

    • colorized-brackets: Fix default color does not work with colorized-brackets

  27. 3.13.0

    19 Sep 2025
    • transformers: Render indent guides

  28. 3.12.3

    19 Sep 2025
  29. 3.12.2

    3 Sep 2025
    • twoslash: Fix onTwoslashError return value handling

  30. 3.12.1

    1 Sep 2025
  31. 3.12.0

    27 Aug 2025
    • vitepress-twoslash: Improve UX for option customization

    • vitepress-twoslash: Twoslash inline type cache for markdown

    • remove-notation-escape: Correct escape sequence

  32. 3.11.0

    19 Aug 2025
    • core: Add enforce options to ShikiTransformer

  33. 3.10.0

    19 Aug 2025
    • Add funding links to playground

  34. 3.9.2

    4 Aug 2025
    • Add funding buttons to themes & languages list

    • Allow negative character positions for denoting end of line offsets

  35. 3.9.1

    1 Aug 2025
    • Update grammars

  36. 3.9.0

    31 Jul 2025
    • twoslash: Pass-through unrecognized options.lang to codeToHast

  37. 3.8.1

    17 Jul 2025
    • Support for adjacent empty decorations

  38. 3.8.0

    14 Jul 2025
    • Update grammars and themes

  39. 3.7.0

    20 Jun 2025
    • core: Support resolving langAlias in bundle-factory, close #952

    • shiki: Astro partial syntax highlighting error

    • shiki: Only apply light-dark on colors, close #1036

  40. 3.6.0

    6 Jun 2025
    • Introduce colorsRendering option

  41. 3.5.0

    4 Jun 2025
    • Add support for CSS light-dark() function in dual themes

    • Correct style comparison logic in mergeAdjacentStyledTokens

    • Update styling for removed vp-code class and fix word highlighting

  42. 3.4.2

    16 May 2025
    • markdown-it: Add langAlias option

  43. 3.4.1

    14 May 2025
    • rehype: Add langAlias option

    • transformers: transformerRemoveNotationEscape support rehype plugin usage

    • vitepress-twoslash: Empty twoslash error at end of the line

  44. 3.4.0

    6 May 2025
    • Update deps and grammars

  45. 3.3.0

    22 Apr 2025
    • Update deps

    • core: Add option to merge consecutive tokens with same style

    • colorized-brackets: Handle correctly with dual themes

  46. 3.2.2

    10 Apr 2025
    • Add handling for FontStyle.Strikethrough

  47. 3.2.1

    11 Mar 2025
  48. 3.2.0

    11 Mar 2025
    • Upgrade deps, new langs and themes

    • Faild to run shiki doc server locally

  49. 3.1.0

    27 Feb 2025
    • Breaking

      twoslash: Upgrade twoslash v0.3, require typescript v5.5+, close #950, close #951

    • engine-js: Bump deps to work around Safari bug with some grammars

    • monaco: Handle missing settings in textmate theme func

  50. 3.0.0

    18 Feb 2025
    • Breaking

      Remove deprecated apis for v3.0

    • Breaking

      Remove node10 typescript resolution support

    • Breaking

      twoslash: Make default moduleResolution to bundler

  51. 2.x
  52. 2.5.0

    18 Feb 2025
    • transformers: Also remove extra newline token, fix #915

    • transformers: Support matching comments in comments, fix #934

    • transformers: Fix matching indices for word-highlight

  53. 2.4.2

    17 Feb 2025
    • Replace picocolors and chalk with ansis

    • core: Expose flatTokenVariants utility, refactor utils folder

    • Missing types for CodeToTokensWithThemesOptions

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.