Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.8 KB

File metadata and controls

51 lines (32 loc) · 1.8 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

  • Nothing yet!

[0.2.0] - 2025-12-29

Added

  • Logical Depth Assertion: Improved indentation logic that strictly calculates nesting depth from AST.
  • Support for TSModuleBlock in depth calculation.
  • New complex-jsx test case for verifying deep nesting scenarios.

Fixed

  • Indentation Locking: Fixed an issue where manual tabs/spaces would persist in multi-line className attributes.
  • Strict Re-formatting: Implemented a "Collapse-First" strategy that ignores all original source indentation for multi-line classes.
  • Precise Alignment: Removed redundant node counts (like ReturnStatement or FunctionDeclaration) and included JSXAttribute to achieve perfect Prettier-standard alignment.
  • Fixed duplicated internal getNestingDepth functions in index.ts.

Improved

  • Enhanced multi-line detection: now forces indentation for any user-provided newlines, regardless of class count.
  • Robust whitespace stripping in individual class names during categorization.

[0.1.16] - 2025-12-29

Fixed

  • Fix multi-line className indentation: now correctly preserves original string indentation format
  • Optimize single-line/multi-line expansion logic: only expand to multi-line categorized format when class count >= 5

Added

  • Add complex-jsx test case covering complex nested JSX scenarios

[0.1.14] - 2025-12-11

Features

  • support grouping tailwindcss classes
  • support custom categories
  • support dynamic wrapping
  • support format fn string args in className
  • support format class in template string