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

# nextra breaking changes

nextra 4.0.0 (January 13, 2025) is its newest release with breaking changes, 79 of them. The first: Pages Router support is removed in nextra 4.0.0. Every breaking API change we have recorded in nextra on npm: 234 breaking changes in 9 versions. Below, its 9 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.6.1`, released December 4, 2025. [Source repository](https://github.com/shuding/nextra)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 101 breaking changes in 7 versions.

## nextra 4.0.0 breaking changes

nextra 4.0.0, released January 13, 2025: 79 breaking changes.

- **Removed**  

Nextra 4 only renders through the Next.js App Router. Pages Router sites must move to the App Router, for example by using the content directory convention.
- **Removed** `components`  

Custom MDX components must be provided through the useMDXComponents function instead.
- **Removed** `components:CopyToClipboard`  

CopyToClipboard was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `components:evaluate`  

evaluate was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `components:RemoteContent`  

RemoteContent was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `components:Td`  

Td was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `components:Th`  

Th was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `components:Tr`  

Tr was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `DynamicFolder.type`  

DynamicFolder.type was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `DynamicMetaDescriptor`  

DynamicMetaDescriptor was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `DynamicMetaJsonFile`  

DynamicMetaJsonFile was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `head`  

Dynamic head tags must now be set with the \<Head> component or the Next.js Metadata API.
- **Removed** `hooks:useData`  

useData was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `hooks:useRouter`  

useRouter was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `main`  

The main theme.config option is no longer available in Nextra 4.
- **Removed** `newWindow`  

External links in \_meta files now always open in a new tab, and the newWindow field is gone.
- **Removed** `NextraInternalGlobal`  

NextraInternalGlobal was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `NextraMDXContent`  

NextraMDXContent was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `NextraThemeLayoutProps`  

NextraThemeLayoutProps was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `page-map-dynamic:collectCatchAllRoutes`  

collectCatchAllRoutes was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `page-map-dynamic:resolvePageMap`  

resolvePageMap was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `PageOpts`  

PageOpts was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `react-cusdis`  

The optional react-cusdis peer dependency was removed; comments now use the Cusdis SDK directly.
- **Removed** `remark-plugins:remarkCustomHeadingId`  

remarkCustomHeadingId was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `remark-plugins:remarkHeadings`  

remarkHeadings was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `remark-plugins:remarkLinkRewrite`  

remarkLinkRewrite was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `remark-plugins:RemarkLinkRewriteOptions`  

RemarkLinkRewriteOptions was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `remark-plugins:remarkMdxDisableExplicitJsx`  

remarkMdxDisableExplicitJsx was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `remark-plugins:remarkMdxFrontMatter`  

remarkMdxFrontMatter was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `remark-plugins:remarkMdxTitle`  

remarkMdxTitle was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `remark-plugins:remarkRemoveImports`  

remarkRemoveImports was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `remark-plugins:remarkStaticImage`  

remarkStaticImage was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `remark-plugins:remarkStructurize`  

remarkStructurize was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `remote:buildDynamicMDX`  

buildDynamicMDX was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `remote:buildDynamicMeta`  

buildDynamicMeta was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `schemas:displaySchema`  

displaySchema was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `schemas:fc`  

fc was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `schemas:menuItemSchema`  

menuItemSchema was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `schemas:pageThemeSchema`  

pageThemeSchema was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `schemas:reactNode`  

reactNode was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `schemas:searchSchema`  

searchSchema was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `Search`  

Search was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `SearchData`  

SearchData was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `StructurizedData`  

StructurizedData was removed in nextra 4.0.0 [npmjs.com](https://www.npmjs.com/package/nextra/v/4.0.0)
- **Removed** `theme`  

The theme option was removed from the nextra() config and must be replaced by component props.
- **Removed** `theme.bottomContent`  

The theme.bottomContent field was removed from \_meta configuration.
- **Removed** `theme.config`  

Theme options must now be passed as props to the layout components in app/layout.jsx instead of a theme.config file.
- **Removed** `theme.layout`  

Pages without a layout must now use page.{jsx,tsx} files instead of theme.layout: 'raw'.
- **Removed** `theme.topContent`  

The theme.topContent field was removed from \_meta configuration.
- **Removed** `themeConfig`  

The themeConfig option was removed from the nextra() config and must be replaced by component props.

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

## nextra 4.0.0-app-router.27 breaking changes

nextra 4.0.0-app-router.27, released January 13, 2025: 6 breaking changes.

- **Removed** `collectCatchAllRoutes`  

collectCatchAllRoutes was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.27)
- **Removed** `createCatchAllMeta`  

createCatchAllMeta was removed from nextra/catch-all. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.27)
- **Removed** `normalizePageRoute`  

normalizePageRoute was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.27)
- **Removed** `recmaRewriteFunctionBody`  

recmaRewriteFunctionBody was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.27)
- **Removed** `recmaRewriteJsx`  

recmaRewriteJsx was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.27)
- **Signature changed** `getPageMap`  

getPageMap now receives only root instead of lang and route. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.27)

## nextra 4.0.0-app-router.25 breaking changes

nextra 4.0.0-app-router.25, released January 13, 2025: 3 breaking changes.

- **Removed** `export const title`  

Generated mdx pages no longer include export const title. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.25)
- **Renamed** `useTOC`  

Replace export const useTOC with export const toc holding the headings. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.25)
- **Signature changed** `compileMdx`  

compileMdx from nextra/compile returns a string instead of an object. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.25)

## nextra 4.0.0-app-router.21 breaking changes

nextra 4.0.0-app-router.21, released January 13, 2025: 1 breaking change.

- **Removed** `RemoteContent`  

RemoteContent was removed and renamed to MDXRemote in nextra/mdx-remote. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.21)

## nextra 4.0.0-app-router.20 breaking changes

nextra 4.0.0-app-router.20, released January 13, 2025: 5 breaking changes.

- **Removed** `NextraConfig.transformPageMap`  

The transformPageMap config option was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.20)
- **Removed** `Td`  

Use Table.Td with the Table component instead. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.20)
- **Removed** `Th`  

Use Table.Th, Table.Tr and Table.Td with the Table component instead. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.20)
- **Removed** `Tr`  

Use Table.Tr with the Table component instead. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.20)
- **Renamed** `nextra.mdx`  

Import from nextra/mdx-components instead of nextra/mdx. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.20)

## nextra 4.0.0-app-router.3 breaking changes

nextra 4.0.0-app-router.3, released January 13, 2025: 6 breaking changes.

- **Removed** `nextra.remark-plugins`  

The nextra/remark-plugins module was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.3)
- **Removed** `nextra.remote`  

The nextra/remote module was removed; use the replacement mechanism described in the migration guide. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.3)
- **Removed** `nextra.schemas`  

The nextra/schemas module was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.3)
- **Removed** `renderComponent`  

renderComponent was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.3)
- **Removed** `renderString`  

renderString was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.3)
- **Renamed** `Collapse`  

Collapse moved from nextra-theme-docs to nextra/components. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.3)

## Older versions

3 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### nextra 4.0.0-app-router.2 breaking changes

nextra 4.0.0-app-router.2, released January 13, 2025: 1 breaking change.

- **Renamed** `Head`  

The Head component now lives in nextra/components instead of its previous location. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.2)

### nextra 3.0.0 breaking changes

nextra 3.0.0, released September 28, 2024: 131 breaking changes.

- **Removed** `__nextraPageOptions.hot`  

\_\_nextraPageOptions.hot and pageOptsChecksum were removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%403.0.0)
- **Removed** `__nextraPageOptions.pageNextRoute`  

\_\_nextraPageOptions.pageNextRoute was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%403.0.0)

And 129 more in this version.

### nextra 3.0.0-alpha.39 breaking changes

nextra 3.0.0-alpha.39, released September 28, 2024: 2 breaking changes.

- **Removed** `Card.image`  

The image prop was removed from the Card component; the image now shows based on whether children are provided. Icon is optional. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%403.0.0-alpha.39)
- **Behavior changed** `Tab`  

Tab className now uses render props for selected, disabled and hover states. [github.com](https://github.com/shuding/nextra/releases/tag/nextra%403.0.0-alpha.39)

## Related packages

- [nextra-theme-docs](https://since.dev/packages/npm/nextra-theme-docs.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.
