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

# nextra-theme-docs breaking changes

nextra-theme-docs 4.0.0 (January 13, 2025) is its newest release with breaking changes, 41 of them. The first: Drops Pages Router support; only Next.js App Router is supported in nextra-theme-docs 4.0.0. Every breaking API change we have recorded in nextra-theme-docs on npm: 115 breaking changes in 15 versions. Below, its 15 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): 77 breaking changes in 14 versions.

## nextra-theme-docs 4.0.0 breaking changes

nextra-theme-docs 4.0.0, released January 13, 2025: 41 breaking changes.

- **Removed**  

Nextra 4 exclusively uses Next.js App Router. Pages Router sites must migrate to App Router.
- **Removed** `Bleed`  

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

Import Collapse from nextra/components instead of nextra-theme-docs. [npmjs.com](https://www.npmjs.com/package/nextra-theme-docs/v/4.0.0)
- **Removed** `components`  

Provide custom MDX components through useMDXComponents instead.
- **Removed** `default`  

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

Import Details from nextra/components instead.
- **Removed** `direction`  

Set the dir attribute on the html tag instead.
- **Removed** `DocsThemeConfig`  

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

Use display: 'hidden' in an \_meta file instead of draft: true in front matter.
- **Removed** `getComponents`  

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

Use the Head component or the Next.js Metadata API for head tags.
- **Removed** `newWindow`  

The newWindow field in \_meta files was removed.
- **Removed** `react-cusdis`  

The optional react-cusdis peer dependency was removed; the blog uses the Cusdis SDK directly.
- **Removed** `Select`  

Import Select from nextra/components instead.
- **Removed** `SkipNavContent`  

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

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

Import Summary from nextra/components instead.
- **Removed** `theme`  

The theme option was removed; pass theme settings as component props instead.
- **Removed** `theme.bottomContent`  

The theme.bottomContent field was removed.
- **Removed** `theme.config`  

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

To create pages without a layout, use page.{jsx,tsx} files instead.
- **Removed** `theme.topContent`  

The theme.topContent field was removed.
- **Removed** `themeConfig`  

The themeConfig option was removed; pass theme settings as component props instead.
- **Renamed**  

Overridden theme classes must use the x: prefix instead of \_.
- **Renamed** `Search`  

Import Search from nextra/components instead of nextra-theme-docs.
- **Behavior changed**  

External links declared in \_meta files now open in a new tab with rel noreferrer and an icon.
- **Behavior changed**  

Front matter is exported as a metadata object; a file cannot use both front matter and an exported metadata object.
- **Behavior changed**  

Remote docs setup has changed; follow the official example and update the pageMap in the layout file.
- **Behavior changed**  

The docs folder plus docs.mdx layout is incompatible with the page file convention; use asIndexPage instead.
- **Behavior changed**  

\_meta files should be server component files without the 'use client' directive.
- **Behavior changed**  

Sidebar titles are now chosen from \_meta title, then sidebarTitle, then title, then the first h1.
- **Behavior changed**  

Search indexing now uses Pagefind and must run after the build via a postbuild script.
- **Configuration changed** `mdxOptions`  

Custom remark, rehype and recma plugins are functions and cannot be passed to nextra options with Turbopack.
- **Signature changed** `Link`  

Was const Link: ({href, className, ...props}: AnchorProps) => react_jsx_runtime.JSX.Element; now const Link: typeof Anchor. [npmjs.com](https://www.npmjs.com/package/nextra-theme-docs/v/4.0.0)
- **Signature changed** `LocaleSwitch`  

Was function LocaleSwitch({lite, className}: LocaleSwitchProps): ReactElement | null; now const LocaleSwitch: FC\<LocaleSwitchProps>. [npmjs.com](https://www.npmjs.com/package/nextra-theme-docs/v/4.0.0)
- **Signature changed** `Navbar`  

Was function Navbar({items}: NavBarProps): ReactElement; now const Navbar: FC\<NavbarProps>. [npmjs.com](https://www.npmjs.com/package/nextra-theme-docs/v/4.0.0)
- **Signature changed** `NotFoundPage`  

Was function NotFoundPage(): ReactElement | null; now const NotFoundPage: FC\<NotFoundPageProps>. [npmjs.com](https://www.npmjs.com/package/nextra-theme-docs/v/4.0.0)
- **Signature changed** `ThemeSwitch`  

Was function ThemeSwitch({lite, className}: ThemeSwitchProps): ReactElement; now const ThemeSwitch: FC\<ThemeSwitchProps>. [npmjs.com](https://www.npmjs.com/package/nextra-theme-docs/v/4.0.0)
- **Signature changed** `useConfig`  

Was function useConfig\<FrontMatterType = FrontMatter>(): Config\<FrontMatterType>; now function useConfig(): {normalizePagesResult: {activeType?: string; activeIndex: number; activeThemeContext: {breadcrumb?: boolean | undefined... [npmjs.com](https://www.npmjs.com/package/nextra-theme-docs/v/4.0.0)
- **Signature changed** `useMenu`  

Was const useMenu: () => Menu; now const useMenu: () => boolean. [npmjs.com](https://www.npmjs.com/package/nextra-theme-docs/v/4.0.0)
- **Signature changed** `useThemeConfig`  

Was const useThemeConfig: () => {banner: {dismissible: boolean; key: string; content?: ReactNode | react.FC;}; backgroundColor: {dark: string; light: string;}; chat: {icon?: ReactNode | react.FC; link?: string | undefined;}; darkMode... [npmjs.com](https://www.npmjs.com/package/nextra-theme-docs/v/4.0.0)

## nextra-theme-docs 4.0.0-app-router.29 breaking changes

nextra-theme-docs 4.0.0-app-router.29, released January 13, 2025: 2 breaking changes.

- **Removed** `color-primary-750`  

The color-primary-750 theme color variant was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.29)
- **Renamed**  

Builtin CSS classes changed from the \_ prefix to the x: prefix. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.29)

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

nextra-theme-docs 4.0.0-app-router.27, released January 13, 2025: 4 breaking changes.

- **Removed** `collectCatchAllRoutes`  

collectCatchAllRoutes was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%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-theme-docs%404.0.0-app-router.27)
- **Removed** `normalizePageRoute`  

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

getPageMap now takes only a root argument, not lang and route. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.27)

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

nextra-theme-docs 4.0.0-app-router.25, released January 13, 2025: 2 breaking changes.

- **Renamed** `useTOC`  

Export a toc array instead of a useTOC function. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.25)
- **Behavior changed** `compileMdx`  

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

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

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

- **Renamed** `RemoteContent`  

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

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

nextra-theme-docs 4.0.0-app-router.20, released January 13, 2025: 3 breaking changes.

- **Removed** `Td`  

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

Use Table.Th instead of the Th export. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.20)
- **Removed** `Tr`  

Use Table.Tr instead of the Tr export. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.20)

## Older versions

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

### nextra-theme-docs 4.0.0-app-router.18 breaking changes

nextra-theme-docs 4.0.0-app-router.18, released January 13, 2025: 1 breaking change.

- **Renamed** `useContentDir`  

Use the contentDirBasePath option instead of useContentDir. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.18)

### nextra-theme-docs 4.0.0-app-router.14 breaking changes

nextra-theme-docs 4.0.0-app-router.14, released January 13, 2025: 2 breaking changes.

- **Default changed** `Navbar.logo`  

The logo prop is now required and must be passed explicitly. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.14)
- **Configuration changed**  

Set moduleResolution to bundler in tsconfig.json if using TypeScript. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.14)

### nextra-theme-docs 4.0.0-app-router.13 breaking changes

nextra-theme-docs 4.0.0-app-router.13, released January 13, 2025: 4 breaking changes.

- **Removed**  

The theme now requires Next.js v15 or later. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.13)
- **Removed** `nextra.context`  

The nextra/context module was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.13)

And 2 more in this version.

### nextra-theme-docs 4.0.0-app-router.9 breaking changes

nextra-theme-docs 4.0.0-app-router.9, released January 13, 2025: 1 breaking change.

- **Behavior changed**  

You must now import the theme style.css file manually in your project. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.9)

