diff --git a/CHANGELOG.md b/CHANGELOG.md index 9847bf5..8b32ab7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## 0.13.0 (2024-09-28) + +- Added `:report` option to `check` and `fix` functions (#342) +- Added `:default` custom indentation rule (#347) +- Updated dependencies +- Fixed error on Clojure 1.12 syntax (#355) +- Fixed nested `:inner` indentation (#350) +- Fixed indentation for symbols preceded by metadata (#346) +- Fixed indentation for symbols in reader conditionals (#348) +- Fixed `~ @foo` being rewritten as `~@foo` (#345) +- Fixed install script not cleaning up after itself (#331) + ## 0.12.0 (2023-12-08) - Added support for Cursive and zprint style list indentation (#324) diff --git a/README.md b/README.md index cc9ba6d..3c307a0 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ Use `--help` for a list of all the command-line options. For persistent configuration, you can use a [configuration file][]. -[zipped up binary]: https://github.com/weavejester/cljfmt/releases/download/0.12.0/cljfmt-0.12.0-win-amd64.zip +[zipped up binary]: https://github.com/weavejester/cljfmt/releases/download/0.13.0/cljfmt-0.13.0-win-amd64.zip [configuration file]: #configuration ### Clojure Tools @@ -88,7 +88,7 @@ The official Clojure CLI supports installation of thirdparty [tools][]. To install cljfmt as a tool, run: ```bash -clj -Ttools install io.github.weavejester/cljfmt '{:git/tag "0.12.0"}' :as cljfmt +clj -Ttools install io.github.weavejester/cljfmt '{:git/tag "0.13.0"}' :as cljfmt ``` To use the tool to check for formatting errors in your project, run: @@ -111,7 +111,7 @@ clj -Tcljfmt fix Leiningen, add the following plugin to your `project.clj` file: ```clojure -:plugins [[dev.weavejester/lein-cljfmt "0.12.0"]] +:plugins [[dev.weavejester/lein-cljfmt "0.13.0"]] ``` To use the plugin to check code for formatting errors, run: @@ -139,7 +139,7 @@ recursively checks / fixes paths like the CLI tool. First, add the dependency: ```edn -{:deps {dev.weavejester/cljfmt {:mvn/version "0.12.0"}}} +{:deps {dev.weavejester/cljfmt {:mvn/version "0.13.0"}}} ``` Then use the library: diff --git a/cljfmt/project.clj b/cljfmt/project.clj index 180063b..14b34c6 100644 --- a/cljfmt/project.clj +++ b/cljfmt/project.clj @@ -1,4 +1,4 @@ -(defproject dev.weavejester/cljfmt "0.12.0" +(defproject dev.weavejester/cljfmt "0.13.0" :description "A library for formatting Clojure code" :url "https://github.com/weavejester/cljfmt" :scm {:dir ".."} diff --git a/cljfmt/src/cljfmt/main.clj b/cljfmt/src/cljfmt/main.clj index 7523690..a7a8d50 100644 --- a/cljfmt/src/cljfmt/main.clj +++ b/cljfmt/src/cljfmt/main.clj @@ -8,7 +8,7 @@ [clojure.tools.cli :as cli]) (:gen-class)) -(def ^:const VERSION "0.12.0") +(def ^:const VERSION "0.13.0") (defn- cli-options [defaults] [["-h" "--help"] diff --git a/install.sh b/install.sh index 735e757..576a8cc 100755 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ set -euo pipefail -VERSION=0.12.0 +VERSION=0.13.0 case $(uname -s) in Linux*) diff --git a/lein-cljfmt/project.clj b/lein-cljfmt/project.clj index 3298557..f033148 100644 --- a/lein-cljfmt/project.clj +++ b/lein-cljfmt/project.clj @@ -1,8 +1,8 @@ -(defproject dev.weavejester/lein-cljfmt "0.12.0" +(defproject dev.weavejester/lein-cljfmt "0.13.0" :description "A library for formatting Clojure code" :url "https://github.com/weavejester/cljfmt" :scm {:dir ".."} :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :eval-in-leiningen true - :dependencies [[dev.weavejester/cljfmt "0.12.0"]]) + :dependencies [[dev.weavejester/cljfmt "0.13.0"]])