shadcn breaking changes
Updated December 4, 2026
On this page
Latest version 4.24.1, released December 4, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
shadcn 4.23.0 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 - 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 - 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
shadcn 4.22.0 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 - 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 - 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
shadcn 4.21.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?: {theme?: Record<string, any> | undefined; content?... npmjs.com - 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
shadcn 4.21.4 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 - Signature changed
utils:transformFont
Was export {transformFont} from '@shadcn/registry/internal/utils/transformers/transform-font'; now const transformFont: SourceFileTransformer. npmjs.com - Signature changed
utils:transformIcons
Was export {transformIcons} from '@shadcn/registry/internal/utils/transformers/transform-icons'; now const transformIcons: SourceFileTransformer. npmjs.com - Signature changed
utils:transformMenu
Was export {transformMenu} from '@shadcn/registry/internal/utils/transformers/transform-menu'; now const transformMenu: SourceFileTransformer. npmjs.com - Signature changed
utils:transformRender
Was const transformRender: Transformer; now const transformRenderSourceFile: SourceFileTransformer. npmjs.com
shadcn 4.21.1 breaking changes
- Removed
getItemTargetPath
getItemTargetPath was removed in shadcn 4.21.1 npmjs.com - Removed
getPackageJsonRegistries
getPackageJsonRegistries was removed in shadcn 4.21.1 npmjs.com - Removed
getPreset
getPreset was removed in shadcn 4.21.1 npmjs.com - Removed
getPresets
getPresets was removed in shadcn 4.21.1 npmjs.com - Removed
getRegistries
getRegistries was removed in shadcn 4.21.1 npmjs.com - Removed
getRegistriesConfig
getRegistriesConfig was removed in shadcn 4.21.1 npmjs.com - Removed
getRegistriesIndex
getRegistriesIndex was removed in shadcn 4.21.1 npmjs.com - Removed
getRegistry
getRegistry was removed in shadcn 4.21.1 npmjs.com - Removed
getRegistryBaseColor
getRegistryBaseColor was removed in shadcn 4.21.1 npmjs.com - Removed
getRegistryBaseColors
getRegistryBaseColors was removed in shadcn 4.21.1 npmjs.com
And 102 more in this version. Sign up to see every change
shadcn 4.21.0 breaking changes
- 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
Older versions
22 older versions, each with its first changes. Sign up to see every change
Show 22 older versions
shadcn 4.18.0 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 - 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
And 1 more in this version.
shadcn 4.16.2 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 - 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
And 1 more in this version.
shadcn 4.16.1 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 - 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
And 2 more in this version.
shadcn 4.16.0 breaking changes
- Removed
registry:AddRegistryItemsOptions
AddRegistryItemsOptions was removed in shadcn 4.16.0 npmjs.com - 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
And 1 more in this version.
shadcn 4.15.0 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 - 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
And 4 more in this version.
shadcn 4.14.1 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 - 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
And 20 more in this version.
shadcn 4.13.1 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 - 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
And 1 more in this version.
shadcn 4.13.0 breaking changes
- 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
shadcn 4.11.0 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 - 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
shadcn 4.10.0 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
shadcn 4.8.1 breaking changes
- 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
shadcn 4.8.0 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 - 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
And 2 more in this version.
shadcn 4.7.0 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 - 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
shadcn 4.3.1 breaking changes
- 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
shadcn 4.3.0 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 - 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
And 1 more in this version.
shadcn 4.1.2 breaking changes
- 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
shadcn 4.1.0 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 - 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
And 25 more in this version.
shadcn 4.0.8 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 - 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
And 23 more in this version.
shadcn 4.0.7 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 - 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
And 9 more in this version.
shadcn 4.0.3 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 - 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
And 14 more in this version.
shadcn 4.0.0 breaking changes
- Behavior changed
--radius
The --radius calculation now multiplies instead of adding, so generated radius values differ from before. github.com - Behavior changed
shadcn info
The info command now prints LLM-friendly output, so scripts parsing its old output may break. github.com
And 15 more in this version.
shadcn 3.0.0 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 - Removed
BASE_COLORS
BASE_COLORS was removed in shadcn 3.0.0 npmjs.com
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, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.