npm / @ant-design/cssinjs
@ant-design/cssinjs
What changed in @ant-design/cssinjs 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
1 security2 new APIs and options2 performance2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@ant-design/cssinjs 27 changes
Security 1
CSS variable styles support nonce handling through StyleProvider's nonce.
New APIs and options 2
CSS variable registration now supports multiple scopes.
extractStyle supports once.
Performance 2
Hash class generation was optimized, which may improve performance for developers using the package.
Selector injection logic was optimized, which may improve performance for developers using the package.
Fixes and other changes 2
Skips appending styles when value is null or undefined.
Fixes removeCSS not working with container.