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

# 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

Latest version `7.0.2`, released February 3, 2025. 

Its 7.0.0 release requires [Node.js 16](https://since.dev/calendar/nodejs/16.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [6.0.0](#v-6-0-0) to [7.0.0](#v-7-0-0): 11 breaking changes in 1 version.
- From [5.0.0](#v-5-0-0) to [7.0.0](#v-7-0-0): 13 breaking changes in 2 versions.

## rehype-highlight 7.0.0 breaking changes

rehype-highlight 7.0.0, released September 5, 2023: 11 breaking changes.

- **Removed**  

The package now uses exports, so private internal imports no longer work. Do not import private APIs. [github.com](https://github.com/rehypejs/rehype-highlight/releases/tag/7.0.0)
- **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](https://www.npmjs.com/package/rehype-highlight/v/7.0.0)
- **Behavior changed**  

The package now requires Node.js 16. Users on older Node.js versions must upgrade. [github.com](https://github.com/rehypejs/rehype-highlight/releases/tag/7.0.0)
- **Behavior changed** `languages`  

When passing the languages option, spread the common languages from lowlight into it, as lowlight was updated. [github.com](https://github.com/rehypejs/rehype-highlight/releases/tag/7.0.0)
- **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](https://www.npmjs.com/package/rehype-highlight/v/7.0.0)
- **Signature changed** `Options.aliases`  

Was aliases?: Record\<string, string | string\[\]> | undefined; now aliases?: Readonly\<Record\<string, ReadonlyArray\<string> | string>> | null | undefined. [npmjs.com](https://www.npmjs.com/package/rehype-highlight/v/7.0.0)
- **Signature changed** `Options.detect`  

Was detect?: boolean | undefined; now detect?: boolean | null | undefined. [npmjs.com](https://www.npmjs.com/package/rehype-highlight/v/7.0.0)
- **Signature changed** `Options.languages`  

Was languages?: Record\<string, import('highlight.js').LanguageFn> | undefined; now languages?: Readonly\<Record\<string, LanguageFn>> | null | undefined. [npmjs.com](https://www.npmjs.com/package/rehype-highlight/v/7.0.0)
- **Signature changed** `Options.plainText`  

Was plainText?: string\[\] | undefined; now plainText?: ReadonlyArray\<string> | null | undefined. [npmjs.com](https://www.npmjs.com/package/rehype-highlight/v/7.0.0)
- **Signature changed** `Options.prefix`  

Was prefix?: string | undefined; now prefix?: string | null | undefined. [npmjs.com](https://www.npmjs.com/package/rehype-highlight/v/7.0.0)
- **Signature changed** `Options.subset`  

Was subset?: string\[\] | undefined; now subset?: ReadonlyArray\<string> | null | undefined. [npmjs.com](https://www.npmjs.com/package/rehype-highlight/v/7.0.0)

## rehype-highlight 6.0.0 breaking changes

rehype-highlight 6.0.0, released October 12, 2022: 2 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](https://github.com/rehypejs/rehype-highlight/releases/tag/6.0.0)
- **Signature changed** `Options.subset`  

Was subset?: boolean | string\[\] | undefined; now subset?: string\[\] | undefined. [npmjs.com](https://www.npmjs.com/package/rehype-highlight/v/6.0.0)

## rehype-highlight 5.0.0 breaking changes

rehype-highlight 5.0.0, released August 2, 2021: 2 breaking changes.

- **Removed**  

The separate light build is gone because the default build is now light; use the default import instead. [github.com](https://github.com/rehypejs/rehype-highlight/releases/tag/5.0.0)
- **Behavior changed**  

The package now uses ES modules, so users must switch from require() to import. [github.com](https://github.com/rehypejs/rehype-highlight/releases/tag/5.0.0)

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