Skip to content

v2.0.0-rc1

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 13 May 09:49
· 256 commits to main since this release
v2.0.0-rc1
54d3cd0

We have chosen to re-write treefmt in Go, but have tried to retain backwards compatibility as much as possible. For the most part, treefmt 2.0 should be a drop in replacement for 1.0.

Where users may find some differences in behaviour is in how treefmt 2.0 traverses the filesystem. See below for an explanation of walkers.

If you have any problems please create an issue and we will do our best to resolve it in a timely fashion.

Features

  • migrated cache storage from Toml to boltdb
  • introduced the concept of walkers to make traversal of the filesystem extensible. Currently supports auto, git and filesystem. You no longer have to exclude the .git directory, and treefmt will traverse files based on the git index if a .git directory is detected.
  • introduced the concept of pipelines to allow grouping of related formatters into a deterministic sequence
  • 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