# What changed in @ant-design/cssinjs

> 7 changes in @ant-design/cssinjs 2 from its official release notes, upgrade guides and advisories: 1 security, 2 new APIs and options. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/@ant-design/cssinjs/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @ant-design/cssinjs 2

### Security

- CSS variable styles support nonce handling through StyleProvider's nonce. (2.1.1) — [release notes](https://github.com/ant-design/cssinjs/releases/tag/%40ant-design/cssinjs%402.1.2), [release notes](https://github.com/ant-design/cssinjs/releases/tag/%40ant-design/cssinjs%402.1.1)

### New APIs and options

- CSS variable registration now supports multiple scopes. (2.1.0) — [release notes](https://github.com/ant-design/cssinjs/releases/tag/%40ant-design/cssinjs%402.1.0)
- extractStyle supports once. (2.0.0) — [release notes](https://github.com/ant-design/cssinjs/releases/tag/%40ant-design/cssinjs%402.0.0)

### Performance

- Hash class generation was optimized, which may improve performance for developers using the package. (2.0.2) — [release notes](https://github.com/ant-design/cssinjs/releases/tag/%40ant-design/cssinjs%402.0.2)
- Selector injection logic was optimized, which may improve performance for developers using the package. (2.0.2) — [release notes](https://github.com/ant-design/cssinjs/releases/tag/%40ant-design/cssinjs%402.0.2)

### Fixes and other changes

- Skips appending styles when value is null or undefined. (2.0.3) — [release notes](https://github.com/ant-design/cssinjs/releases/tag/%40ant-design/cssinjs%402.0.3)
- Fixes removeCSS not working with container. (2.0.0) — [release notes](https://github.com/ant-design/cssinjs/releases/tag/%40ant-design/cssinjs%402.0.0)
