Releases: tailwindlabs/tailwindcss
Releases · tailwindlabs/tailwindcss
v4.1.14
Fixed
- Handle
'
syntax in ClojureScript when extracting classes (#18888) - Handle
@variant
inside@custom-variant
(#18885) - Merge suggestions when using
@utility
(#18900) - Ensure that file system watchers created when using the CLI are always cleaned up (#18905)
- Do not generate
grid-column
utilities when configuringgrid-column-start
orgrid-column-end
(#18907) - Do not generate
grid-row
utilities when configuringgrid-row-start
orgrid-row-end
(#18907) - Prevent duplicate CSS when overwriting a static utility with a theme key (#18056)
- Show Lightning CSS warnings (if any) when optimizing/minifying (#18918)
- Use
default
export condition for@tailwindcss/vite
(#18948) - Re-throw errors from PostCSS nodes (#18373)
- Detect classes in markdown inline directives (#18967)
- Ensure files with only
@theme
produce no output when built (#18979) - Support Maud templates when extracting classes (#18988)
- Upgrade: Do not migrate
variant = 'outline'
during upgrades (#18922) - Upgrade: Show version mismatch (if any) when running upgrade tool (#19028)
- Upgrade: Ensure first class inside
className
is migrated (#19031) - Upgrade: Migrate classes inside
*ClassName
and*Class
attributes (#19031)
v3.4.18
Fixed
- Improve support for raw
supports-[…]
queries in arbitrary values (#13605) - Fix
require.cache
error when loaded through a TypeScript file in Node 22.18+ (#18665) - Support
import.meta.resolve(…)
in configs for new enough Node.js versions (#18938) - Allow using newer versions of
postcss-load-config
for better ESM and TypeScript PostCSS config support with the CLI (#18938) - Remove irrelevant utility rules when matching important classes (#19030)
v4.1.13
Changed
- Drop warning from browser build (#18731)
- Drop exact duplicate declarations when emitting CSS (#18809)
Fixed
- Don't transition
visibility
when usingtransition
(#18795) - Discard matched variants with unknown named values (#18799)
- Discard matched variants with non-string values (#18799)
- Show suggestions for known
matchVariant
values (#18798) - Replace deprecated
clip
withclip-path
insr-only
(#18769) - Hide internal fields from completions in
matchUtilities
(#18820) - Ignore
.vercel
folders by default (can be overridden by@source …
rules) (#18855) - Consider variants starting with
@-
to be invalid (e.g.@-2xl:flex
) (#18869) - Do not allow custom variants to start or end with a
-
or_
(#18867, #18872) - Upgrade: Migrate
aria
theme keys to@custom-variant
(#18815) - Upgrade: Migrate
data
theme keys to@custom-variant
(#18816) - Upgrade: Migrate
supports
theme keys to@custom-variant
(#18817)
v4.1.12
Fixed
- Don't consider the global important state in
@apply
(#18404) - Add missing suggestions for
flex-<number>
utilities (#18642) - Fix trailing
)
from interfering with extraction in Clojure keywords (#18345) - Detect classes inside Elixir charlist, word list, and string sigils (#18432)
- Track source locations through
@plugin
and@config
(#18345) - Allow boolean values of
process.env.DEBUG
in@tailwindcss/node
(#18485) - Ignore consecutive semicolons in the CSS parser (#18532)
- Center the dropdown icon added to an input with a paired datalist by default (#18511)
- Extract candidates in Slang templates (#18565)
- Improve error messages when encountering invalid functional utility names (#18568)
- Discard CSS AST objects with
false
orundefined
properties (#18571) - Allow users to disable URL rebasing in
@tailwindcss/postcss
viatransformAssetUrls: false
(#18321) - Fix false-positive migrations in
addEventListener
and JavaScript variable names (#18718) - Fix Standalone CLI showing default Bun help when run via symlink on Windows (#18723)
- Read from
--border-color-*
theme keys individe-*
utilities for backwards compatibility (#18704) - Don't scan
.hdr
and.exr
files for classes by default (#18734)
v4.1.11
v4.1.10
v4.1.9
Fixed
- Correctly parse custom properties with strings containing semicolons (#18251)
- Upgrade: Migrate arbitrary modifiers without percentage signs to bare values (e.g.
/[0.16]
→/16
) (#18184) - Upgrade: Migrate CSS variable shorthands where fallback value contains function call (#18184)
- Upgrade: Migrate negative arbitrary values to negative bare values (e.g.
mb-[-32rem]
→-mb-128
) (#18212) - Upgrade: Do not migrate
blur
inwire:model.blur
(#18216) - Don't add spaces around CSS dashed idents when formatting math expressions (#18220)
v4.1.8
Added
- Improve error messages when
@apply
fails (#18059)
Fixed
- Upgrade: Do not migrate declarations that look like candidates in
<style>
blocks (#18057, 18068) - Upgrade: Don't error when looking for
tailwindcss
in pnpm monorepos (#18065) - Upgrade: Don't error when updating dependencies in pnpm monorepos (#18065)
- Upgrade: Migrate deprecated
order-none
toorder-0
(#18126) - Support Leptos
class:
attributes when extracting classes (#18093) - Fix "Cannot read properties of undefined" crash on malformed arbitrary value (#18133)
- Upgrade: Migrate
-mt-[0px]
tomt-[0px]
instead of the other way around (#18154) - Fix Haml pre-processing crash when there is no
\n
at the end of the file (#18155) - Ignore
.pnpm-store
folders by default (can be overridden by@source …
rules) (#18163) - Fix PostCSS crash when calling
toJSON()
(#18083)
v4.1.7
Added
- Upgrade: Migrate bare values to named values (#18000)
- Upgrade: Added cache to improve template migration performance (#18025)
Fixed
- Allow
_
before numbers during candidate extraction (#17961) - Prevent duplicate suggestions when using
@theme
and@utility
together (#17675) - Ensure that media queries within
::before
and::after
pseudo selectors create valid CSS rules in production builds (#17979) - Ensure that the standalone CLI does not leave temporary files behind (#17981)
- Ensure
-rotate-*
utilities properly negate arbitrary values (#18014) - Ignore custom variants using
:merge(…)
selectors in legacy JS plugins (#18020) - Ensure classes containing
.
are properly extracted from Clojure files (#18038) - Upgrade: Fix error when using
@import … source(…)
(#17963) - Upgrade: Change casing of utilities with named values to kebab-case to match updated theme variables (#18017)
- Upgrade: Don't migrate strings that match utility names in Vue attribute bindings other than
class
(#18025)
v4.1.6
Added
- Upgrade: Automatically convert arbitrary values to named values when possible (e.g.
h-[1lh]
toh-lh
) (#17831, #17854) - Upgrade: Update dependencies in parallel for improved performance (#17898)
- Add detailed logging about
@source
directives, discovered files and scanned files when usingDEBUG=*
(#17906, #17952) - Add support for generating source maps in development (#17775)
Fixed
- Ensure negative arbitrary
scale
values generate negative values (#17831) - Fix HAML extraction with embedded Ruby (#17846)
- Don't scan files for utilities when using
@reference
(#17836) - Fix incorrectly replacing
_
withbg-red-500/(--my_opacity)
(#17889) - Don't scan
.log
files for classes by default (#17906) - Ensure that custom utilities applying other custom utilities don't swallow nested
@apply
rules (#17925) - Download platform specific package if
optionalDependencies
are skipped (#17929)