Current section

27 Versions

Jump to

Compare versions

5 files changed
+15 additions
-3 deletions
  @@ -3,6 +3,12 @@
3 3 Quokka follows [Semantic Versioning](https://semver.org) and
4 4 [Common Changelog: Guiding Principles](https://common-changelog.org/#12-guiding-principles)
5 5
6 + ## [2.11.1] - 2025-08-26
7 +
8 + ### Fixes
9 + - Improved error handling
10 + - Handle rewriting anonymous function captures of variables
11 +
6 12 ## [2.11.0] - 2025-08-20
7 13
8 14 ### Improvements
  @@ -2,7 +2,7 @@
2 2 [{<<"Changelog">>,<<"https://hexdocs.pm/quokka/changelog.html">>},
3 3 {<<"GitHub">>,<<"https://github.com/smartrent/quokka">>}]}.
4 4 {<<"name">>,<<"quokka">>}.
5 - {<<"version">>,<<"2.11.0">>}.
5 + {<<"version">>,<<"2.11.1">>}.
6 6 {<<"description">>,
7 7 <<"A Credo-configured code-style enforcer that will just fix it for you instead of complaining">>}.
8 8 {<<"elixir">>,<<"~> 1.15">>}.
  @@ -475,6 +475,12 @@ defmodule Quokka.Style.SingleNode do
475 475 end
476 476 end
477 477
478 + # Rewrite &variable.(&1) to just the variable
479 + defp style({:&, _meta, [{{:., _dot_meta, [{_var_name, _var_meta, _} = var]}, _fun_meta, [{:&, _, [arg_num]}]}]})
480 + when is_integer(arg_num) do
481 + var
482 + end
483 +
478 484 defp style({:&, meta, [{fun, fun_meta, [{:&, _, [arg_num]}]}]} = node) when is_integer(arg_num) do
479 485 if Quokka.Config.inefficient_function_rewrites?() do
480 486 fun_name =
  @@ -50,7 +50,7 @@ defmodule Quokka do
50 50 if on_error == :log do
51 51 error = Exception.format(:error, exception, __STACKTRACE__)
52 52 Mix.shell().error("#{error}\n#{IO.ANSI.reset()}Skipping style and continuing on")
53 - {zipper, context}
53 + {zipper, comments}
54 54 else
55 55 reraise exception, __STACKTRACE__
56 56 end
  @@ -13,7 +13,7 @@ defmodule Quokka.MixProject do
13 13 use Mix.Project
14 14
15 15 # Don't forget to bump the README when doing non-patch version changes
16 - @version "2.11.0"
16 + @version "2.11.1"
17 17 @url "https://github.com/smartrent/quokka"
18 18
19 19 def project() do