releases.shpreview
Tailwind CSS/Prettier Plugin Tailwind CSS

Prettier Plugin Tailwind CSS

Mon
Wed
Fri
JunJulAugSepOctNovDecJanFebMarAprMay
Less
More
Releases1Avg0/wkVersionsv0.7.3
Changed
  • Require at least Prettier 3.7.x (#420)
Added
  • Export public sorting APIs to /sorter (#438)
Fixed
  • Remove top-level await (#420)
  • Improve load-time performance (#420)
  • Improve config resolution caching with directory-based cache (#432)
  • Load compatible plugins on demand and tighten plugin detection (#437)
  • Load v3/v4 modules only when needed (#439)
  • Remove recast/ast-types deps and optimize dynamic JS attribute handling (#440)
  • Remove unused deps (#441)
  • Use the plugin that has already been imported rather than dynamically importing it again (#442)
  • Skip visiting non-node children (#443)
  • Optimize whitespace-only class detection (#429)
  • Fix v3 config loading with Jiti re-exports (#448)
  • Collapse whitespace in template literals with adjacent quasis (#427)
  • Improve canCollapseWhitespaceIn handling for "tailwindPreserveWhitespace": true (#428)

Same as v0.7.2, since v0.7.3 contained breaking changes.

Changed
  • Remove top-level await (#420)
  • Improve load-time performance (#420)
Fixed
  • Collapse whitespace in template literals with adjacent quasis (#427)
Fixed
  • Load compatible plugins sequentially to work around race conditions in Node.js (#412)
  • Fix compatibility with prettier-plugin-svelte when using Prettier v3.7+ (#418)
Fixed
  • Match against correct name of dynamic attributes when using regexes (#410)
Added
  • Format quotes in @source, @plugin, and @config (#387)
  • Sort in function calls in Twig (#358)
  • Sort in callable template literals (#367)
  • Sort in function calls mixed with property accesses (#367)
  • Support regular expression patterns for attributes (#405)
  • Support regular expression patterns for function names (#405)
Changed
  • Improved monorepo support by loading Tailwind CSS relative to the input file instead of prettier config file (#386)
  • Improved monorepo support by loading v3 configs relative to the input file instead of prettier config file (#386)
  • Fallback to Tailwind CSS v4 instead of v3 by default (#390)
  • Don't augment global Prettier ParserOptions and RequiredOptions types (#354)
  • Drop support for prettier-plugin-import-sort (#385)
Fixed
  • Handle quote escapes in LESS when sorting @apply (#392)
  • Fix whitespace removal inside nested concat and template expressions (#396)
  • Add support for OXC + Hermes Prettier plugins (#376, #380)
  • Sort template literals in Angular expressions (#377)
  • Don't repeatedly add backslashes to escape sequences when formatting (#381)
  • Prevent Svelte files from breaking when there are duplicate classes (#359)
  • Ensure prettier-plugin-multiline-arrays and prettier-plugin-jsdoc work when used together with this plugin (#372)
  • Add internal (unsupported) option to load Tailwind CSS using a different package name (#366)
  • Support TypeScript configs and plugins when using v4 (#342)
  • Add support for @zackad/prettier-plugin-twig (#327)
  • Drop support for @zackad/prettier-plugin-twig-melody (#327)
  • Update Prettier options types (#325)
  • Don't remove whitespace inside template literals in Svelte (#332)
  • Introduce tailwindStylesheet option to replace tailwindEntryPoint (#330)
  • Improved performance with large Svelte, Liquid, and Angular files (#312)
  • Add support for @plugin and @config in v4 (#316)
  • Add support for Tailwind CSS v4.0.0-alpha.25 (#317)
  • Add support for prettier-plugin-multiline-arrays (#299)
  • Add resolution cache for known plugins (#301)
  • Support Tailwind CSS v4.0.0-alpha.19 (#310)
  • Only re-apply string escaping when necessary (#295)
  • Improve detection of string concatenation (#288)
Changed
  • Only remove duplicate Tailwind classes (#277)
  • Make sure escapes in classes are preserved in string literals (#286)
Added
  • Add new tailwindPreserveDuplicates option to disable removal of duplicate classes (#276)
Fixed
  • Improve handling of whitespace removal when concatenating strings (#276)
  • Fix a bug where Angular expressions may produce invalid code after sorting (#276)
  • Disabled whitespace and duplicate class removal for Liquid and Svelte (#276)
Last Checked
5h ago
Tracking since Jan 24, 2022