4966 Commits

Author SHA1 Message Date
Jordan Pittman
ec5136c19a
Fix perf regression when checking for changed content (#10234)
* Commit changes to mod time cache all at once

This allows us to track changes in files that are both a context and content dependency in a way that preserves file mod checking optimizations

* fixup
2023-01-03 15:45:51 -05:00
Jordan Pittman
7d8eb21de6
Don't prefix classes in arbitrary variants (#10214)
* Add tests

* Refactor

refactor

* Allow `prefixSelector` to take an AST

* Consider multiple formats in `finalizeSelector`

The functions `finalizeSelector` and `formatVariantSelector` together were using a mix for AST and string-based parsing. This now does the full transformation using the selector AST. This also parses the format strings AST as early as possible and is set up to parse them only once for a given set of rules.

All of this will allow considering metadata per format string. For instance, we now know if the format string `.foo &` was produced by a normal variant or by an arbitrary variant. We use this information to control the prefixing behavior for individual format strings.

* Update changelog

* Cleanup code a bit
2023-01-03 09:40:47 -05:00
Robin Malfait
2b885ef252
Allow direct nesting in root or @layer nodes (#10229)
* hide nesting warnings in `root` or `@layer` nodes

* update changelog
2023-01-03 12:38:30 +01:00
Jordan Pittman
3a8e95d848
Match arbitrary properties even when followed by square bracketed text (#10212)
* Match arbitrary properties even when followed by square bracketed text

* Update changelog
2023-01-02 09:43:07 -05:00
depfu[bot]
5594c3bec9 Update @swc/cli to version 0.1.59 2023-01-01 05:27:44 +00:00
depfu[bot]
8b13ecfe16 Update eslint to version 8.30.0 2022-12-30 22:14:46 +00:00
depfu[bot]
dc26c5e3f8 Update @swc/core to version 1.3.24 2022-12-28 12:13:11 +00:00
Adam Wathan
941ef21774
Update CHANGELOG.md 2022-12-27 10:21:31 -05:00
depfu[bot]
a795e4554f
Update esbuild to version 0.16.10 (#10178)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2022-12-27 10:20:36 -05:00
depfu[bot]
8462d6708b Update prettier to version 2.8.1 2022-12-22 06:55:34 +00:00
Nikolai Grushkovsky
41e655dd0b
Fix GitHub workflow badge (#10120)
See badges/shields#8671
2022-12-19 10:44:47 +01:00
depfu[bot]
6998ca418a Update postcss to version 8.4.20 2022-12-18 17:58:58 +00:00
depfu[bot]
03d2a04b3e Update @swc/jest to version 0.2.24 2022-12-17 00:28:32 +00:00
Jordan Pittman
51b6224e6a
Update list of length units (#10100)
* Update length units

* Update changelog
2022-12-16 10:16:12 -05:00
Nikolai Grushkovsky
c834da4e80
Fix missing string[] in the dropShadow type (#10072)
* Fix missing `string[]` in the `dropShadow` type

* Update changelog

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2022-12-14 09:48:49 -05:00
sibbng
ce7ac96e88
Properly handle subtraction followed by a variable in arbitrary values (#10074)
* fix normalizing subtraction followed by a variable

* Add test

* Update changelog

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2022-12-14 09:27:34 -05:00
Jordan Pittman
25d17db78c
Prevent invalid arbitrary variant selectors from failing the build (#10059)
* Refactor

* Prevent invalid arbitrary variant selectors from failing the build

* Update changelog

* Fix CS
2022-12-12 11:03:53 -05:00
depfu[bot]
40c0cbe272 Update eslint to version 8.29.0 2022-12-09 22:36:47 +00:00
Quentin
4b5ab1ae97
Add data key to theme types (#10023)
* Add "data" type in tailwind.config

* Update changelog

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2022-12-09 10:37:42 -05:00
Jordan Pittman
cea08380dc
Sort arbitrary variants deterministically regardless of content order (#10016)
* Fix off-by-one error in variant sort mapping

This didn’t actually have any negative effect because of how it was implemented. But it only happened to work right :D

* Make arbitrary variant sorting deterministic

* Update changelog

* Use faster byte-order comparison

We really only care that the order is _always_ the same. localeCompare is still locale dependent based on environment. This ensures it’s dependent on content only.

* Fix CS
2022-12-08 09:05:46 -05:00
Robin Malfait
fde30c307e
use decl.prop instead of undefined decl.name
While working on TypeScript types in the oxide version, I noticed that
we used `decl.name`, which is not defined... oops!
2022-12-08 13:50:06 +01:00
Jordan Pittman
5d4949845a Update changelog 2022-12-05 12:40:57 -05:00
Michael J. Rasicci
9e8d37a8e2
Add standalone-cli build for Windows Arm64 platform (#10001)
* Add standalone-cli build for Windows ARM64

* Fix path to binary on windows

* Fix style

* Simplify Windows mapping in standalone CLI tests

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2022-12-05 12:39:04 -05:00
depfu[bot]
a92932f4cc Update @swc/core to version 1.3.21 2022-12-03 14:58:24 +00:00
Jordan Pittman
d620e5d8de Remove .only 2022-12-02 12:20:43 -05:00
Jordan Pittman
c515a91f58
Don’t reorder webkit scrollbar pseudo elements (#9991)
* Don’t reorder webkit scrollbar pseudo elements

In reality, we need to stop reordering pseudo elements completely as `::before:hover` and `::after:hover` are 100% valid and should work per the CSS selector spec even though no browser currently supports it.

* Update changelog
2022-12-02 12:18:23 -05:00
Adam Wathan
a1249779ec Make button show up 2022-12-01 10:41:28 -05:00
Adam Wathan
6f53bded9d Rename swcify script to build 2022-12-01 10:10:10 -05:00
Jordan Pittman
e8b036567d
Clip unbalanced closing brackets in arbitrary values (#9973)
* Properly clip when there are too many `]` characters

* Update changelog
2022-12-01 09:43:55 -05:00
Jonathan Reinink
8f49251c0f
Update CHANGELOG.md 2022-11-30 18:22:46 -05:00
Cameron Huntington
293ee902cf
Alphabetize theme keys in default config (#9953)
* alphabetize several theme properties

* Alphabetize all `theme` properties in default config

Co-authored-by: Jonathan Reinink <jonathan@reinink.ca>
2022-11-30 18:21:18 -05:00
Robin Malfait
4f92e2ff5e
Improve return value of resolveConfig, unwrap ResolvableTo (#9972)
* improve return value of `resolveConfig`, unwrap `ResolvableTo`

* update changelog
2022-11-30 14:26:15 +01:00
Robin Malfait
cac5a28c41 npm run style -- --fix 2022-11-30 11:38:37 +00:00
depfu[bot]
f43997de00 Update prettier to version 2.8.0 2022-11-30 11:38:37 +00:00
Adam Wathan
cbbfa827a4
Support variable shorthand for arbitrary modifiers (#9962)
* Support variable shorthand for arbitrary modifiers

* Update changelog

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2022-11-29 16:06:58 -05:00
Jordan Pittman
1d23dcbe92
Add --watch=always option to prevent exit when stdin closes (#9966)
* Support `--flag=value` syntax for manually-parsed CLI args

* Don’t exit when stdin closes if using `--watch=always`

* Update changelog
2022-11-29 14:57:07 -05:00
nakajima a.k.a. nazomikan
705d21397c
Support renaming of output files by PostCSS plugin. (#9944)
* Support for rename of output files by postcss plugin.

* update changelog

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2022-11-29 11:17:39 +01:00
depfu[bot]
bf8f39a4db Update postcss-selector-parser to version 6.0.11 2022-11-28 12:19:36 +00:00
Robin Malfait
f0bac0f92f
only trigger oxide workflow for oxide branch 2022-11-28 13:06:56 +01:00
Robin Malfait
458950f5df
improve ci 2022-11-25 15:27:39 +01:00
Robin Malfait
ab47cee503
drop withAlpha on theme (#9906) 2022-11-25 14:03:50 +01:00
Adam Wathan
b7c1bee131
Update config.yml 2022-11-25 06:01:12 -05:00
depfu[bot]
873797fd96 Update esbuild to version 0.15.15 2022-11-24 19:13:29 +00:00
Adam Wathan
b5f5adf3f5
Support using variables as arbitrary values without var() (#9880)
* Support using variables as arbitrary values without var()

* Update changelog

* Add tests for variable fallback values

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2022-11-22 10:24:39 -05:00
Adam Wathan
ea10bb9d41
Add line-height modifier for font-size utilities (#9875)
* Add line-height modifier for font-size utilities

* Add test for arbitrary values

* Add failing test for non-configured modifier values

* Add more tests (including failing case)

* Remove unused code

* Add note + failing test

* Remove unused code

* Fix test

* Fix test

* Update changelog

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2022-11-22 09:37:07 -05:00
Adam Wathan
0d9e190785 Update changelog 2022-11-19 06:34:39 -05:00
depfu[bot]
03e3852b6f Update eslint to version 8.27.0 2022-11-18 21:29:41 +00:00
depfu[bot]
c379f18b2f Update postcss to version 8.4.19 2022-11-17 23:13:34 +00:00
Adam Wathan
a0d0d96ac6 Add additional matchUtilities test 2022-11-17 15:20:48 -05:00
Adam Wathan
cdbaa740f0 Rename isValidArbitraryValue 2022-11-17 15:19:31 -05:00