rehype-highlight breaking changes
rehype-highlight 7.0.0 (September 5, 2023) is its newest release with breaking changes, 11 of them. The first: Package now uses exports; private APIs are no longer available in rehype-highlight 7.0.0. Every breaking API change we have recorded in rehype-highlight on npm: 15 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 7.0.2, released February 3, 2025.
Its 7.0.0 release requires Node.js 16 or later. Node.js end of life dates.
- From 6.0.0 to 7.0.0: 11 breaking changes in 1 version.
- From 5.0.0 to 7.0.0: 13 breaking changes in 2 versions.
rehype-highlight 7.0.0 breaking changes
- Removed
The package now uses exports, so private internal imports no longer work. Do not import private APIs. github.com - Removed
Options.ignoreMissing
The ignoreMissing option is removed and its behavior is now the default. Remove the option and expect warnings on the file instead. npmjs.com - Behavior changed
The package now requires Node.js 16. Users on older Node.js versions must upgrade. github.com - Behavior changed
languages
When passing the languages option, spread the common languages from lowlight into it, as lowlight was updated. github.com - Signature changed
default
Was function rehypeHighlight(options?: void | Options | undefined): | void | import('unified').Transformer<import('hast').Root, import('hast').Root>; now function rehypeHighlight(options?: Readonly<Options> | null | undefined): (tree... npmjs.com - Signature changed
Options.aliases
Was aliases?: Record<string, string | string[]> | undefined; now aliases?: Readonly<Record<string, ReadonlyArray<string> | string>> | null | undefined. npmjs.com - Signature changed
Options.detect
Was detect?: boolean | undefined; now detect?: boolean | null | undefined. npmjs.com - Signature changed
Options.languages
Was languages?: Record<string, import('highlight.js').LanguageFn> | undefined; now languages?: Readonly<Record<string, LanguageFn>> | null | undefined. npmjs.com - Signature changed
Options.plainText
Was plainText?: string[] | undefined; now plainText?: ReadonlyArray<string> | null | undefined. npmjs.com - Signature changed
Options.prefix
Was prefix?: string | undefined; now prefix?: string | null | undefined. npmjs.com - Signature changed
Options.subset
Was subset?: string[] | undefined; now subset?: ReadonlyArray<string> | null | undefined. npmjs.com
rehype-highlight 6.0.0 breaking changes
- Default changed
Code blocks are no longer auto-detected by default. Users who relied on detection must now turn it on explicitly. github.com - Signature changed
Options.subset
Was subset?: boolean | string[] | undefined; now subset?: string[] | undefined. npmjs.com
rehype-highlight 5.0.0 breaking changes
- Removed
The separate light build is gone because the default build is now light; use the default import instead. github.com - Behavior changed
The package now uses ES modules, so users must switch from require() to import. github.com
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.