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

# rehype-slug breaking changes

rehype-slug 6.0.0 (August 31, 2023) is its newest release with breaking changes, 6 of them. The first: rehype-slug 6.0.0 requires Node.js 16 or later. Every breaking API change we have recorded in rehype-slug on npm: 8 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.0.0`, released August 31, 2023. 

Its 6.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 [5.0.0](#v-5-0-0) to [6.0.0](#v-6-0-0): 6 breaking changes in 1 version.

## rehype-slug 6.0.0 breaking changes

rehype-slug 6.0.0, released August 31, 2023: 6 breaking changes.

- **Removed**  

The package now requires Node.js 16. Users on older Node.js versions must upgrade Node.js before using this release. [github.com](https://github.com/rehypejs/rehype-slug/releases/tag/6.0.0)
- **Removed** `Root`  

Root was removed in rehype-slug 6.0.0 [npmjs.com](https://www.npmjs.com/package/rehype-slug/v/6.0.0)
- **Configuration changed**  

The package now defines its entry points through package.json exports. Code that imports internal files or private APIs must switch to the public API. [github.com](https://github.com/rehypejs/rehype-slug/releases/tag/6.0.0)
- **Signature changed** `default`  

Was function rehypeSlug(options?: void | Options | undefined): | void | import('unified').Transformer\<import('hast').Root, import('hast').Root>; now function rehypeSlug(options?: Options | null | undefined): (tree: Root) => undefined. [npmjs.com](https://www.npmjs.com/package/rehype-slug/v/6.0.0)
- **Signature changed** `Options`  

Was type Options = {prefix?: string | undefined}; now type Options = import('./lib/index.js').Options. [npmjs.com](https://www.npmjs.com/package/rehype-slug/v/6.0.0)
- **Signature changed** `Options.prefix`  

Was prefix?: string | undefined; now prefix?: string. [npmjs.com](https://www.npmjs.com/package/rehype-slug/v/6.0.0)

## rehype-slug 5.0.0 breaking changes

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

- **Behavior changed**  

The package is now ESM only. Code that loads it with require('rehype-slug') must switch to an import statement. [github.com](https://github.com/rehypejs/rehype-slug/releases/tag/5.0.0)
- **Signature changed** `default`  

Was const slug: Plugin<\[\]>; now function rehypeSlug(): | void | import('unified').Transformer\<import('hast').Root, import('hast').Root>. [npmjs.com](https://www.npmjs.com/package/rehype-slug/v/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.
