From b76ca2a8ba42e5ffbfab7871c8f4be40eba48f40 Mon Sep 17 00:00:00 2001 From: Matt Enlow Date: Thu, 22 Jun 2023 12:22:08 -0600 Subject: [PATCH] v0.7.14 --- CHANGELOG.md | 6 ++++++ lib/style/single_node.ex | 3 ++- mix.exs | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23b65a14..384647af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## main +## v0.7.14 + +### Improvements + +* rewrite `Logger.warn/1,2` to `Logger.warning/1,2` due to Elixir 1.15 deprecation + ## v0.7.13 ### Fixes diff --git a/lib/style/single_node.ex b/lib/style/single_node.ex index e938043a..713043f9 100644 --- a/lib/style/single_node.ex +++ b/lib/style/single_node.ex @@ -92,7 +92,8 @@ defmodule Styler.Style.SingleNode do end # Logger.warn -> Logger.warning - defp style({{:., dm, [{:__aliases__, am, [:Logger]}, :warn]}, funm, args}), do: {{:., dm, [{:__aliases__, am, [:Logger]}, :warning]}, funm, args} + defp style({{:., dm, [{:__aliases__, am, [:Logger]}, :warn]}, funm, args}), + do: {{:., dm, [{:__aliases__, am, [:Logger]}, :warning]}, funm, args} # Remove parens from 0 arity funs (Credo.Check.Readability.ParenthesesOnZeroArityDefs) defp style({def, dm, [{fun, funm, []} | rest]}) when def in ~w(def defp)a and is_atom(fun), diff --git a/mix.exs b/mix.exs index 4f24aee3..62f8927d 100644 --- a/mix.exs +++ b/mix.exs @@ -12,7 +12,7 @@ defmodule Styler.MixProject do use Mix.Project # Don't forget to bump the README when doing non-patch version changes - @version "0.7.13" + @version "0.7.14" @url "https://github.com/adobe/elixir-styler" def project do