---
title: "@shikijs/types 4.3.1 Breaking Changes on npm | Since.dev"
description: "What each @shikijs/types release removed, renamed or changed: 24 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@shikijs/types
last_updated: 2026-12-04
---

# @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

Latest version `4.6.0`. [Source repository](https://github.com/shikijs/shiki)

Its 4.0.0 release drops [Node.js 18](https://since.dev/calendar/nodejs/18.md). [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [3.0.0](#v-3-0-0) to [4.3.1](#v-4-3-1): 18 breaking changes in 2 versions.

## @shikijs/types 4.3.1 breaking changes

@shikijs/types 4.3.1, released July 3, 2026: 2 breaking changes.

- **Signature changed** `CodeToHastOptionsCommon.includeExplanation`  

Was includeExplanation?: boolean | 'scopeName'; now includeExplanation?: boolean | 'scopeName' | 'tokenType'. [npmjs.com](https://www.npmjs.com/package/@shikijs/types/v/4.3.1)
- **Signature changed** `TokenizeWithThemeOptions.includeExplanation`  

Was includeExplanation?: boolean | 'scopeName'; now includeExplanation?: boolean | 'scopeName' | 'tokenType'. [npmjs.com](https://www.npmjs.com/package/@shikijs/types/v/4.3.1)

## @shikijs/types 4.0.0 breaking changes

@shikijs/types 4.0.0, released February 27, 2026: 16 breaking changes.

- **Removed**  

Previously deprecated APIs were removed, so code still calling them must switch to their replacements. [github.com](https://github.com/shikijs/shiki/releases/tag/v4.0.0)
- **Removed**  

Node v18 is no longer supported, so users must run a newer Node version. [github.com](https://github.com/shikijs/shiki/releases/tag/v4.0.0)
- **Renamed** `ShikiInternal`  

Use ShikiPrimitive instead. [npmjs.com](https://www.npmjs.com/package/@shikijs/types/v/4.0.0)
- **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](https://www.npmjs.com/package/@shikijs/types/v/4.0.0)
- **Signature changed** `HighlighterGeneric.getInternalContext`  

Was getInternalContext: () => ShikiInternal; now getInternalContext: () => ShikiPrimitive. [npmjs.com](https://www.npmjs.com/package/@shikijs/types/v/4.0.0)
- **Signature changed** `LanguageRegistration`  

Was interface LanguageRegistration extends IRawGrammar; now interface LanguageRegistration extends RawGrammar. [npmjs.com](https://www.npmjs.com/package/@shikijs/types/v/4.0.0)
- **Signature changed** `RawGrammar`  

Was export {IRawGrammar as RawGrammar} from "@shikijs/vscode-textmate"; now export {type RawGrammar} from "@shikijs/vscode-textmate". [npmjs.com](https://www.npmjs.com/package/@shikijs/types/v/4.0.0)
- **Signature changed** `RawTheme`  

Was export {IRawTheme as RawTheme} from "@shikijs/vscode-textmate"; now export {type RawTheme} from "@shikijs/vscode-textmate". [npmjs.com](https://www.npmjs.com/package/@shikijs/types/v/4.0.0)
- **Signature changed** `RawThemeSetting`  

Was export {IRawThemeSetting as RawThemeSetting} from "@shikijs/vscode-textmate"; now export {type RawThemeSetting} from "@shikijs/vscode-textmate". [npmjs.com](https://www.npmjs.com/package/@shikijs/types/v/4.0.0)
- **Signature changed** `ThemeRegistration.settings`  

Was settings: IRawThemeSetting\[\]; now settings: RawThemeSetting\[\]. [npmjs.com](https://www.npmjs.com/package/@shikijs/types/v/4.0.0)

And 6 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## @shikijs/types 3.0.0 breaking changes

@shikijs/types 3.0.0, released February 18, 2025: 6 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](https://github.com/shikijs/shiki/releases/tag/v3.0.0)
- **Removed**  

Deprecated APIs were removed in this release. Code that still calls them must move to their replacements. [github.com](https://github.com/shikijs/shiki/releases/tag/v3.0.0)
- **Removed** `GrammarState.scopes`  

Use getScopes instead. [npmjs.com](https://www.npmjs.com/package/@shikijs/types/v/3.0.0)
- **Removed** `HighlighterCoreOptions.loadWasm`  

Use engine instead. [npmjs.com](https://www.npmjs.com/package/@shikijs/types/v/3.0.0)
- **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](https://github.com/shikijs/shiki/releases/tag/v3.0.0)
- **Signature changed** `TokenStyles.htmlStyle`  

Was htmlStyle?: string | Record\<string, string>; now htmlStyle?: Record\<string, string>. [npmjs.com](https://www.npmjs.com/package/@shikijs/types/v/3.0.0)

## Related packages

- [shiki](https://since.dev/packages/npm/shiki.md)
- [@shikijs/core](https://since.dev/packages/npm/@shikijs/core.md)
- [@shikijs/themes](https://since.dev/packages/npm/@shikijs/themes.md)
- [@shikijs/langs](https://since.dev/packages/npm/@shikijs/langs.md)
- [@shikijs/engine-oniguruma](https://since.dev/packages/npm/@shikijs/engine-oniguruma.md)
- [@shikijs/engine-javascript](https://since.dev/packages/npm/@shikijs/engine-javascript.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
