Skip to content

Releases: AlexNabokikh/tfsort

v0.7.1

14 Jul 13:11
v0.7.1
7ee247a
Compare
Choose a tag to compare

Changelog

  • 7ee247a fix(cmd): show help when no argumets passed instead of traversing child dirs (#69)

v0.7.0

08 Jul 13:06
v0.7.0
70a22b0
Compare
Choose a tag to compare

✨ Highlights / What's New?

  • Support for Multiple Files & Directories: You can now pass multiple files and directories as arguments. This makes tfsort much easier to use with tools like pre-commit. The --recursive flag has been removed in favor of this more intuitive approach.
  • Improved Error Handling: The tool will now continue to process all files in the queue, even if one of them contains an error.
  • Nix Installation Guide: The documentation now includes instructions for installing tfsort with the Nix package manager.

A special thank you to @nikolaik for their excellent contribution in pull request #67!

Changelog

  • 70a22b0 chore: bump deps
  • 145b3d5 feat(docs): how-to install nix package
  • d982ab2 feat: Support multiple files and directories (#67)

v0.6.0

25 May 11:11
v0.6.0
95c2c45
Compare
Choose a tag to compare

This release brings some great new features and improvements, particularly around sorting capabilities .

✨ Highlights / What's New?

  • Sorting for Required Providers: You can now sort required providers within the terraform block, bringing more consistency to your configurations.
  • Enhanced Sorting for Locals: Improved sorting logic for locals blocks.
  • Updated Documentation: The documentation has been updated to reflect the new sorting capabilities, including a demo and information on sortable blocks.

Special thanks to @barnes-c for their valuable contributions to this release!

Changelog

  • ca99c90 Merge pull request #60 from barnes-c/feat/sort-versions
  • a69eb26 chore: bump deps
  • bd9d1bb docs(readme): update sortable blocks
  • 13c6a81 feat(docs): added demo
  • 95c2c45 feat/sort-locals (#61)
  • eb0179c feat: add sorting of required providers in terraform block
  • 42be94c fix: add test for required_providers sort
  • 1c96e59 fix: lint

v0.5.0

16 May 12:10
v0.5.0
cebf32f
Compare
Choose a tag to compare

The minor release focuses on improving the user experience with a handy new flag, clearer error reporting, and updated documentation.

✨ Highlights / What's New?

  • 🚩 --version Flag Added: You can now easily check your installed tfsort version using the tfsort --version command.
  • 💬 Improved Error Messages: We've refined our error messages to be more descriptive and helpful, making troubleshooting smoother.
  • 📖 README Updates: The documentation has been updated, including a refreshed flags section and improved text formatting for better readability.
  • 🔧 Makefile Improvements: Behind-the-scenes enhancements to our Makefile for a more streamlined development process.

Thank you for your ongoing support and feedback!

Changelog

  • 8176b1b chore: improved makefile
  • 1d76e3d docs(readme): updated flags section and reformated text
  • c3f271d feat: added --version flag
  • cebf32f feat: improved error messages

v0.4.0

10 May 09:37
v0.4.0
9ec3f33
Compare
Choose a tag to compare

🎉 tfsort 0.4.0 - The Big Rewrite! 🎉

This version is a significant rewrite from the ground up, focusing on robustness, and a much-improved user experience.

✨ Highlights / What's New?

  • 🚀 Complete Rewrite with Native HCL Power: tfsort now leverages native HCL libraries. This means more accurate parsing, better handling of complex HCL structures, and a more reliable sorting mechanism for your Terraform configurations.
  • 📝 Comment Preservation: Your comments are safe! One of the most requested features, tfsort now intelligently preserves comments within your variable and output blocks during sorting.
  • 📂 Recursive Sorting: Introducing the -r or --recursive flag! You can now sort variable and output blocks in Terraform files across an entire directory and its subdirectories with a single command.
  • ቧ Piping & STDIN/STDOUT Support: tfsort now seamlessly integrates into your shell pipelines. You can pipe content directly into tfsort for processing and receive the sorted output on STDOUT, perfect for scripting and automation.
  • 🏗️ Restructured & More Robust Logic: The internal architecture has been revamped for better maintainability and more predictable sorting behavior.

Thank you for your continued support and valuable feedback that drove these changes!

Changelog

  • 443aba9 Merge pull request #52 from AlexNabokikh/rewrite
  • f65d7bf Merge pull request #58 from AlexNabokikh/38-feature-request---recursive-option-to-sort-variables-and-outputs-files-recursively
  • 17f9378 chore: addessed linter errors
  • cdbadc5 chore: bumped go version to 1.24
  • 9ec3f33 ci: updated go releaser settings
  • e6d2941 ci: updated linter rules
  • 253eada ci: updated release pipeline
  • bb38c5a ci: use latest golangci version
  • 21dee6c feat(#38): added recursive option
  • ac4dc62 feat(#43): added piping stdout to tfsort
  • 26c9ed8 feat: restructured code
  • c76608f feat: rewrite using native hcl libraries
  • 67a0cca feat: updated ci file
  • 8a874e1 fix(deps): bumped deps

v0.3.0

28 Jan 07:45
v0.3.0
6fac43e
Compare
Choose a tag to compare

Changelog

  • 120cdb2 Merge pull request #46 from jamesgeddes/master
  • 6fac43e Merge pull request #48 from jamesgeddes/master
  • 36cebc0 feat: add OpenTofu compatibility
  • d75964b fix(pipeline): add mono installation to resolve Chocolatey error in release workflow
  • 6a022aa fix: amend tests to comply with existing, add gocognit and cyclop to linters.disable

v0.2.4

06 Sep 11:42
v0.2.4
4c62d9c
Compare
Choose a tag to compare

Changelog

  • 383e3be Merge pull request #41 from AlexNabokikh/dependabot/go_modules/github.com/spf13/cobra-1.8.0
  • ceb8fdd Merge pull request #44 from AlexNabokikh/dependabot/go_modules/github.com/spf13/cobra-1.8.1
  • 5851b6a build(deps): bump github.com/spf13/cobra from 1.7.0 to 1.8.0
  • 143df40 build(deps): bump github.com/spf13/cobra from 1.8.0 to 1.8.1
  • 4c62d9c chore(goreleaser): replace tap with repository
  • c5a05c9 chore(goreleaser): set config file version
  • 92c1a8d chore(lint): apply latest changes to the linter config
  • eb70428 fix(lint): disabled depguard linter
  • 7b2fddf fix(lint): linter issues

v0.2.3

10 Apr 14:11
v0.2.3
793b2dd
Compare
Choose a tag to compare

Changelog

  • 3f39863 build(deps): bump github.com/spf13/cobra from 1.6.1 to 1.7.0 (#31)
  • 793b2dd chore: added chocolatey app icon (#34)
  • 751bf0a fix: prevent blocks with a dash in the name from being deleted. (#33)

v0.2.2

03 Mar 17:15
v0.2.2
1ede23b
Compare
Choose a tag to compare

Changelog

v0.2.1

24 Feb 18:25
v0.2.1
85c836d
Compare
Choose a tag to compare

Changelog