-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: tailwindlabs/tailwindcss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.10
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: tailwindlabs/tailwindcss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.12
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 19 commits
- 43 files changed
- 7 contributors
Commits on Jan 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 78fb761 - Browse repository at this point
Copy the full SHA 78fb761View commit details -
Ignore content files that don't exist (#6901)
* ignore content files that don't exist PostCSS CLI will give you a fake file path that ends in /stdin if you are reading from stdin. * update changelog
Configuration menu - View commit details
-
Copy full SHA for 5f49e53 - Browse repository at this point
Copy the full SHA 5f49e53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fdc391 - Browse repository at this point
Copy the full SHA 9fdc391View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3612d3 - Browse repository at this point
Copy the full SHA e3612d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24c1f8d - Browse repository at this point
Copy the full SHA 24c1f8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a00b9fb - Browse repository at this point
Copy the full SHA a00b9fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd4dddd - Browse repository at this point
Copy the full SHA bd4ddddView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc6c27d - Browse repository at this point
Copy the full SHA fc6c27dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82f163d - Browse repository at this point
Copy the full SHA 82f163dView commit details
Commits on Jan 6, 2022
-
Ensure we can apply classes defined with non-"on-demandable" selectors (
#6922) * improve extractCandidates When we have a css rule that is defined as `.foo, .bar {}`, then we will crawl each selector and link it to the same node. This is useful because now our Map looks something like this: ```js Map(2) { 'foo' => Node {}, 'bar' => Node {} } ``` This allows us to later on `@apply foo` or `@apply bar` and we can do a direct lookup for this "candidate". When we have css defined as `span {}`, then we consider this "non-ondemandable". This means that we will _always_ inject these rules into the `*` section and call it a day. However, it could happen that you have something like this: `span, .foo {}` up until now this was totally fine. It contains a non-ondemandable selector (`span`) and therefore we injected this into that `*` section. However, the issue occurs if you now try to `@apply foo`. Since we had an early return for this use case it didn't endup in our Map from above and now you get an error like: ``` The `foo` class does not exist. If `foo` is a custom class, make sure it is defined within a `@layer` directive." ``` So instead what we will do is keep track whether or not a css rule contains any on-demandable classes. If this is the case then we still generate it always by putting it in that `*` section. However, we will still register all on-demandable classes in our Map (in this case `.foo`). This allows us to `@apply foo` again! * update changelog
Configuration menu - View commit details
-
Copy full SHA for 21fe083 - Browse repository at this point
Copy the full SHA 21fe083View commit details -
Configuration menu - View commit details
-
Copy full SHA for ece160c - Browse repository at this point
Copy the full SHA ece160cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 93e5717 - Browse repository at this point
Copy the full SHA 93e5717View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4562b7c - Browse repository at this point
Copy the full SHA 4562b7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c72add - Browse repository at this point
Copy the full SHA 9c72addView commit details
Commits on Jan 7, 2022
-
Ensure
@apply
works consistently with or without@layer
(#6938)* partition nodes as soon as possible Time to write another story on `@apply`... When we write code like this: ```css .a { @apply b; } .b { @apply uppercase; color: red; } ``` Then we create 2 Nodes in our context to keep track of. One has identifier `a`, the other has identifier `b`. However, when we have an `@apply` and it contains multiple declarations/atrules, then we have to split up the (aka partition) node into multiple nodes so that we can guarantee the correct expected sort order. This means that the above example technically looks like this: ```css .a { @apply b; } .b { @apply uppercase; } .b { color: red; } ``` If this was your input, then we would still have 1 node for identifier 'a', but we would have 2 nodes for identifier 'b'. As mentioned earlier, this is important to guarantee the correct order, here is an example: ```css .b { @apply md:font-bold xl:font-normal; /* Here we can sort by our internal rules. This means that the `md` comes before `xl`. */ } ``` ... however ```css .b { @apply xl:font-normal; /* This now exists _before_ the example below */ } .b { @apply md:font-bold; /* Because we respect the order of the user's css */ } ``` So to guarantee the order when doing this: ```css .b { @apply xl:font-normal; @apply lg:font-normal; } ``` We also split this up into 2 nodes like this: ```css .b { @apply xl:font-normal; } .b { @apply lg:font-normal; } ``` The tricky part is that now only 1 empty `.b` node exists in our context because we partitioned the orginal node into multiple nodes and moved the children to the new nodes and because they are new nodes it means that they have a different identity. This partitioning used to happen in the expandApplyAtRules code, but this is a bit too late because the context has already been filled at this time. Instead, we move the code more to the front, as if you wrote those separated blocks yourself. Now the code to inject those nodes into the context happens in a single spot instead of multiple places. Another good part about this is that we have better consistency between each layer because it turns out that these two examples generated different results... ```css .a { @apply b; } .b { @apply uppercase; color: red; } ``` ... is different compared to: ```css @tailwind components; @layer components { .a { @apply b; } .b { @apply uppercase; color: red; } } ``` Even if both `a` and `b` are being used in one of your content paths... Yeah.. *sigh* * add more `@apply` related tests * update changelog * remove support for basic nesting (leftover) * remove leftover todo This has been fixed already
Configuration menu - View commit details
-
Copy full SHA for fe08e91 - Browse repository at this point
Copy the full SHA fe08e91View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bc9ca7 - Browse repository at this point
Copy the full SHA 4bc9ca7View commit details -
Change how we handle defaults (optimized or not) (#6926)
Co-authored-by: Adam Wathan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f2d73b8 - Browse repository at this point
Copy the full SHA f2d73b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3dc93c0 - Browse repository at this point
Copy the full SHA 3dc93c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e0ccda - Browse repository at this point
Copy the full SHA 8e0ccdaView commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v3.0.10...v3.0.12