Change8

v4.1.8

📦 tailwind-cssView on GitHub →
3 features🐛 7 fixes🔧 6 symbols

Summary

This release focuses on refining the upgrade tool, improving error reporting for @apply, and fixing crashes related to PostCSS, Haml, and malformed arbitrary values.

Migration Steps

  1. Run the upgrade tool to automatically migrate order-none to order-0
  2. Run the upgrade tool to normalize zero-length arbitrary margin values

✨ New Features

  • Improved error messages when @apply fails
  • Support for Leptos class: attributes during class extraction
  • Ignore .pnpm-store folders by default (overridable via @source rules)

🐛 Bug Fixes

  • Upgrade: Prevent migration of declarations resembling candidates in <style> blocks
  • Upgrade: Resolved errors when locating tailwindcss or updating dependencies in pnpm monorepos
  • Upgrade: Automatically migrate deprecated order-none to order-0
  • Fixed 'Cannot read properties of undefined' crash on malformed arbitrary values
  • Upgrade: Corrected migration logic for negative zero-length margins (e.g., -mt-[0px] to mt-[0px])
  • Fixed Haml pre-processing crash on files missing a trailing newline
  • Fixed PostCSS crash when calling toJSON()

🔧 Affected Symbols

@applyorder-noneorder-0toJSON@sourceclass: