@shikijs/types breaking changes
@shikijs/types 4.3.1 (July 3, 2026) is its newest release with breaking changes, 2 of them. The first: Signature changed CodeToHastOptionsCommon.includeExplanation. Every breaking API change we have recorded in @shikijs/types on npm: 24 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.6.0. Source repository
Its 4.0.0 release drops Node.js 18. Node.js end of life dates.
@shikijs/types 4.3.1 breaking changes
- Signature changed
CodeToHastOptionsCommon.includeExplanation
Was includeExplanation?: boolean | 'scopeName'; now includeExplanation?: boolean | 'scopeName' | 'tokenType'. npmjs.com - Signature changed
TokenizeWithThemeOptions.includeExplanation
Was includeExplanation?: boolean | 'scopeName'; now includeExplanation?: boolean | 'scopeName' | 'tokenType'. npmjs.com
@shikijs/types 4.0.0 breaking changes
- Removed
Previously deprecated APIs were removed, so code still calling them must switch to their replacements. github.com - Removed
Node v18 is no longer supported, so users must run a newer Node version. github.com - Renamed
ShikiInternal
Use ShikiPrimitive instead. npmjs.com - Signature changed
HighlighterGeneric
Was interface HighlighterGeneric<BundledLangKeys extends string, BundledThemeKeys extends string> extends ShikiInternal<BundledLangKeys, BundledThemeKeys>; now interface HighlighterGeneric<BundledLangKeys extends string, BundledThemeKeys... npmjs.com - Signature changed
HighlighterGeneric.getInternalContext
Was getInternalContext: () => ShikiInternal; now getInternalContext: () => ShikiPrimitive. npmjs.com - Signature changed
LanguageRegistration
Was interface LanguageRegistration extends IRawGrammar; now interface LanguageRegistration extends RawGrammar. npmjs.com - Signature changed
RawGrammar
Was export {IRawGrammar as RawGrammar} from "@shikijs/vscode-textmate"; now export {type RawGrammar} from "@shikijs/vscode-textmate". npmjs.com - Signature changed
RawTheme
Was export {IRawTheme as RawTheme} from "@shikijs/vscode-textmate"; now export {type RawTheme} from "@shikijs/vscode-textmate". npmjs.com - Signature changed
RawThemeSetting
Was export {IRawThemeSetting as RawThemeSetting} from "@shikijs/vscode-textmate"; now export {type RawThemeSetting} from "@shikijs/vscode-textmate". npmjs.com - Signature changed
ThemeRegistration.settings
Was settings: IRawThemeSetting[]; now settings: RawThemeSetting[]. npmjs.com
And 6 more in this version. Sign up to see every change
@shikijs/types 3.0.0 breaking changes
- Removed
Support for the node10 TypeScript resolution setting was removed, so projects relying on it must switch to another resolution mode. github.com - Removed
Deprecated APIs were removed in this release. Code that still calls them must move to their replacements. github.com - Removed
GrammarState.scopes
Use getScopes instead. npmjs.com - Removed
HighlighterCoreOptions.loadWasm
Use engine instead. npmjs.com - Default changed
moduleResolution
The default moduleResolution for twoslash is now bundler instead of the previous default. Set it explicitly if you need the old behavior. github.com - Signature changed
TokenStyles.htmlStyle
Was htmlStyle?: string | Record<string, string>; now htmlStyle?: Record<string, string>. npmjs.com
Related packages
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.