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

# shadcn breaking changes

shadcn 4.23.0 (October 27, 2026) is its newest release with breaking changes, 3 of them. The first: Removed server.setRequestHandler. Every breaking API change we have recorded in shadcn on npm: 317 breaking changes in 28 versions. Below, its 28 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.24.1`, released December 4, 2026. [Source repository](https://github.com/shadcn-ui/ui)

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.23.0](#v-4-23-0): 282 breaking changes in 27 versions.

## shadcn 4.23.0 breaking changes

shadcn 4.23.0, released October 27, 2026: 3 breaking changes.

- **Removed** `server.setRequestHandler`  

Calling server.setRequestHandler(...) on the old Server export no longer applies; use server.registerTool(...) or server.server.setRequestHandler(...) instead. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%404.23.0)
- **Signature changed** `mcp:server`  

Was const server: Server<{method: string; params?: {\[x: string\]: unknown; \_meta?: {\[x: string\]: unknown; progressToken?: string | number | undefined; "io.modelcontextprotocol/related-task"?: {taskId: string;} | undefined;} | undefined;} |... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.23.0)
- **Signature changed** `shadcn.mcp`  

The shadcn/mcp export is now an McpServer instead of the old Server, so code relying on the old type must be updated. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%404.23.0)

## shadcn 4.22.0 breaking changes

shadcn 4.22.0, released October 16, 2026: 3 breaking changes.

- **Behavior changed**  

Validation error messages now follow Zod 4's wording, so code that matches on the old message text may need updating. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%404.22.0)
- **Signature changed** `fetchTree`  

Was function fetchTree(style: string, tree: z.infer\<typeof registryIndexSchema>): Promise<({type: "registry:base"; name: string; $schema?: string | undefined; tailwind?: {config?: {content?: string\[\] | undefined; theme?: Record\<string... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.22.0)
- **Signature changed** `shadcn.schema`  

shadcn/schema and @shadcn/registry/schema now export Zod 4 schemas, so passing them to Zod 3's z no longer typechecks. On Zod 3, use the exported types and the schema's own methods instead of z.infer and z.array. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%404.22.0)

## shadcn 4.21.5 breaking changes

shadcn 4.21.5, released October 14, 2026: 2 breaking changes.

- **Signature changed** `fetchTree`  

Was function fetchTree(style: string, tree: z.infer\<typeof registryIndexSchema>): Promise<({type: "registry:base"; name: string; $schema?: string | undefined; tailwind?: {config?: {theme?: Record\<string, any> | undefined; content?... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.5)
- **Signature changed** `utils:transformDirection`  

Was export {transformDirection} from '@shadcn/registry/internal/utils/transformers/transform-rtl'; now export {transformDirection} from '@shadcn/registry/internal/transformers/transform-rtl'. [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.5)

## shadcn 4.21.4 breaking changes

shadcn 4.21.4, released October 7, 2026: 5 breaking changes.

- **Signature changed** `fetchTree`  

Was function fetchTree(style: string, tree: z.infer\<typeof registryIndexSchema>): Promise<({type: "registry:base"; name: string; $schema?: string | undefined; tailwind?: {config?: {content?: string\[\] | undefined; theme?: Record\<string... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.4)
- **Signature changed** `utils:transformFont`  

Was export {transformFont} from '@shadcn/registry/internal/utils/transformers/transform-font'; now const transformFont: SourceFileTransformer. [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.4)
- **Signature changed** `utils:transformIcons`  

Was export {transformIcons} from '@shadcn/registry/internal/utils/transformers/transform-icons'; now const transformIcons: SourceFileTransformer. [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.4)
- **Signature changed** `utils:transformMenu`  

Was export {transformMenu} from '@shadcn/registry/internal/utils/transformers/transform-menu'; now const transformMenu: SourceFileTransformer. [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.4)
- **Signature changed** `utils:transformRender`  

Was const transformRender: Transformer; now const transformRenderSourceFile: SourceFileTransformer. [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.4)

## shadcn 4.21.1 breaking changes

shadcn 4.21.1, released October 1, 2026: 112 breaking changes.

- **Removed** `getItemTargetPath`  

getItemTargetPath was removed in shadcn 4.21.1 [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.1)
- **Removed** `getPackageJsonRegistries`  

getPackageJsonRegistries was removed in shadcn 4.21.1 [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.1)
- **Removed** `getPreset`  

getPreset was removed in shadcn 4.21.1 [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.1)
- **Removed** `getPresets`  

getPresets was removed in shadcn 4.21.1 [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.1)
- **Removed** `getRegistries`  

getRegistries was removed in shadcn 4.21.1 [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.1)
- **Removed** `getRegistriesConfig`  

getRegistriesConfig was removed in shadcn 4.21.1 [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.1)
- **Removed** `getRegistriesIndex`  

getRegistriesIndex was removed in shadcn 4.21.1 [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.1)
- **Removed** `getRegistry`  

getRegistry was removed in shadcn 4.21.1 [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.1)
- **Removed** `getRegistryBaseColor`  

getRegistryBaseColor was removed in shadcn 4.21.1 [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.1)
- **Removed** `getRegistryBaseColors`  

getRegistryBaseColors was removed in shadcn 4.21.1 [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.21.1)

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

## shadcn 4.21.0 breaking changes

shadcn 4.21.0, released September 4, 2026: 1 breaking change.

- **Behavior changed**  

Init now installs the cn package and generates lib/utils with export { cn } from "cn". Registry components now import cn from the cn package. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%404.21.0)

## Older versions

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

### shadcn 4.18.0 breaking changes

shadcn 4.18.0, released August 13, 2026: 3 breaking changes.

- **Behavior changed**  

Registries are merged from package.json and components.json, and registries can be added to package.json when components.json is absent. Check which registries are resolved if you rely on components.json alone. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%404.18.0)
- **Behavior changed** `shadcn add`  

These commands now resolve registries declared in package.json without saving them to components.json. Code or scripts that expected no registry resolution from package.json will see different results. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%404.18.0)

And 1 more in this version.

### shadcn 4.16.2 breaking changes

shadcn 4.16.2, released August 6, 2026: 3 breaking changes.

- **Signature changed** `registry:searchRegistries`  

Was function searchRegistries(registries: string\[\], options?: SearchRegistriesOptions): Promise<{items: {registry: string; name: string; addCommandArgument: string; type?: string | undefined; description?: string | undefined;}\[\]... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.16.2)
- **Signature changed** `schema:searchResultItemSchema`  

Was const searchResultItemSchema: z.ZodObject<{name: z.ZodString; type: z.ZodOptional\<z.ZodString>; description: z.ZodOptional\<z.ZodString>; registry: z.ZodString; addCommandArgument: z.ZodString;}, "strip", z.ZodTypeAny, {registry... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.16.2)

And 1 more in this version.

### shadcn 4.16.1 breaking changes

shadcn 4.16.1, released July 31, 2026: 4 breaking changes.

- **Signature changed** `getRegistry`  

Was function getRegistry(name: string, options?: RegistryApiOptions): Promise<{name: string; homepage: string; items: ({type: "registry:base"; name: string; tailwind?: {config?: {theme?: Record\<string, any> | undefined; content?: string\[\]... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.16.1)
- **Signature changed** `registry:loadRegistry`  

Was function loadRegistry(options?: LoadRegistryOptions): Promise<{items: ({files: ({path: string; type: "registry:page" | "registry:file"; target: string;} | {path: string; type: "registry:lib" | "registry:block" | "registry:component" |... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.16.1)

And 2 more in this version.

### shadcn 4.16.0 breaking changes

shadcn 4.16.0, released July 27, 2026: 3 breaking changes.

- **Removed** `registry:AddRegistryItemsOptions`  

AddRegistryItemsOptions was removed in shadcn 4.16.0 [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.16.0)
- **Behavior changed** `addRegistryItems`  

addRegistryItems accepts an explicit registry configuration rather than reading components.json. Code that relied on it loading components.json must now pass the configuration in. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%404.16.0)

And 1 more in this version.

### shadcn 4.15.0 breaking changes

shadcn 4.15.0, released July 25, 2026: 6 breaking changes.

- **Signature changed** `getRegistry`  

Was function getRegistry(name: string, options?: {config?: Partial\<Config>; useCache?: boolean;}): Promise<{name: string; homepage: string; items: ({type: "registry:base"; name: string; tailwind?: {config?: {theme?: Record\<string, any> |... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.15.0)
- **Signature changed** `getRegistryBaseColor`  

Was function getRegistryBaseColor(baseColor: string): Promise<{cssVars: {theme?: Record\<string, string> | undefined; light?: Record\<string, string> | undefined; dark?: Record\<string, string> | undefined;}; inlineColors: {light... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.15.0)

And 4 more in this version.

### shadcn 4.14.1 breaking changes

shadcn 4.14.1, released July 23, 2026: 22 breaking changes.

- **Signature changed** `fetchTree`  

Was function fetchTree(style: string, tree: z.infer\<typeof registryIndexSchema>): Promise<({type: "registry:base"; name: string; tailwind?: {config?: {content?: string\[\] | undefined; theme?: Record\<string, any> | undefined; plugins?... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.14.1)
- **Signature changed** `getPreset`  

Was function getPreset(name: string, options?: {useCache?: boolean;}): Promise<{style: string; baseColor: string; iconLibrary: string; rtl: boolean; menuColor: "default" | "inverted" | "default-translucent" | "inverted-translucent"... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.14.1)

And 20 more in this version.

### shadcn 4.13.1 breaking changes

shadcn 4.13.1, released July 17, 2026: 3 breaking changes.

- **Behavior changed**  

Custom registry headers are dropped when a registry request redirects to another origin, to prevent credential leakage. Registries that rely on those headers being forwarded across origins must be configured to serve from the same origin. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%404.13.1)
- **Behavior changed**  

Registry items without an explicit target now have their file paths validated, so paths that escape the project directory are rejected. Registry items relying on such paths must add an explicit target. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%404.13.1)

And 1 more in this version.

### shadcn 4.13.0 breaking changes

shadcn 4.13.0, released July 3, 2026: 1 breaking change.

- **Default changed**  

The release made base-ui the default library used by shadcn. Users who relied on the previous default must now choose it explicitly to keep the same output. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%404.13.0)

### shadcn 4.11.0 breaking changes

shadcn 4.11.0, released June 8, 2026: 2 breaking changes.

- **Signature changed** `registry:searchRegistries`  

Was function searchRegistries(registries: string\[\], options?: {query?: string; limit?: number; offset?: number; config?: Partial\<Config>; useCache?: boolean;}): Promise<{items: {registry: string; name: string; addCommandArgument: string... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.11.0)
- **Signature changed** `schema:searchResultsSchema`  

Was const searchResultsSchema: z.ZodObject<{pagination: z.ZodObject<{total: z.ZodNumber; offset: z.ZodNumber; limit: z.ZodNumber; hasMore: z.ZodBoolean;}, "strip", z.ZodTypeAny, {total: number; offset: number; limit: number; hasMore... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.11.0)

### shadcn 4.10.0 breaking changes

shadcn 4.10.0, released June 1, 2026: 1 breaking change.

- **Signature changed** `getRegistry`  

Was function getRegistry(name: string, options?: {config?: Partial\<Config>; useCache?: boolean;}): Promise<{name: string; homepage: string; items: ({type: "registry:base"; name: string; tailwind?: {config?: {content?: string\[\] | undefined... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.10.0)

### shadcn 4.8.1 breaking changes

shadcn 4.8.1, released May 26, 2026: 1 breaking change.

- **Signature changed** `preset:PRESET_STYLES`  

Was const PRESET_STYLES: readonly \["nova", "vega", "maia", "lyra", "mira", "luma", "sera"\]; now const PRESET_STYLES: readonly \["nova", "vega", "maia", "lyra", "mira", "luma", "sera", "rhea"\]. [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.8.1)

### shadcn 4.8.0 breaking changes

shadcn 4.8.0, released May 21, 2026: 4 breaking changes.

- **Signature changed** `getRegistry`  

Was function getRegistry(name: string, options?: {config?: Partial\<Config>; useCache?: boolean;}): Promise<{name: string; homepage: string; items: ({type: "registry:base"; name: string; tailwind?: {config?: {content?: string\[\] | undefined... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.8.0)
- **Signature changed** `registry:RegistryLocalFileError.constructor`  

Was constructor(filePath: string, cause?: unknown); now constructor(filePath: string, cause?: unknown, options?: {message?: string; context?: Record\<string, unknown>; suggestion?: string;}). [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.8.0)

And 2 more in this version.

### shadcn 4.7.0 breaking changes

shadcn 4.7.0, released May 5, 2026: 2 breaking changes.

- **Signature changed** `schema:configSchema`  

Was const configSchema: z.ZodObject<{$schema: z.ZodOptional\<z.ZodString>; style: z.ZodString; rsc: z.ZodDefault\<z.ZodBoolean>; tsx: z.ZodDefault\<z.ZodBoolean>; tailwind: z.ZodObject<{config: z.ZodOptional\<z.ZodString>; css: z.ZodString... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.7.0)
- **Signature changed** `schema:workspaceConfigSchema`  

Was const workspaceConfigSchema: z.ZodRecord\<z.ZodString, z.ZodObject<{$schema: z.ZodOptional\<z.ZodString>; style: z.ZodString; rsc: z.ZodDefault\<z.ZodBoolean>; tsx: z.ZodDefault\<z.ZodBoolean>; tailwind: z.ZodObject<{config... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.7.0)

### shadcn 4.3.1 breaking changes

shadcn 4.3.1, released April 20, 2026: 1 breaking change.

- **Behavior changed** `init`  

The init command now runs template post-init hooks only when it creates a new project, not when it runs in an existing one. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%404.3.1)

### shadcn 4.3.0 breaking changes

shadcn 4.3.0, released April 16, 2026: 3 breaking changes.

- **Signature changed** `preset:PRESET_FONT_HEADINGS`  

Was const PRESET_FONT_HEADINGS: readonly \["inherit", "inter", "noto-sans", "nunito-sans", "figtree", "roboto", "raleway", "dm-sans", "public-sans", "outfit", "jetbrains-mono", "geist", "geist-mono", "lora", "merriweather"... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.3.0)
- **Signature changed** `preset:PRESET_FONTS`  

Was const PRESET_FONTS: readonly \["inter", "noto-sans", "nunito-sans", "figtree", "roboto", "raleway", "dm-sans", "public-sans", "outfit", "jetbrains-mono", "geist", "geist-mono", "lora", "merriweather", "playfair-display", "noto-serif"... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.3.0)

And 1 more in this version.

### shadcn 4.1.2 breaking changes

shadcn 4.1.2, released March 31, 2026: 1 breaking change.

- **Signature changed** `preset:PRESET_STYLES`  

Was const PRESET_STYLES: readonly \["nova", "vega", "maia", "lyra", "mira"\]; now const PRESET_STYLES: readonly \["nova", "vega", "maia", "lyra", "mira", "luma"\]. [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.1.2)

### shadcn 4.1.0 breaking changes

shadcn 4.1.0, released March 19, 2026: 27 breaking changes.

- **Signature changed** `fetchTree`  

Was function fetchTree(style: string, tree: z.infer\<typeof registryIndexSchema>): Promise<({name: string; type: "registry:base"; config?: {registries?: Record\<string, string | {url: string; params?: Record\<string, string> | undefined... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.1.0)
- **Signature changed** `getPreset`  

Was function getPreset(name: string, options?: {useCache?: boolean;}): Promise<{description: string; name: string; title: string; theme: string; style: string; baseColor: string; iconLibrary: string; rtl: boolean; menuColor: "default" |... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.1.0)

And 25 more in this version.

### shadcn 4.0.8 breaking changes

shadcn 4.0.8, released March 15, 2026: 25 breaking changes.

- **Signature changed** `fetchTree`  

Was function fetchTree(style: string, tree: z.infer\<typeof registryIndexSchema>): Promise<({type: "registry:base"; name: string; tailwind?: {config?: {content?: string\[\] | undefined; theme?: Record\<string, any> | undefined; plugins?... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.0.8)
- **Signature changed** `getPreset`  

Was function getPreset(name: string, options?: {useCache?: boolean;}): Promise<{style: string; baseColor: string; iconLibrary: string; rtl: boolean; menuColor: "default" | "inverted" | "default-translucent" | "inverted-translucent"... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.0.8)

And 23 more in this version.

### shadcn 4.0.7 breaking changes

shadcn 4.0.7, released March 14, 2026: 11 breaking changes.

- **Signature changed** `fetchTree`  

Was function fetchTree(style: string, tree: z.infer\<typeof registryIndexSchema>): Promise<({type: "registry:base"; name: string; tailwind?: {config?: {content?: string\[\] | undefined; theme?: Record\<string, any> | undefined; plugins?... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.0.7)
- **Signature changed** `getRegistry`  

Was function getRegistry(name: string, options?: {config?: Partial\<Config>; useCache?: boolean;}): Promise<{name: string; homepage: string; items: ({type: "registry:base"; name: string; tailwind?: {config?: {content?: string\[\] | undefined... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.0.7)

And 9 more in this version.

### shadcn 4.0.3 breaking changes

shadcn 4.0.3, released March 10, 2026: 16 breaking changes.

- **Signature changed** `fetchTree`  

Was function fetchTree(style: string, tree: z.infer\<typeof registryIndexSchema>): Promise<({type: "registry:base"; name: string; tailwind?: {config?: {content?: string\[\] | undefined; theme?: Record\<string, any> | undefined; plugins?... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.0.3)
- **Signature changed** `getPreset`  

Was function getPreset(name: string, options?: {useCache?: boolean;}): Promise<{style: string; baseColor: string; iconLibrary: string; rtl: boolean; menuColor: "default" | "inverted"; menuAccent: "bold" | "subtle"; theme: string; name... [npmjs.com](https://www.npmjs.com/package/shadcn/v/4.0.3)

And 14 more in this version.

### shadcn 4.0.0 breaking changes

shadcn 4.0.0, released March 6, 2026: 17 breaking changes.

- **Behavior changed** `--radius`  

The --radius calculation now multiplies instead of adding, so generated radius values differ from before. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%404.0.0)
- **Behavior changed** `shadcn info`  

The info command now prints LLM-friendly output, so scripts parsing its old output may break. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%404.0.0)

And 15 more in this version.

### shadcn 3.0.0 breaking changes

shadcn 3.0.0, released August 27, 2025: 35 breaking changes.

- **Removed**  

The schema moved to a separate shadcn/schema location in 3.0.0, so imports from the old location need updating. [github.com](https://github.com/shadcn-ui/ui/releases/tag/shadcn%403.0.0)
- **Removed** `BASE_COLORS`  

BASE_COLORS was removed in shadcn 3.0.0 [npmjs.com](https://www.npmjs.com/package/shadcn/v/3.0.0)

And 33 more in this version.

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