Headline changes
The biggest part of this release, aside from continued optimisations and supporting more and more esoteric CSS (shout out to ::-moz-svg-outer-svg-anon-child) this release adds two big improvements to minification:
RemoveOveriddenDeclarationswill automatically remove declarations inside of a rule which later get overridden. For examplewidth:10px;width:20pxwill minify towidth:20px. This also works for shorthands, so for examplemargin-left:10px;margin:20pxwill minify tomargin:20px.ReduceShorthandValueswill automatically (safely!) rewrite declarations to their shorthand equivalents. For examplemargin-left:10px;margin-right:10px;margin-bottom:10px;margin-top:10pxwill be rewritten asmargin:10px.
What's Changed
- css_parse: Consume multiple semicolons loose in Stylesheet by @keithamus in #1452
- css_ast: Add more missing pseudos by @keithamus in #1453
- csskit_proc_macro: Add full feature flag to syn dep by @keithamus in #1454
- workspace: Globalise linting and clean up warnings by @keithamus in #1455
- css_ast: implement QueryableNode for unknown tag/at-rule nodes by @keithamus in #1457
- csskit: separate parse/check failures, add find --group by @keithamus in #1460
- chore(deps): update dependency @napi-rs/cli to v3.8.6 by @renovate[bot] in #1459
- chore(deps): update dependencies (patch) by @renovate[bot] in #1458
- csskit_spec_generator/css_ast: Add concept of shorthand resets by @keithamus in #1461
- upgrade Rust 1.98.0 by @keithamus in #1464
- csskit_area/derive_atom_set: Fold readme into lib docs by @keithamus in #1462
- benchmarks: fix lightningcss by @keithamus in #1465
- bytescan/css_lexer: Factor out SIMD scanning into new library by @keithamus in #1466
- csskit_napi: Add binary to cargo.toml by @keithamus in #1468
- coverage: update css-minify-tests by @keithamus in #1469
- css_ast/csskit_spec_generator: Complete shorthand/longhand metadata by @keithamus in #1470
- csskit_transform: Introduce RemoveOveriddenDeclarations transform by @keithamus in #1471
- csskit_transform: Introduce ReduceShorthandValues by @keithamus in #1472
- Release v0.0.31 by @keithamus in #1456
- fix(deps): update dependency cssnano to v9 by @renovate[bot] in #1467
- css_parse/csskit_arena/source_tools: Move Vec/Box/String into csskit_arena by @keithamus in #1473
- fix(deps): update dependency apexcharts to v7 by @renovate[bot] in #1463
- fix(deps): update dependency @mdit/plugin-alert to v2 by @renovate[bot] in #1401
- release: re-add
@release commentsby @keithamus in #1474 - release: re-add
@release commentsby @keithamus in #1475 - coverage: update css-minify-tests by @keithamus in #1476
- csskit_napi: Don't publish to registry by @keithamus in #1477
Full Changelog: v0.0.30...v0.0.31