shiki breaking changes
Updated December 4, 2026
On this page
Latest version 4.6.0, released November 2, 2026. Source repository
Its 4.0.0 release drops Node.js 18. Node.js end of life dates.
- From 3.23.0 to 4.4.0: 21 breaking changes in 3 versions.
- From 0.12.0 to 4.4.0: 113 breaking changes in 9 versions.
shiki 4.4.0 breaking changes
- Removed
bundle/full:t
t was removed in shiki 4.4.0 npmjs.com - Signature changed
bundle/web:BundledLanguage
Was type BundledLanguage = 'angular-html' | 'angular-ts' | 'astro' | 'bash' | 'blade' | 'c' | 'c++' | 'cjs' | 'coffee' | 'coffeescript' | 'cpp' | 'css' | 'csv' | 'cts' | 'glsl' | 'gql' | 'graphql' | 'haml' | 'handlebars' | 'hbs' | 'html' |... npmjs.com - Signature changed
BundledLanguage
Was type BundledLanguage = '1c' | '1c-query' | 'abap' | 'actionscript-3' | 'ada' | 'adoc' | 'angular-html' | 'angular-ts' | 'apache' | 'apex' | 'apl' | 'applescript' | 'ara' | 'asciidoc' | 'asm' | 'astro' | 'awk' | 'ballerina' | 'bash' |... npmjs.com
shiki 4.1.0 breaking changes
- Signature changed
codeToHast
Was const codeToHast: (code: string, options: _shikijs_types0.CodeToHastOptions<BundledLanguage, BundledTheme>) => Promise<hast.Root>; now const codeToHast: (code: string, options... npmjs.com - Signature changed
codeToHtml
Was const codeToHtml: (code: string, options: _shikijs_types0.CodeToHastOptions<BundledLanguage, BundledTheme>) => Promise<string>; now const codeToHtml: (code: string, options: import("@shikijs/types").CodeToHastOptions<BundledLanguage... npmjs.com - Signature changed
codeToTokens
Was const codeToTokens: (code: string, options: _shikijs_types0.CodeToTokensOptions<BundledLanguage, BundledTheme>) => Promise<_shikijs_types0.TokensResult>; now const codeToTokens: (code: string, options... npmjs.com - Signature changed
codeToTokensBase
Was const codeToTokensBase: (code: string, options: _shikijs_types0.RequireKeys<_shikijs_types0.CodeToTokensBaseOptions<BundledLanguage, BundledTheme>, "theme" | "lang">) => Promise<_shikijs_types0.ThemedToken[][]>; now const... npmjs.com - Signature changed
codeToTokensWithThemes
Was const codeToTokensWithThemes: (code: string, options: _shikijs_types0.RequireKeys<_shikijs_types0.CodeToTokensWithThemesOptions<BundledLanguage, BundledTheme>, "lang" | "themes">) =>... npmjs.com - Signature changed
createHighlighter
Was const createHighlighter: _shikijs_types0.CreateHighlighterFactory<BundledLanguage, BundledTheme>; now const createHighlighter: import("@shikijs/types").CreateHighlighterFactory<BundledLanguage, BundledTheme>. npmjs.com - Signature changed
getLastGrammarState
Was const getLastGrammarState: ((element: _shikijs_types0.ThemedToken[][] | hast.Root) => _shikijs_types0.GrammarState) | ((code: string, options: _shikijs_types0.CodeToTokensBaseOptions<BundledLanguage, BundledTheme>) =>... npmjs.com - Signature changed
getSingletonHighlighter
Was const getSingletonHighlighter: (options?: Partial<_shikijs_types0.BundledHighlighterOptions<BundledLanguage, BundledTheme>> | undefined) => Promise<HighlighterGeneric<BundledLanguage, BundledTheme>>; now const getSingletonHighlighter... npmjs.com
shiki 4.0.0 breaking changes
- Removed
The release no longer supports Node v18. Users on Node v18 must upgrade their Node.js runtime before using this version. github.com - Signature changed
codeToHast
Was const codeToHast: (code: string, options: _shikijs_types.CodeToHastOptions<BundledLanguage, BundledTheme>) => Promise<hast.Root>; now const codeToHast: (code: string, options: _shikijs_types0.CodeToHastOptions<BundledLanguage... npmjs.com - Signature changed
codeToHtml
Was const codeToHtml: (code: string, options: _shikijs_types.CodeToHastOptions<BundledLanguage, BundledTheme>) => Promise<string>; now const codeToHtml: (code: string, options: _shikijs_types0.CodeToHastOptions<BundledLanguage... npmjs.com - Signature changed
codeToTokens
Was const codeToTokens: (code: string, options: _shikijs_types.CodeToTokensOptions<BundledLanguage, BundledTheme>) => Promise<_shikijs_types.TokensResult>; now const codeToTokens: (code: string, options... npmjs.com - Signature changed
codeToTokensBase
Was const codeToTokensBase: (code: string, options: _shikijs_types.RequireKeys<_shikijs_types.CodeToTokensBaseOptions<BundledLanguage, BundledTheme>, "theme" | "lang">) => Promise<_shikijs_types.ThemedToken[][]>; now const... npmjs.com - Signature changed
codeToTokensWithThemes
Was const codeToTokensWithThemes: (code: string, options: _shikijs_types.RequireKeys<_shikijs_types.CodeToTokensWithThemesOptions<BundledLanguage, BundledTheme>, "lang" | "themes">) => Promise<_shikijs_types.ThemedTokenWithVariants[][]>... npmjs.com - Signature changed
createHighlighter
Was const createHighlighter: _shikijs_types.CreateHighlighterFactory<BundledLanguage, BundledTheme>; now const createHighlighter: _shikijs_types0.CreateHighlighterFactory<BundledLanguage, BundledTheme>. npmjs.com - Signature changed
getLastGrammarState
Was const getLastGrammarState: ((element: _shikijs_types.ThemedToken[][] | hast.Root) => _shikijs_types.GrammarState) | ((code: string, options: _shikijs_types.CodeToTokensBaseOptions<BundledLanguage, BundledTheme>) =>... npmjs.com - Signature changed
getSingletonHighlighter
Was const getSingletonHighlighter: (options?: Partial<_shikijs_types.BundledHighlighterOptions<BundledLanguage, BundledTheme>> | undefined) => Promise<HighlighterGeneric<BundledLanguage, BundledTheme>>; now const getSingletonHighlighter... npmjs.com - Signature changed
wasm:default
Was export {default} from '@shikijs/engine-oniguruma/wasm-inlined'; now export {wasm_inlined_default as default}. npmjs.com
shiki 3.23.0 breaking changes
- Signature changed
BundledLanguage
Was type BundledLanguage = '1c' | '1c-query' | 'abap' | 'actionscript-3' | 'ada' | 'adoc' | 'angular-html' | 'angular-ts' | 'apache' | 'apex' | 'apl' | 'applescript' | 'ara' | 'asciidoc' | 'asm' | 'astro' | 'awk' | 'ballerina' | 'bash' |... npmjs.com - Signature changed
BundledTheme
Was type BundledTheme = 'andromeeda' | 'aurora-x' | 'ayu-dark' | 'ayu-light' | 'ayu-mirage' | 'catppuccin-frappe' | 'catppuccin-latte' | 'catppuccin-macchiato' | 'catppuccin-mocha' | 'dark-plus' | 'dracula' | 'dracula-soft' |... npmjs.com
shiki 3.0.0 breaking changes
- Removed
Deprecated APIs were removed in v3.0. Code that still calls them must move to their replacements. github.com - Removed
TypeScript projects using the node10 module resolution are no longer supported and must switch to a newer resolution setting. github.com - Removed
getHighlighter
Use createHighlighter instead. npmjs.com - Removed
getWasmInlined
getWasmInlined was removed in shiki 3.0.0 npmjs.com - Removed
textmate:disposeOnigString
disposeOnigString was removed in shiki 3.0.0 npmjs.com - Removed
textmate:EncodedTokenMetadata
EncodedTokenMetadata was removed in shiki 3.0.0 npmjs.com - Removed
textmate:FindOption
FindOption was removed in shiki 3.0.0 npmjs.com - Removed
textmate:FontStyle
FontStyle was removed in shiki 3.0.0 npmjs.com - Removed
textmate:IEmbeddedLanguagesMap
IEmbeddedLanguagesMap was removed in shiki 3.0.0 npmjs.com - Removed
textmate:IGrammar
IGrammar was removed in shiki 3.0.0 npmjs.com
And 23 more in this version. Sign up to see every change
shiki 1.0.0 breaking changes
- Removed
The CJS and IIFE builds are no longer shipped, so code that loads Shiki through them must switch to the ESM build or the documented CDN usage. shiki.style - Removed
All deprecated APIs were removed in this release; migrate any remaining deprecated calls before upgrading. github.com - Removed
BUNDLED_LANGUAGES
The constant moved to @shikijs/langs under the new name. npmjs.com - Removed
BUNDLED_THEMES
The constant moved to @shikijs/themes under the new name. npmjs.com - Removed
createHighlighter
Use the themes option with an array instead. shiki.style - Removed
css-variables
Use the dual themes approach instead, or the Theme Colors Manipulation approach. shiki.style - Removed
FontStyle
FontStyle was removed in shiki 1.0.0 npmjs.com - Removed
Highlighter.ansiToHtml
Use codeToHtml with lang set to ansi instead. npmjs.com - Removed
Highlighter.ansiToThemedTokens
Highlighter.ansiToThemedTokens was removed in shiki 1.0.0 npmjs.com - Removed
Highlighter.codeToThemedTokens
Callers of codeToThemedTokens must switch to codeToTokensBase; the new codeToTokens API is added alongside. npmjs.com
And 40 more in this version. Sign up to see every change
Older versions
4 older versions, each with its first changes. Sign up to see every change
Show 4 older versions
shiki 1.0.0-rc.0 breaking changes
- Removed
All APIs deprecated earlier were removed in this release, so code still calling them will break and must move to the replacements named in the migration guide. github.com - Behavior changed
The internal context was refactored, which is listed as a breaking change, so code depending on internal context behavior may need updating. github.com
shiki 0.14.0 breaking changes
- Signature changed
Highlighter.codeToHtml
Was codeToHtml(code: string, lang?: StringLiteralUnion<Lang>, theme?: StringLiteralUnion<Theme>, options?: HtmlOptions): string codeToHtml(code: string, options?: HtmlOptions): string; now codeToHtml(code: string, lang?... npmjs.com
shiki 0.13.0 breaking changes
- Renamed
material-<themeName>
Themes named material-<themeName> are now called material-theme-<themeName>, for example material-ocean becomes material-theme-ocean. Update theme names in code that uses them. github.com - Renamed
material-default
The material-default theme is now called material-theme. Update theme names in code that uses it. github.com
And 2 more in this version.
shiki 0.12.0 breaking changes
- Signature changed
ILanguageRegistration
Was type ILanguageRegistration = {id: string; scopeName: string; aliases?: string[]; samplePath?: string; embeddedLangs?: Lang[];} & ({path: string; grammar?: IRawGrammar;} | {path?: string; grammar: IRawGrammar;}); now type... npmjs.com - Signature changed
IShikiTheme.settings
Was settings: IRawThemeSetting[]; now settings: any[]. npmjs.com
And 2 more in this version.
Related packages
- @shikijs/types
- @shikijs/core
- @shikijs/themes
- @shikijs/langs
- @shikijs/engine-oniguruma
- @shikijs/engine-javascript
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.