### nextra-theme-docs 4.0.0-app-router.7 breaking changes

nextra-theme-docs 4.0.0-app-router.7, released January 13, 2025: 2 breaking changes.

- **Removed** `nextraConfig.mdxOptions.providerImportSource`  

Use the mdx-components file instead of this option. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.7)
- **Renamed** `nextraConfig.mdxBaseDir`  

Replace the mdxBaseDir string with the useContentDir boolean. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.7)

### nextra-theme-docs 4.0.0-app-router.4 breaking changes

nextra-theme-docs 4.0.0-app-router.4, released January 13, 2025: 4 breaking changes.

- **Removed** `i18n.direction`  

The i18n.direction option was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.4)
- **Renamed** `gitTimestamp`  

Use the lastUpdated option instead of gitTimestamp. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.4)

And 2 more in this version.

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

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

- **Removed** `Details`  

Import Details from nextra/components instead of nextra-theme-docs. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.3)
- **Removed** `renderComponent`  

renderComponent was removed. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.3)

And 1 more in this version.

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

nextra-theme-docs 4.0.0-app-router.2, released January 13, 2025: 7 breaking changes.

- **Removed** `editLink.component`  

The editLink.component option was removed; stop passing it. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.2)
- **Removed** `feedback.useLink`  

The feedback.useLink option was removed; stop passing it. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.2)

And 5 more in this version.

### nextra-theme-docs 3.0.0 breaking changes

nextra-theme-docs 3.0.0, released September 28, 2024: 38 breaking changes.

- **Removed** `_meta.json`  

Use \_meta.js, \_meta.jsx, \_meta.ts or \_meta.tsx instead of \_meta.json. [github.com](https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%403.0.0)
- **Removed** `Callout`  

Import Callout from nextra/components instead. [npmjs.com](https://www.npmjs.com/package/nextra-theme-docs/v/3.0.0)

And 36 more in this version.

## Related packages

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