Releases: parcel-bundler/lightningcss
Releases · parcel-bundler/lightningcss
v1.30.1
v1.30.0
Features
- Update relative color parsing to latest spec: colors now support numbers in addition to percentages, and calcs in colors are now always numbers. Note that this was technically a breaking change in the spec. You may need to update code using relative color calculations on percentages to use numbers instead. See the PR for details. – #465
- Update nesting implementation for new spec: It is now possible to nest selectors with pseudo elements, and declarations and nested rules can be interleaved. See https://web.dev/blog/css-nesting-cssnesteddeclarations for more details. – 6c465c1
- Skip generating unnecessary
@supports
rules when already nested in a@supports
rule – #878, d398c1b - Improve error recovery for media queries – #954
- Add support for ::picker, ::picker-icon and ::checkmark – #957
- Add build support for Android – #932
Fixes
- Fix error message for invalid composes selectors – #948
- Update browserslist – #961
- Fix linear-gradient direction conversion for legacy vendor-prefixed values – #936
- Prevent new lines in license comments from breaking source maps – #971
- Do not inline layers before imports – 33ea2c1
- Statically link Visual Studio redistributables on Windows builds – e5c4139
- update browser compat data – 17bdc80
v1.29.3
- Support for
::details-content
and::target-text
selectors – @philipp-spiess in #930 - Update
:placeholder-shown
selector name across browsers – @Marukome0743 in #929 - Support
/* cssmodules-pure-no-check */
comments – @jantimon in #898 - Update browser compatibility data – c03a7e7
v1.29.2
- Update detect-libc for better compatibility by @nicksrandall in #923
- Fix broken minification for non-opaque oklab colors by @lfesp in #901
- Bump browserslist-rs 0.17.0 by @chenjiahan in #912
- Add wasm compilation cfg for
Browsers::load_browserslist
by @CPunisher in #895 - Fix parsing style container queries without a value – 2284653
v1.29.0
Added
- Implement view transitions level 2, including the
@view-transition
rule,view-transition-class
andview-transition-group
properties, and class selector features of the view transition pseudo elements. This enables CSS module scoping and better minification when using these features. – #885 - Support parsing the
@font-feature-values
rule – #840 - Add a feature flag to explicitly enable or disable transpiling the
light-dark()
function – 3043896
Fixed
- Compile media query range syntax with boolean logic instead of fractional pixels. Fixes issues with rounding certain values. – 7f29035
- Fix parsing the
list-style
shorthand property – 97891d8 - Fix hashing of
:nth-child(an + b of X)
selectors in CSS modules – ed9e659 - Update napi-rs to fix issue with
\0
characters in filenames – 43707c3 - Fix CustomAtRule.loc TypeScript type – #876
- Call StyleSheet / StyleSheetExit / Rule.custom.* in visitors passed to
composeVisitors
– #875 - Update browser compat data – cdbf0d4
v1.28.2
Fixes
- Fix duplicate prefixed properties in
transition-property
– #850 (thanks @RobinMalfait and @LeoniePhiline!) - Fix mapping original name from source maps – 78f2fc4
- Bump browser compat data – 4159bc5
- Ensure consistent order of custom properties when
all
property is set – d4eec35
v1.28.0
Added
- Add option to avoid hashing
@container
names in CSS Modules by @kdy1 in #835 - Improve error message of
input:placeholder
by @kdy1 in #813 - Add an error for the deprecated
@value
at-rule of CSS Modules by @kdy1 in #842
Fixed
- Don't panic when passing system-color to color-mix by @inottn in #819
- Dependency updates by @kornelski in #814
- Fix order of fallback width, height, and other size related properties – 22a8b6f
- Fix stack overflow parsing
calc
expression – e3c8e12 - Fix crash when parsing an invalid
calc
expression – 378955e - Skip
clamp
function reduction when the comparison between preferred and max value is unknown – ddc9ce8 - Update browser compatibility data – f6b033f
- docs: Update help command docs by @DylanPiercey in #812
- docs: fix link to visitor type definitions by @mayank99 in #823
v1.27.0
Added
- Add
[content-hash]
css module pattern by @rubberpants in #802. This includes a hash of the file contents rather than the file path (as[hash]
works), which can be used to support multiple versions of the same library simultaneously without conflicts. - Improve error message for pseudo elements followed by selectors by @kdy1 in #797
- Implement pure mode lints for CSS Modules by @kdy1 in #796. This option enforces the use of a class or id selector in each rule.
Fixed
- Fix
box-shadow
combination ofoklch
andcurrentColor
by @hi-ogawa in #801 - Add missing browserslist import in docs.md by @cpeaustriajc in #798
- Update broken selectors link in homepage by @20jasper in #750
- Make CLI example work with Windows by @tim-we in #726
- Update copyright year on main page by @log101 in #790
- Update browser compat data - 54390b4
v1.26.0
Added
- Add support for named timeline ranges in
@keyframes
by @grimsteel in #787 - Implement animation-range properties – 39964f1
- Add a lint for unsupported CSS Module selector by @kdy1 in #784
- add wasm file to package exports by @elevatebart in #755
- Add support for arm64 Windows – 0bcd896
Fixed
- Fix codegen of
:is(input:checked)
by @kdy1 in #783 - Bump browserslist-rs 0.16.0 by @chenjiahan in #772
- update compat data – dcbb997
v1.25.1
Fixes a property ordering bug when using the all
shorthand.