4505 Commits

Author SHA1 Message Date
depfu[bot]
09d151f3f9 Update esbuild to version 0.14.21 2022-02-14 17:43:53 +00:00
depfu[bot]
0c5af6fed4 Update jest to version 27.5.1 2022-02-12 10:25:12 +00:00
depfu[bot]
c13afd38aa Update jest-diff to version 27.5.1 2022-02-12 10:15:18 +00:00
Jordan Pittman
b26ffa0581 3.0.22 v3.0.22 2022-02-11 10:32:30 -05:00
Jordan Pittman
752f54cc37 update changelog 2022-02-11 10:32:30 -05:00
Jordan Pittman
23661cfef0
Temporarily move postcss to dependencies (#7424)
* Temporarily move postcss to dependencies

This is unfortunate but upgrading postcss-js caused postcss to not be installed at all. This is fine except in this case of NPM <= 6 when running npx tailwindcss init, or yarn v1, or npm 7/8 with legacy peer deps behavior and doing a similar thing. Deduping will still allow the user to install postcss and upgrade it and Tailwind CSS will pick it up. A more permanent solution may involve hijacking require or something similar.

* Update changelog
2022-02-11 10:08:54 -05:00
Jordan Pittman
9f119e503e 3.0.21 v3.0.21 2022-02-10 18:08:59 -05:00
Jordan Pittman
754dcdd6df Update changelog 2022-02-10 18:07:31 -05:00
Jordan Pittman
15e51e9e54
Move prettier plugin to dev dependencies (#7418)
* Move prettier plugin to dev dependencies

* Update changelog
2022-02-10 18:03:53 -05:00
Robin Malfait
99a8ab118d
3.0.20 v3.0.20 2022-02-10 18:16:01 +01:00
Robin Malfait
9e6dd60d0b
update changelog 2022-02-10 18:16:01 +01:00
Robin Malfait
96d4ce2516
Expose context.sortClassList(classes) (#7412)
* add prettier-plugin-tailwindcss

This will use the prettier plugin in our tests as well, yay consistency!

* ensure that both `group` and `peer` can't be used in `@apply`

This was only configured for `group`

* expose `sortClassList` on the context

This function will be used by the `prettier-plugin-tailwindcss` plugin,
this way the sorting happens within Tailwind CSS itself adn the
`prettier-plugin-tailwindcss` plugin doesn't have to use internal /
private APIs.

The signature looks like this:
```ts
function sortClassList(classes: string[]): string[]
```

E.g.:
```js
let sortedClasses = context.sortClassList(['p-1', 'm-1', 'container'])
```

* update changelog

* add sort test for utilities with the important modifier e.g.: `!p-4`
2022-02-10 18:06:41 +01:00
depfu[bot]
5ea67b0a86 Update postcss to version 8.4.6 2022-02-08 11:58:56 +00:00
Jordan Pittman
2250e1bacd 3.0.19 v3.0.19 2022-02-07 15:58:01 -05:00
Jordan Pittman
cbff982a42 Update changelog 2022-02-07 15:57:16 -05:00
Jonathan Reinink
58bd3016d1
Update CHANGELOG.md 2022-02-07 15:41:15 -05:00
Jordan Pittman
01fbe196c4
Fix negative utility generation and detection when using a prefix (#7295)
* Add failing tests for negative utility detection

We're not generating them properly in all cases, when using at-apply we sometimes crash, and safelisting doesn't currently work as expected.

* Refactor

* Generate utilities for negatives before and after the prefix

* Properly detect negative utilities with prefixes in the safelist

* Refactor test a bit

* Add class list tests

* Update changelog
2022-02-07 10:24:30 -05:00
Jordan Pittman
ab9fd951dd
Use less hacky fix for urls detected as custom properties (#7275)
* Use less hacky fix for urls detected as custom properties

* Add more test cases

* Update changelog
2022-02-07 10:00:19 -05:00
Jordan Pittman
d87bdb2f81 Update changelog 2022-02-07 09:55:28 -05:00
Jordan Pittman
dc6644e0c8
Eliminate recursion from candidatePermutations (#7331) 2022-02-07 09:52:54 -05:00
Adam Wathan
8e38bbc85f
Update LICENSE 2022-02-05 15:22:47 -05:00
Adam Wathan
520d3542ce
Update package.json 2022-02-05 15:21:34 -05:00
depfu[bot]
94ead15f27 Update eslint to version 8.8.0 2022-02-04 21:30:09 +00:00
depfu[bot]
45e17dd6ae Update cssnano to version 5.0.16 2022-02-04 18:14:23 +00:00
depfu[bot]
9f23bb356e Update @swc/register to version 0.1.10 2022-02-03 05:58:03 +00:00
Jordan Pittman
50802e1aed
Correctly parse shadow lengths without a leading zero (#7289)
* Correctly parse shadow lengths without a leading zero

* Update changelog

* Fix code style
2022-02-01 11:54:03 -05:00
Jordan Pittman
dab8b046ea Update changelog 2022-02-01 11:29:04 -05:00
Jordan Pittman
75ba4e0f8f
Fix preflight border color fallback (#7288) 2022-02-01 11:27:42 -05:00
depfu[bot]
fb14b2d561 Update resolve to version 1.22.0 2022-01-31 21:28:37 +00:00
Robin Malfait
ce987357de
3.0.18 v3.0.18 2022-01-28 20:46:16 +01:00
Robin Malfait
44fac9036b
update changelog 2022-01-28 20:46:16 +01:00
Robin Malfait
39193c17e1
Quick fix for incorrect arbitrary properties when using URLs (#7252)
* quick fix for incorrect arbitrary properties

Turns out that using links like [https://example.com] causes arbitrary
properties to generate invalid css.
This is a very dirty quick fix for this specific case, so we have to fix
this properly!

* update changelog
2022-01-28 20:45:24 +01:00
depfu[bot]
0bdc90d0c4 Update postcss-selector-parser to version 6.0.9 2022-01-27 12:28:25 +00:00
Robin Malfait
1868eb6177
Fix @apply order regression (in addComponents, addUtilities, ...) (#7232)
* ensure to partition `@apply` rules generated by addComponents, addUtilities, ...

* update changelog
2022-01-27 13:16:44 +01:00
Robin Malfait
74997f1646
3.0.17 v3.0.17 2022-01-26 19:32:02 +01:00
Robin Malfait
af0914ad7b
update changelog 2022-01-26 19:32:01 +01:00
Robin Malfait
64cf0b8e8a
Remove false positive warning in CLI when using the --content option (#7220)
* ensure content files are available in config

If you use the cli with the `--content` option, then we first resolve
the config (empty), then add the `content` to the config. The issue is
that this means that the content will be empty when you resolve it
initially. This results in a warning in your terminal.

Now, we will make sure to merge 2 configs if you have the `--content`
data passed. We will also make sure to override the final
`config.content.files` to whatever you passed in to make sure that this
is the same behaviour as before.

* update changelog
2022-01-26 19:31:50 +01:00
depfu[bot]
35bac2aadd Update autoprefixer to version 10.4.2 2022-01-26 16:44:04 +00:00
depfu[bot]
490c9dcb29 Update chokidar to version 3.5.3 2022-01-25 07:58:28 +00:00
Robin Malfait
2a9b6c9b10
add missing changelog entries 2022-01-24 14:58:44 +01:00
Robin Malfait
b1c77d6406
3.0.16 v3.0.16 2022-01-24 14:56:48 +01:00
Robin Malfait
837781ad08
update changelog 2022-01-24 14:56:48 +01:00
Jonathan Reinink
bab689ca82
Improve various warnings (#7118) 2022-01-19 15:09:13 -05:00
depfu[bot]
f8ed6a24f4 Update @swc/jest to version 0.2.17 2022-01-19 10:14:14 +00:00
Jordan Pittman
cca5a3804e Fix grammatical mistake 2022-01-17 14:21:43 -05:00
depfu[bot]
b99f380f45 Update cssnano to version 5.0.15 2022-01-17 12:58:45 +00:00
depfu[bot]
3e2a067333 Update fast-glob to version 3.2.11 2022-01-16 13:58:30 +00:00
Robin Malfait
167668e9cf
Ensure to transpile the PostCSS Nesting plugin (tailwindcss/nesting) (#7080)
* ensure that we compile the postcss nesting plugin

* re-add optional chaining

This will allow us to be 100% sure that we can safely call
hasOwnProperty in case we get some very strange objects.

This will now also be compiled/transpiled by esbuild.

* import the internal postcss nesting plugin

This allows us to work on it without re-compiling while running tests.
Just like we do with all other code.

* update changelog
2022-01-15 16:07:20 +01:00
Robin Malfait
61b68a2149
3.0.15 v3.0.15 2022-01-15 02:36:58 +01:00
Robin Malfait
ffa746129d
update changelog 2022-01-15 02:36:57 +01:00