Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tailwindcss 3.4.17 → 4.0.4 (major) #671

Closed
wants to merge 1 commit into from

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Feb 7, 2025

Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ tailwindcss (3.4.17 → 4.0.4) · Repo · Changelog

Release Notes

4.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 containers JS theme key is added to the --container-* namespace (#16169)
  • Ensure theme @keyframes are generated even if an --animation-* variable spans multiple lines (#16237)
  • Vite: Skip parsing stylesheets with the ?commonjs-proxy flag (#16238)
  • Fix order-first and order-last for Firefox (#16266)
  • Fix support for older instruction sets on Linux x64 builds of the standalone CLI (#16244)
  • Ensure NODE_PATH is respected when resolving JavaScript and CSS files (#16274)
  • Ensure Node addons are packaged correctly with FreeBSD builds (#16277)
  • Fix an issue where @variant inside a referenced stylesheet could cause a stack overflow (#16300)

4.0.3

Fixed

  • Fix incorrect removal of @import url(); (#16144)

4.0.2

Fixed

  • Only generate positive grid-cols-* and grid-rows-* utilities (#16020)
  • Ensure escaped theme variables are handled correctly (#16064)
  • Ensure we process Tailwind CSS features when only using @reference or @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 @keyframes in @theme reference (#16120)
  • Discard invalid declarations when parsing CSS (#16093)
  • Do not emit empty CSS rules and at-rules (#16121)
  • Handle @variant when at the top-level of a stylesheet (#16129)

4.0.1

Added

  • Include :open pseudo-class in existing open variant (#15349)

Fixed

  • Remove invalid min-w/h-none utilities (#15845)
  • Discard CSS variable shorthand utilities that don't use valid CSS variables (#15738)
  • Ensure font-size utilities with none modifier have a line-height set e.g. text-sm/none (#15921)
  • Ensure font-size utilities with unknown modifier don't generate CSS (#15921)
  • Don’t suggest font weight utilities more than once (#15857)
  • Suggest container query variants (#15857)
  • Disable bare value suggestions when not using the --spacing variable (#15857)
  • Ensure suggested classes are properly sorted (#15857)
  • Don’t look at .gitignore files outside initialized repos (#15941)
  • Find utilities when using the Svelte class shorthand syntax across multiple lines (#15974)
  • Find utilities when using the Angular class shorthand syntax (#15974)
  • Find utilities when using functions inside arrays (#15974)
  • Ensure that @tailwindcss/browser does not pollute the global namespace (#15978)
  • Ensure that tailwind-merge is not scanned when using the Vite plugin (#16005)
  • Ensure CSS theme variables are available within shadow roots (#15975)
  • Fix crash when project lives in the / directory (#15988)
  • Ensure custom variants have a non-empty selector list (#16009)
  • Upgrade: Ensure JavaScript config files on different drives are correctly migrated (#15927)
  • Upgrade: Migrate leading-[1] to leading-none (#16004)
  • Upgrade: Do not migrate arbitrary leading utilities to bare values (#16004)

4.0.0

Holy shit it's actually done — we just tagged Tailwind CSS v4.0.

Tailwind CSS v4.0 is an all-new version of the framework optimized for performance and flexibility, with a reimagined configuration and customization experience, and taking full advantage of the latest advancements the web platform has to offer.

  • 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, and color-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.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

🗑️ @​alloc/quick-lru (removed)

🗑️ any-promise (removed)

🗑️ arg (removed)

🗑️ camelcase-css (removed)

🗑️ didyoumean (removed)

🗑️ dlv (removed)

🗑️ lines-and-columns (removed)

🗑️ mz (removed)

🗑️ object-assign (removed)

🗑️ object-hash (removed)

🗑️ pirates (removed)

🗑️ postcss-import (removed)

🗑️ postcss-js (removed)

🗑️ postcss-nested (removed)

🗑️ sucrase (removed)

🗑️ thenify (removed)

🗑️ thenify-all (removed)

🗑️ ts-interface-checker (removed)

🗑️ commander (removed)


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added dependencies Pull requests that update a dependency file Technical debt Technical Debt labels Feb 7, 2025
Copy link

codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.31%. Comparing base (0e68699) to head (162ff4a).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #671   +/-   ##
========================================
  Coverage    80.31%   80.31%           
========================================
  Files           38       38           
  Lines         2748     2748           
  Branches       267      267           
========================================
  Hits          2207     2207           
  Misses         541      541           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor Author

depfu bot commented Feb 9, 2025

Closed in favor of #673.

1 similar comment
Copy link
Contributor Author

depfu bot commented Feb 9, 2025

Closed in favor of #673.

@depfu depfu bot closed this Feb 9, 2025
@depfu depfu bot deleted the depfu/update/npm/tailwindcss-4.0.4 branch February 9, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Technical debt Technical Debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants