✨ Highlights / What's New?
- Comment-Preserving Sorting: Fixed comments being dropped when sorting variables, outputs, locals, and required providers. Comment-delimited groups now stay together, with items sorted within each group rather than globally. (#89)
- Pre-commit Integration: Added an official tfsort hook for .tf and .tofu files, excluding the .terraform directory. (#70)
- Safer CLI Behavior: Running tfsort without arguments now displays help instead of recursively processing the current directory. Use - explicitly to read from stdin. (#69)
- Updated Installation & Releases: Migrated Homebrew packaging to a cask (brew install --cask tfsort), added macOS quarantine handling, and explicitly configured Windows ZIP archives. (#90, #91)
- Improved Testing & CI: Added fixture-based regression tests, expanded comment-preservation coverage, migrated coverage reporting from Code Climate to Qlty, and refreshed CI, linting, and release workflows. (#68, #89, #90, #91)
- Updated Dependencies & Documentation: Raised the Go requirement to 1.26.0, refreshed dependencies, corrected usage examples, updated the terminal demo, and cleaned up documentation links and badges. (#71, #90)
A special thank you to @nikolaik for #68, #70, and #71, @d-dot-one for #89, and @barnes-c for #91!