Skip to content

Releases: numtide/treefmt

v2.0.0-rc3

29 May 14:29
v2.0.0-rc3
0223983
Compare
Choose a tag to compare
v2.0.0-rc3 Pre-release
Pre-release

Changelog

v2.0.0-rc2

17 May 11:08
v2.0.0-rc2
a20db20
Compare
Choose a tag to compare
v2.0.0-rc2 Pre-release
Pre-release

Changelog

v2.0.0-rc1

13 May 09:49
v2.0.0-rc1
54d3cd0
Compare
Choose a tag to compare
v2.0.0-rc1 Pre-release
Pre-release

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

Read more

v0.6.1

14 Oct 12:45
Compare
Choose a tag to compare
fixup! Release v0.6.1

v0.6.0

28 Sep 08:42
Compare
Choose a tag to compare

A quality of life release. Lots of small fixes and tweaks around the usage.

  • docs: better formatter-spec structure, lots of fixes everywhere
  • docs: use mkdocs-numtide (#227)
  • feat: clap integration (#214)
  • feat: improve the formatter load error (#211)
  • feat: more concise stats (#190)
  • feat: replace custom log with env_logger (#199)
  • feat: update rust to 1.65.0 (#193)
  • fix: Don't ignore --config-file when using --stdin (#231)
  • fix: change default log level to info (#212)
  • fix: default log level should be 'Warn' not 'Off' (#207)
  • fix: log formatter error as warn instead of info (#207)
  • fix: minor typos (#248)
  • fix: stop symlinked tree root being deref'd (#252)
  • fix: treefmt --stdin when changes are moved into tempfile (#225)
  • flake: expose the list of supported systems (#228)
  • flake: make treefmt the default package
  • flake: move treefmt.withConfig to a separate repo (#204)
  • repo: switch default branch to main

v0.5.0

01 Dec 17:32
v0.5.0
cead314
Compare
Choose a tag to compare
  * docs: fix typos (#183)

  * docs: formatters-spec: clarify syntax and semantics rule
  * docs: terraform 1.3.0 accepts a list of files
  * docs: treefmt.toml: add warning for sh -c
  * feat: add --formatters option (#168)
  * feat: add pre-commit contrib script (#166)
  * feat: add support for `.treefmt.toml` (#172)
  * feat: hard fail on missing tools (#189)
  * feat: lazily create the cache directory (#174)
  * feat: treefmt.withConfig (#169, #181)
  * fix: ignore .direnv (#175)
  * nix: move ci dependencies to the devShell (#161)
  * nix: switch to `flake-parts` (#176)

v0.4.1

03 May 08:54
e7918e9
Compare
Choose a tag to compare
Release v0.4.1

v0.4.0

02 May 18:18
9f9d613
Compare
Choose a tag to compare
Release v0.4.0

v0.3.0

17 Dec 18:03
871b10d
Compare
Choose a tag to compare
  • formatter: noop on zero args
  • treefmt.toml: add shellcheck example
  • doc: add inline script example
  • Handle the case where no formatter match path for stdin (#138)
  • Trade in naersk for a newer version of nixpkgs (#134)
  • Add meta.description to play nicely with devshell menu (#132)
  • allow config files to be independent from worktree location (#131)
  • display round ms

v0.2.6

31 Aug 15:18
98460a8
Compare
Choose a tag to compare
Release v0.2.6