Skip to content

v2.0.1

Compare
Choose a tag to compare
@github-actions github-actions released this 28 Jun 14:18
· 349 commits to main since this release
30d30b5

We have rewritten treefmt in Go but have tried to retain backward compatibility as much as possible.

For the most part, treefmt 2.0 should be a drop-in replacement for 1.0.

Users may find some behaviour differences in how treefmt 2.0 traverses the filesystem. Please review the new website treefmt.com for more info.

If you have any problems, please create an issue, and we will do our best to resolve it promptly.

For some background, you can read more here.

Features

  • migrated cache storage from Toml to boltdb
  • introduced the concept of walkers to make filesystem traversal extensible. It currently supports auto, git, and filesystem. You no longer have to exclude the .git directory; ' treefmtwill traverse files based on the git index if a.git` directory is detected.
  • we now guarantee only one formatter will operate on a given path at any time.
  • ordering for formatters can now be controlled with a new priority field.
  • improved performance by up to 8x when cached based on a nixpkgs benchmark
  • migrated docs from mkdocs to vitepress
  • docs are now hosted under a custom domain, treefmt.com

Changelog