---
title: "@ant-design/cssinjs 2.0.0 Breaking Changes on npm"
description: "What each @ant-design/cssinjs release removed, renamed or changed: 6 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@ant-design/cssinjs
last_updated: 2026-12-04
---

# @ant-design/cssinjs breaking changes

@ant-design/cssinjs 2.0.0 (November 17, 2025) is its newest release with breaking changes, 5 of them. The first: Removed StyleProviderProps.autoClear. Every breaking API change we have recorded in @ant-design/cssinjs on npm: 6 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.2.0`, released November 16, 2026. [Source repository](https://github.com/ant-design/cssinjs)

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

- From [2.0.0-alpha.6](#v-2-0-0-alpha-6) to [2.0.0](#v-2-0-0): 5 breaking changes in 1 version.

## @ant-design/cssinjs 2.0.0 breaking changes

@ant-design/cssinjs 2.0.0, released November 17, 2025: 5 breaking changes.

- **Removed** `StyleProviderProps.autoClear`  

StyleProviderProps.autoClear was removed in @ant-design/cssinjs 2.0.0 [npmjs.com](https://www.npmjs.com/package/@ant-design/cssinjs/v/2.0.0)
- **Signature changed** `StyleProviderProps`  

Was type StyleProviderProps = Partial\<StyleContextProps> & {children?: React.ReactNode;}; now type StyleProviderProps = Partial\<Omit\<StyleContextProps, 'autoPrefix'>> & {children?: React.ReactNode;}. [npmjs.com](https://www.npmjs.com/package/@ant-design/cssinjs/v/2.0.0)
- **Signature changed** `useCacheToken`  

Was function useCacheToken\<DerivativeToken = object, DesignToken = DerivativeToken>(theme: Theme\<any, any>, tokens: Partial\<DesignToken>\[\], option?: Option\<DerivativeToken, DesignToken>): TokenCacheValue\<DerivativeToken>; now function... [npmjs.com](https://www.npmjs.com/package/@ant-design/cssinjs/v/2.0.0)
- **Signature changed** `useCSSVarRegister`  

Was const useCSSVarRegister: \<V, T extends Record\<string, V>>(config: {path: string\[\]; key: string; prefix?: string; unitless?: Record\<string, boolean>; ignore?: Record\<string, boolean>; scope?: string; token: any;}, fn: () => T) =>... [npmjs.com](https://www.npmjs.com/package/@ant-design/cssinjs/v/2.0.0)
- **Signature changed** `useStyleRegister`  

Was function useStyleRegister(info: {theme: Theme\<any, any>; token: any; path: string\[\]; hashId?: string; layer?: LayerConfig; nonce?: string | (() => string); clientOnly?: boolean; order?: number;}, styleFn: () => CSSInterpolation)... [npmjs.com](https://www.npmjs.com/package/@ant-design/cssinjs/v/2.0.0)

## @ant-design/cssinjs 2.0.0-alpha.6 breaking changes

@ant-design/cssinjs 2.0.0-alpha.6, released November 17, 2025: 1 breaking change.

- **Behavior changed**  

Style render order is preserved during server-side rendering; a fix that changes output order for SSR users. [github.com](https://github.com/ant-design/cssinjs/releases/tag/%40ant-design/cssinjs%402.0.0-alpha.6)

## Related packages

- [@ant-design/web3-common](https://since.dev/packages/npm/@ant-design/web3-common.md)
- [@ant-design/web3-icons](https://since.dev/packages/npm/@ant-design/web3-icons.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.
