nextjs-woocommerce
nextjs-woocommerce copied to clipboard
Update dependency tailwindcss to v4
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| tailwindcss (source) | ^3.4.17 -> ^4.1.10 |
Release Notes
tailwindlabs/tailwindcss (tailwindcss)
v4.1.10
Fixed
- Fix incorrectly generated CSS when using percentages in arbitrary values with calc, e.g.:
w-[calc(100%-var(--offset))](#β18289)
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
blurinwire:model.blur(#β18216) - Don't add spaces around CSS dashed idents when formatting math expressions (#β18220)
v4.1.8
Added
- Improve error messages when
@applyfails (#β18059)
Fixed
- Upgrade: Do not migrate declarations that look like candidates in
<style>blocks (#β18057, 18068) - Upgrade: Don't error when looking for
tailwindcssin pnpm monorepos (#β18065) - Upgrade: Don't error when updating dependencies in pnpm monorepos (#β18065)
- Upgrade: Migrate deprecated
order-nonetoorder-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
\nat the end of the file (#β18155) - Ignore
.pnpm-storefolders 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
@themeand@utilitytogether (#β17675) - Ensure that media queries within
::beforeand::afterpseudo 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
@sourcedirectives, discovered files and scanned files when usingDEBUG=*(#β17906, #β17952) - Add support for generating source maps in development (#β17775)
Fixed
- Ensure negative arbitrary
scalevalues generate negative values (#β17831) - Fix HAML extraction with embedded Ruby (#β17846)
- Don't scan files for utilities when using
@reference(#β17836) - Fix incorrectly replacing
_within arbitrary modifier shorthandbg-red-500/(--my_opacity)(#β17889) - Don't scan
.logfiles for classes by default (#β17906) - Ensure that custom utilities applying other custom utilities don't swallow nested
@applyrules (#β17925) - Download platform specific package if
optionalDependenciesare skipped (#β17929)
v4.1.5
Added
- Support using
@tailwindcss/upgradeto upgrade between versions of v4.* (#β17717) - Add
h-lh/min-h-lh/max-h-lhutilities (#β17790) - Transition
display,visibility,content-visibility,overlay, andpointer-eventswhen usingtransitionto simplify@starting-styleusage (#β17812)
Fixed
- Don't scan
.geojsonor.dbfiles for classes by default (#β17700, #β17711) - Hide default shadow suggestions when missing default shadow theme keys (#β17743)
- Replace
_with.in theme suggestions for@utilityif surrounded by digits (#β17733) - Skip
color-mix(β¦)when opacity is100%(#β17815) - PostCSS: Ensure that errors in imported stylesheets are recoverable (#β17754)
- Upgrade: Bump all Tailwind CSS related dependencies during upgrade (#β17763)
- Upgrade: Don't add
-to variants starting with@(#β17814) - Upgrade: Don't format stylesheets that didn't change when upgrading (#β17824)
v4.1.4
Added
- Add experimental
@tailwindcss/oxide-wasm32-wasitarget for running Tailwind in browser environments like StackBlitz (#β17558)
Fixed
- Ensure
color-mix(β¦)polyfills do not cause used CSS variables to be removed (#β17555) - Ensure
color-mix(β¦)polyfills create fallbacks for theme variables that reference other theme variables (#β17562) - Fix brace expansion in declining ranges like
{10..0..5}and{0..10..-5}(#β17591) - Work around a Chrome rendering bug when using the
skew-*utilities (#β17627) - Ensure container query variant names can contain hyphens (#β17628)
- Ensure
shadow-inherit,inset-shadow-inherit,drop-shadow-inherit, andtext-shadow-inheritinherit the shadow color (#β17647) - Ensure compatibility with array tuples used in
fontSizeJS theme keys (#β17630) - Ensure folders with binary file extensions in their names are scanned for utilities (#β17595)
- Upgrade: Convert
fontSizearray tuple syntax to CSS theme variables (#β17630)
v4.1.3
Fixed
- Show warning when using unsupported bare value data type in
--value(β¦)(#β17464) - PostCSS: Ensure changes to the input CSS file don't generate stale output when using Turbopack (#β17554)
- Ensure classes are detected in Ruby's
%wsyntax in Slim templates (#β17557)
v4.1.2
Fixed
- Don't rely on the presence of
@layer baseto polyfill@property(#β17506) - Support setting multiple inset shadows as arbitrary values (#β17523)
- Fix
drop-shadow-*utilities that are defined with multiple shadows (#β17515) - PostCSS: Fix race condition when two changes are queued concurrently (#β17514)
- PostCSS: Ensure files containing
@tailwind utilitiesare processed (#β17514) - Ensure the
color-mix(β¦)polyfill creates fallbacks even when using colors that cannot be statically analyzed (#β17513) - Fix slow incremental builds with
@tailwindcss/viteand@tailwindcss/postscss(especially on Windows) (#β17511) - Vite: Fix missing CSS file in Qwik setups (#β17533)
v4.1.1
Fixed
- Disable padding in
@source inline(β¦)brace expansion (#β17491) - Inject polyfills after
@importand body-less@layer(#β17493) - Ensure
@tailwindcss/clidoes not contain an import forjiti(#β17502)
v4.1.0
Added
- Add
details-contentvariant (#β15319) - Add
inverted-colorsvariant (#β11693) - Add
noscriptvariant (#β11929, #β17431) - Add
items-baseline-lastandself-baseline-lastutilities (#β13888, #β17476) - Add
pointer-none,pointer-coarse, andpointer-finevariants (#β16946) - Add
any-pointer-none,any-pointer-coarse, andany-pointer-finevariants (#β16941) - Add safe alignment utilities (#β14607)
- Add
user-validanduser-invalidvariants (#β12370) - Add
wrap-anywhere,wrap-break-word, andwrap-normalutilities (#β12128) - Add
@source inline(β¦)and@source not inline(β¦)(#β17147) - Add
@source not "β¦"(#β17255) - Add
text-shadow-*utilities (#β17389) - Add
mask-*utilities (#β17134) - Add
bg-{position,size}-*utilities for arbitrary values (#β17432) - Add
shadow-*/<alpha>,inset-shadow-*/<alpha>,drop-shadow-*/<alpha>, andtext-shadow-*/<alpha>utilities to control shadow opacity (#β17398, #β17434) - Add
drop-shadow-<color>utilities (#β17434) - Improve compatibility with older versions of Safari and Firefox (#β17435)
Fixed
- Follow symlinks when resolving
@sourcedirectives (#β17391) - Don't scan ignored files for classes when changing an ignored file triggers a rebuild using
@tailwindcss/cli(#β17255) - Support negated
contentrules in legacy JavaScript configuration (#β17255) - Interpret syntax like
@("@​")md:β¦as@md:β¦in Razor files (#β17427) - Disallow top-level braces, top-level semicolons, and unbalanced parentheses and brackets in arbitrary values (#β17361)
- Ensure the
--theme(β¦)function still resolves to the CSS variables when using legacy JS plugins (#β17458) - Detect used theme variables in CSS module files (#β17433, #β17467)
Changed
- Ignore
node_modulesby default (can be overridden by@source β¦rules) (#β17255) @sourcerules that include file extensions or point insidenode_modules/folders no longer consider your.gitignorerules (#β17255)- Deprecate
bg-{left,right}-{top,bottom}in favor ofbg-{top,bottom}-{left,right}utilities (#β17378) - Deprecate
object-{left,right}-{top,bottom}in favor ofobject-{top,bottom}-{left,right}utilities (#β17437)
v4.0.17
Fixed
- Fix an issue causing the CLI to hang when processing Ruby files (#β17383)
v4.0.16
Added
- Add support for literal values in
--value('β¦')and--modifier('β¦')(#β17304)
Fixed
- Fix class extraction followed by
(in Pug (#β17320) - Ensure
@keyframesfor theme animations are emitted if they are referenced following a comma (#β17352) - Vite: Ensure that updates to an imported CSS file are properly propagated after updating source files (#β17347)
- Pre process
Slimtemplates embedded in Ruby files (#β17336) - Error when input and output files resolve to the same file when using the CLI (#β17311)
- Add missing suggestions when
--spacing(--value(integer, number))is used (#β17308) - Add
::-webkit-details-markerpseudo tomarkervariant (#β17362)
v4.0.15
Fixed
- Fix incorrect angle in
-bg-conic-*utilities (#β17174) - Fix
border-[12px_4px]being interpreted as aborder-colorinstead of aborder-width(#β17248) - Work around a crash in Safari 16.4 and 16.5 when using the default Preflight styles (#β17306)
- Pre-process
<template lang="β¦">in Vue files (#β17252) - Ensure that all CSS variables used by Preflight are prefixed (#β17036)
- Prevent segfault when loaded in a worker thread on Linux (#β17276)
- Ensure multiple
--value(β¦)or--modifier(β¦)calls don't delete subsequent declarations (#β17273) - Fix class extraction followed by
(in Slim (#β17278) - Export
PluginUtilsfromtailwindcss/pluginfor compatibility with v3 (#β17299) - Remove redundant
line-height: initialfrom Preflight (#β15212) - Increase Standalone hardware compatibility on macOS x64 builds (#β17267)
- Ensure that the CSS file rebuilds if a new CSS variable is used from templates (#β17301)
Changed
- The
--theme(β¦)function now returns CSS variables from your theme variables unless used inside positions where CSS variables are invalid (e.g. inside@mediaqueries) (#β17036)
v4.0.14
Fixed
- Do not extract candidates with JS string interpolation
${(#β17142) - Fix extraction of variants containing
.character (#β17153) - Fix extracting candidates in Clojure/ClojureScript (#β17087)
v4.0.13
Fixed
- Fix Haml pre-processing (#β17051)
- Ensure
.nodeand.wasmfiles are not scanned for utilities (#β17123) - Improve performance when scanning JSON files (#β17125)
- Fix extracting candidates containing dots in Haml, Pug, and Slim pre processors (#β17094, #β17085, #β17113)
- Don't create invalid CSS when encountering a link wrapped in square brackets (#β17129)
v4.0.12
Fixed
- Vite: Fix
url(β¦)rebasing in transitively imported CSS files (#β16965) - PostCSS: Rebase
url(β¦)s in imported CSS files (#β16965) - Ensure utilities are sorted based on their actual property order (#β16995)
- Ensure strings in Pug and Slim templates are handled correctly (#β17000)
- Ensure classes between
}and{are properly extracted (#β17001) - Fix
razor/cshtmlpre-processing (#β17027) - Ensure extracting candidates from JS embedded in a PHP string works as expected (#β17031)
v4.0.11
Fixed
- Ensure classes containing
--are extracted correctly (#β16972) - Ensure classes containing numbers followed by dash or underscore are extracted correctly (#β16980)
- Ensure arbitrary container queries are extracted correctly (#β16984)
- Ensure classes ending in
[are extracted in Slim templating language (#β16985) - Ensure arbitrary variables with data types are extracted correctly (#β16986)
v4.0.10
Added
- Add
col-<number>androw-<number>utilities forgrid-columnandgrid-row(#β15183)
Fixed
- Ensure
not-*does not remove:is(β¦)from variants (#β16825) - Ensure
@keyframesare correctly emitted when using a prefix (#β16850) - Don't swallow
@utilitydeclarations when@applyis used in nested rules (#β16940) - Ensure
outline-hiddenbehaves likeoutline-noneoutside of forced colors mode (#β16943) - Allow
!importanton CSS variables again (#β16873) - Vite: Do not crash when encountering an
.svgfile with#or?in the filename (#β16957) - Ensure utilities are properly detected within square brackets (#β16306)
- Ensure utilities are properly detected using Angular's conditional class binding syntax (#β16306)
- Ensure utilities starting with numbers are properly extracted from Slim templates (#β16306)
- Discard arbitrary property candidates that have guaranteed-invalid property names (#β16306)
Changed
- Removed
max-w-autoandmax-h-autoutilities as they generate invalid CSS (#β16917) - Replaced the existing candidate extractor with a brand new extractor to improve maintainability, correctness, and performance (#β16306)
v4.0.9
Fixed
- Make JS APIs available to plugins and configs in the Standalone CLI (#β15934)
- Vite: Don't crash when importing a virtual module from JavaScript that ends in
.css(#β16780) - Fix an issue where
@reference "β¦"would sometimes omit keyframe animations (#β16774) - Ensure
z-*!utilities are properly marked as!important(#β16795) - Read UTF-8 CSS files that start with a byte-order mark (BOM) (#β16796)
- Ensure nested functions in selectors used with JavaScript plugins are not truncated (#β16802)
Changed
- Emit variable fallbacks when using
@reference "β¦"instead of duplicate CSS variable declarations (#β16774)
v4.0.8
Added
- Allow
@importwiththeme(β¦)options for stylesheets that contain more than just@themerules (#β16514)
Fixed
- Don't add
!importantto CSS variable declarations when using the important modifier (#β16668) - Vite: Ignore files and directories specified in your
.gitignorefile when using automatic source detection(#β16631) - Vite: Don't rely on the module graph for detecting candidates to ensure setups with multiple Vite builds work as expected (#β16631)
- Vite: Ensure Astro production builds always contain classes used in client-only components (#β16631)
- Vite: Always scan raw file contents for utility classes before any other transforms have been applied to ensure utility classes are scanned without any additional escaping (#β16631)
- Ensure utilities with more declarations are always sorted before utilities with fewer declarations when utilities only define CSS variables (#β16715)
- Only include
translate-z-pxutilities once in compiled CSS (#β16718)
Changed
v4.0.7
Fixed
- Export
tailwindcss/lib/util/flattenColorPalette.jsfor backward compatibility (#β16411) - Fix sorting of numeric utility suggestions when they have different magnitudes (#β16414)
- Show suggestions for fractions in IntelliSense (#β16353)
- Donβt replace
_in suggested theme keys (#β16433) - Ensure
--default-outline-widthcan be used to change theoutline-widthvalue of theoutlineutility (#β16469) - Ensure drop shadow utilities don't inherit unexpectedly (#β16471)
- Export config and plugin types from
tailwindcss/pluginfor backward compatibility (#β16505) - Ensure JavaScript plugins that emit nested rules referencing the utility name work as expected (#β16539)
- Statically link Visual Studio redistributables in
@tailwindcss/oxideWindows builds (#β16602) - Ensure that Next.js splat routes are scanned for classes (#β16457)
- Pin exact version of
tailwindcssin@tailwindcss/*packages (#β16623) - Upgrade: Report errors when updating dependencies (#β16504)
- Upgrade: Ensure a
darkModeJS config setting with block syntax converts to use@slot(#β16507) - Upgrade: Ensure the latest version of
tailwindcssand@tailwindcss/postcssare installed when upgrading (#β16620)
v4.0.6
Fixed
- Revert change to no longer include theme variables that aren't used in compiled CSS (#β16403)
- Upgrade: Don't migrate
blurtoblur-smwhen used with Next.js<Image placeholder="blur" />(#β16405)
v4.0.5
Added
- Add
@theme staticoption for always including theme variables in compiled CSS (#β16211)
Fixed
- Remove rogue
console.logfrom@tailwindcss/vite(#β16307)
Changed
- Don't include theme variables that aren't used in compiled CSS (#β16211)
v4.0.4
Fixed
- Fix a crash when setting JS theme values to
null(#β16210) - Ensure escaped underscores in CSS variables in arbitrary values are properly unescaped (#β16206)
- Ensure that the
containersJS theme key is added to the--container-*namespace (#β16169) - Ensure theme
@keyframesare generated even if an--animation-*variable spans multiple lines (#β16237) - Vite: Skip parsing stylesheets with the
?commonjs-proxyflag (#β16238) - Fix
order-firstandorder-lastfor Firefox (#β16266) - Fix support for older instruction sets on Linux x64 builds of the standalone CLI (#β16244)
- Ensure
NODE_PATHis respected when resolving JavaScript and CSS files (#β16274) - Ensure Node addons are packaged correctly with FreeBSD builds (#β16277)
- Fix an issue where
@variantinside a referenced stylesheet could cause a stack overflow (#β16300)
v4.0.3
Fixed
- Fix incorrect removal of
@import url();(#β16144)
v4.0.2
Fixed
- Only generate positive
grid-cols-*andgrid-rows-*utilities (#β16020) - Ensure escaped theme variables are handled correctly (#β16064)
- Ensure we process Tailwind CSS features when only using
@referenceor@variant(#β16057) - Refactor gradient implementation to work around prettier/prettier#17058 (#β16072)
- Vite: Ensure hot-reloading works with SolidStart setups (#β16052)
- Vite: Fix a crash when starting the development server in SolidStart setups (#β16052)
- Vite: Don't rebase URLs that appear to be aliases (#β16078)
- Vite: Transform
<style>blocks in HTML files (#β16069) - Prevent camel-casing CSS custom properties added by JavaScript plugins (#β16103)
- Do not emit
@keyframesin@theme reference(#β16120) - Discard invalid declarations when parsing CSS (#β16093)
- Do not emit empty CSS rules and at-rules (#β16121)
- Handle
@variantwhen at the top-level of a stylesheet (#β16129)
v4.0.1
Fixed
- Fix an issue causing the CLI to hang when processing Ruby files (#β17383)
v4.0.0
Added
- New high-performance engine β where full builds are up to 5x faster, and incremental builds are over 100x faster β and measured in microseconds.
- Designed for the modern web β built on cutting-edge CSS features like cascade layers, registered custom properties with
@property, andcolor-mix(). - Simplified installation β fewer dependencies, zero configuration, and just a single line of code in your CSS file.
- First-party Vite plugin β tight integration for maximum performance and minimum configuration.
- Automatic content detection β all of your template files are discovered automatically, with no configuration required.
- Built-in import support β no additional tooling necessary to bundle multiple CSS files.
- CSS-first configuration β a reimagined developer experience where you customize and extend the framework directly in CSS instead of a JavaScript configuration file.
- CSS theme variables β all of your design tokens exposed as native CSS variables so you can access them anywhere.
- Dynamic utility values and variants β stop guessing what values exist in your spacing scale, or extending your configuration for things like basic data attributes.
- Modernized P3 color palette β a redesigned, more vivid color palette that takes full advantage of modern display technology.
- Container queries β first-class APIs for styling elements based on their container size, no plugins required.
- New 3D transform utilities β transform elements in 3D space directly in your HTML.
- Expanded gradient APIs β radial and conic gradients, interpolation modes, and more.
- @βstarting-style support β a new variant you can use to create enter and exit transitions, without the need for JavaScript.
- not-* variant β style an element only when it doesn't match another variant, custom selector, or media or feature query.
- Even more new utilities and variants β including support for
color-scheme,field-sizing, complex shadows,inert, and more.
Start using Tailwind CSS v4.0 today by installing it in a new project, or playing with it directly in the browser on Tailwind Play.
For existing projects, we've published a comprehensive upgrade guide and built an automated upgrade tool to get you on the latest version as quickly and painlessly as possible.
For a deep-dive into everything that's new, check out the announcement post.
Configuration
π Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.