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

# fumadocs-twoslash breaking changes

fumadocs-twoslash 4.0.0 (September 4, 2026) is its newest release with breaking changes, 21 of them. The first: Removed @showEmit. Every breaking API change we have recorded in fumadocs-twoslash on npm: 21 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.5`. [Source repository](https://github.com/fuma-nama/fumadocs)

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

## fumadocs-twoslash 4.0.0 breaking changes

fumadocs-twoslash 4.0.0, released September 4, 2026: 21 breaking changes.

- **Removed** `@showEmit`  

The @showEmit annotation is not supported because TypeScript 7 has no emit API yet. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Removed** `rendererRich.classExtra`  

The classExtra option of rendererRich is removed, so code that passes it must drop it. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Removed** `rendererRich.errorRendering`  

The errorRendering option of rendererRich is removed, so code that passes it must drop it. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Removed** `rendererRich.hast`  

The hast extensions option of rendererRich is removed, so code that passes it must drop it. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Removed** `rendererRich.queryRendering`  

The queryRendering option of rendererRich is removed, so code that passes it must drop it. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Removed** `rendererRich.renderer`  

The custom renderer option of rendererRich is removed, so code that passes it must drop it. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Removed** `twoslashOptions.cache`  

The cache option is removed, so code that passes it must drop it. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Removed** `twoslashOptions.customTransformers`  

The customTransformers option is removed, so code that passes it must drop it. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Removed** `twoslashOptions.fsMap`  

The fsMap option is removed, so code that passes it must drop it. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Removed** `twoslashOptions.positionCompletions`  

The per-call positionCompletions option is removed, so code that passes it must drop it. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Removed** `twoslashOptions.positionHighlights`  

The per-call positionHighlights option is removed, so code that passes it must drop it. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Removed** `twoslashOptions.positionQueries`  

The per-call positionQueries option is removed, so code that passes it must drop it. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Removed** `twoslashOptions.tsLibDirectory`  

The tsLibDirectory option is removed in favor of the native TypeScript 7 compiler. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Removed** `twoslashOptions.tsModule`  

The tsModule option is removed in favor of the native TypeScript 7 compiler. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Renamed** `twoslashOptions.vfsRoot`  

The vfsRoot option is replaced by cwd, so code using vfsRoot must switch to cwd. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Behavior changed**  

Twoslash now uses the TypeScript 7 native compiler rather than its own bundled TypeScript 6, so popup types come from the compiler your project uses. Projects must run on TypeScript 7 and fumadocs-core 16.15.7 or later for the concurrent... [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Signature changed** `transformerTwoslash`  

Was function transformerTwoslash(\_options?: TransformerTwoslashOptions): ShikiTransformer; now function transformerTwoslash(options?: TransformerTwoslashOptions): ShikiTransformer. [npmjs.com](https://www.npmjs.com/package/fumadocs-twoslash/v/4.0.0)
- **Signature changed** `TransformerTwoslashOptions`  

Was type TransformerTwoslashOptions = TransformerTwoslashIndexOptions; now interface TransformerTwoslashOptions. [npmjs.com](https://www.npmjs.com/package/fumadocs-twoslash/v/4.0.0)
- **Signature changed** `twoslashOptions.compilerOptions`  

compilerOptions accepts tsconfig.json values such as 'bundler' instead of enum values from the typescript package, so existing enum-based settings must be rewritten. [github.com](https://github.com/fuma-nama/fumadocs/releases/tag/fumadocs-twoslash%404.0.0)
- **Signature changed** `ui:Popup`  

Was function Popup({delay, children}: {delay?: number; children: ReactNode;}): import("react").JSX.Element; now function Popup({openDelay, closeDelay, children}: {openDelay?: number; closeDelay?: number; children: ReactNode;})... [npmjs.com](https://www.npmjs.com/package/fumadocs-twoslash/v/4.0.0)
- **Signature changed** `ui:PopupTrigger`  

Was function PopupTrigger({children, ...props}: ComponentProps\<typeof Popover.Trigger>): import("react").JSX.Element; now function PopupTrigger(props: ComponentProps\<typeof Popover.Trigger>): import("react").JSX.Element. [npmjs.com](https://www.npmjs.com/package/fumadocs-twoslash/v/4.0.0)

## Related packages

- [fumadocs-ui](https://since.dev/packages/npm/fumadocs-ui.md)
- [fumadocs-core](https://since.dev/packages/npm/fumadocs-core.md)
- [fumadocs-mdx](https://since.dev/packages/npm/fumadocs-mdx.md)
- [fumadocs-openapi](https://since.dev/packages/npm/fumadocs-openapi.md)
- [@fumadocs/tailwind](https://since.dev/packages/npm/@fumadocs/tailwind.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.
