Skip to content

Commit

Permalink
Bump styler from 1.3.3 to 1.4.0 (#1005)
Browse files Browse the repository at this point in the history
Bumps [styler](https://github.com/adobe/elixir-styler) from 1.3.3 to
1.4.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/adobe/elixir-styler/blob/main/CHANGELOG.md">styler's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<p><strong>Note</strong> Styler's only public API is its usage as a
formatter plugin. While you're welcome to play with its internals,
they can and will change without that change being reflected in Styler's
semantic version.</p>
<h2>main</h2>
<h2>1.4</h2>
<ul>
<li>A very nice change in alias lifting means Styler will make sure that
your code is <em>using</em> the aliases that it's specified.</li>
<li>Shoutout to the smartrent folks for finding pipifying recursion
issues</li>
<li>Elixir 1.17 improvements and fixes</li>
<li>Elixir 1.19-dev: delete struct updates</li>
</ul>
<p>Read on for details.</p>
<h3>Improvements</h3>
<h4>Alias Lifting</h4>
<p>This release taught Styler to try just that little bit harder when
doing alias lifting.</p>
<ul>
<li>
<p>general improvements around conflict detection, lifting in more
correct places and fewer incorrect places (<a
href="https://redirect.github.com/adobe/elixir-styler/issues/193">#193</a>,
h/t <a href="https://github.com/jsw800"><code>@​jsw800</code></a>)</p>
</li>
<li>
<p>use knowledge of existing aliases to shorten invocations (<a
href="https://redirect.github.com/adobe/elixir-styler/issues/201">#201</a>,
h/t me)</p>
<p>example:
alias A.B.C</p>
<pre><code>  A.B.C.foo()
  A.B.C.bar()
  A.B.C.baz()
</code></pre>
<p>becomes:
alias A.B.C</p>
<pre><code>  C.foo()
  C.bar()
  C.baz()
</code></pre>
</li>
</ul>
<h4>Struct Updates =&gt; Map Updates</h4>
<p>1.19 deprecates struct update syntax in favor of map update
syntax.</p>
<pre lang="elixir"><code># This
%Struct{x | y}
# Styles to this
%{x | y}
</code></pre>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/adobe/elixir-styler/commit/aaedd0c9e8c11c55b0ee83e31a2eaab97ae94923"><code>aaedd0c</code></a>
v1.4.0</li>
<li><a
href="https://github.com/adobe/elixir-styler/commit/6896d97a1820fe66d9d6264d5376f739bb16206c"><code>6896d97</code></a>
ship struct update to map update changes after all</li>
<li><a
href="https://github.com/adobe/elixir-styler/commit/d015a990bb9b0018f3c5ef64752ea9e825a1f693"><code>d015a99</code></a>
docs docs docs docs docs!</li>
<li><a
href="https://github.com/adobe/elixir-styler/commit/ceb827abc249c347c05d7132fa5e29443b37c279"><code>ceb827a</code></a>
change struct update deprecation to ex1.19+</li>
<li><a
href="https://github.com/adobe/elixir-styler/commit/a46c43f3739f1796958c2054eb49879726e4de9b"><code>a46c43f</code></a>
pipify nested function calls with pipe as the first argument. closes <a
href="https://redirect.github.com/adobe/elixir-styler/issues/216">#216</a></li>
<li><a
href="https://github.com/adobe/elixir-styler/commit/fc6fb5d4cb4b9d9b1cd139aee9cad0f628060fc1"><code>fc6fb5d</code></a>
fix <code>with</code> rewrites when keyword with an else stab (<a
href="https://redirect.github.com/adobe/elixir-styler/issues/220">#220</a>)</li>
<li><a
href="https://github.com/adobe/elixir-styler/commit/74d6fd25af0adc2830d1210253898db6a20cb21f"><code>74d6fd2</code></a>
ensure test works across versions</li>
<li><a
href="https://github.com/adobe/elixir-styler/commit/d0ecf1d1219cd1fca6144d1c5afbbe43e7df9919"><code>d0ecf1d</code></a>
1.18+: change struct updates to map updates. Closes <a
href="https://redirect.github.com/adobe/elixir-styler/issues/199">#199</a></li>
<li><a
href="https://github.com/adobe/elixir-styler/commit/e083b4b9de5dc44c98e51e06494eec4bfb27b80a"><code>e083b4b</code></a>
ex1.17+: replace <code>:timer.units(x)</code> with the new
<code>to_timeout(unit: x)</code> for `ho...</li>
<li><a
href="https://github.com/adobe/elixir-styler/commit/8d921d9ad33a23575aa3fd9cdd7027041406155e"><code>8d921d9</code></a>
no one saw that right?</li>
<li>Additional commits viewable in <a
href="https://github.com/adobe/elixir-styler/compare/v1.3.3...v1.4.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=styler&package-manager=hex&previous-version=1.3.3&new-version=1.4.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
  • Loading branch information
github-actions[bot] authored Feb 21, 2025
2 parents 10139be + 821ef8f commit 660fc32
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/ambry_web/components/core_components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ defmodule AmbryWeb.CoreComponents do
def input(%{type: "checkbox"} = assigns) do
assigns =
assign_new(assigns, :checked, fn ->
Phoenix.HTML.Form.normalize_value("checkbox", assigns[:value])
Form.normalize_value("checkbox", assigns[:value])
end)

~H"""
Expand Down
12 changes: 6 additions & 6 deletions lib/ambry_web/gravatar.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ defmodule AmbryWeb.Gravatar do
|> to_string()
end

defp parse_options(uri, []), do: %URI{uri | query: nil}
defp parse_options(uri, opts), do: %URI{uri | query: URI.encode_query(opts)}
defp parse_options(%URI{} = uri, []), do: %{uri | query: nil}
defp parse_options(%URI{} = uri, opts), do: %{uri | query: URI.encode_query(opts)}

defp host(uri, true), do: %URI{uri | scheme: "https", host: "secure.#{@domain}"}
defp host(uri, false), do: %URI{uri | scheme: "http", host: @domain}
defp host(%URI{} = uri, true), do: %{uri | scheme: "https", host: "secure.#{@domain}"}
defp host(%URI{} = uri, false), do: %{uri | scheme: "http", host: @domain}

defp hash_email(uri, email) do
defp hash_email(%URI{} = uri, email) do
hash = Base.encode16(:crypto.hash(:md5, String.downcase(email)), case: :lower)
%URI{uri | path: "/avatar/#{hash}"}
%{uri | path: "/avatar/#{hash}"}
end
end
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"rewrite": {:hex, :rewrite, "1.1.2", "f5a5d10f5fed1491a6ff48e078d4585882695962ccc9e6c779bae025d1f92eda", [:mix], [{:glob_ex, "~> 0.1", [hex: :glob_ex, repo: "hexpm", optional: false]}, {:sourceror, "~> 1.0", [hex: :sourceror, repo: "hexpm", optional: false]}, {:text_diff, "~> 0.1", [hex: :text_diff, repo: "hexpm", optional: false]}], "hexpm", "7f8b94b1e3528d0a47b3e8b7bfeca559d2948a65fa7418a9ad7d7712703d39d4"},
"sourceror": {:hex, :sourceror, "1.7.1", "599d78f4cc2be7d55c9c4fd0a8d772fd0478e3a50e726697c20d13d02aa056d4", [:mix], [], "hexpm", "cd6f268fe29fa00afbc535e215158680a0662b357dc784646d7dff28ac65a0fc"},
"spitfire": {:hex, :spitfire, "0.1.5", "10b041e781bff9544d2fdf00893e1a325758408c5366a9bfa4333072568659b1", [:mix], [], "hexpm", "866a55d21fe827934ff38200111335c9dd311df13cbf2580ed71d84b0a783150"},
"styler": {:hex, :styler, "1.3.3", "5196fc9e9bf1254af4337b051103d38532c2f500b0f01bc6f53f56ee678f65e6", [:mix], [], "hexpm", "c275f73f2ff1b7dfafb03a0f8cf3e928709a235a2b049162b40168f53ba3a07c"},
"styler": {:hex, :styler, "1.4.0", "5944723d08afe4d38210b674d7e97dd1137a75968a85a633983cc308e86dc5f2", [:mix], [], "hexpm", "07de0e89c27490c8e469bb814d77ddaaa3283d7d8038501021d80a7705cf13e9"},
"sweet_xml": {:hex, :sweet_xml, "0.7.5", "803a563113981aaac202a1dbd39771562d0ad31004ddbfc9b5090bdcd5605277", [:mix], [], "hexpm", "193b28a9b12891cae351d81a0cead165ffe67df1b73fe5866d10629f4faefb12"},
"swoosh": {:hex, :swoosh, "1.17.10", "3bfce0e716f92c85579c8b7bb390f1d287f388e4961bfb9343fe191ec4214225", [:mix], [{:bandit, ">= 1.0.0", [hex: :bandit, repo: "hexpm", optional: true]}, {:cowboy, "~> 1.1 or ~> 2.4", [hex: :cowboy, repo: "hexpm", optional: true]}, {:ex_aws, "~> 2.1", [hex: :ex_aws, repo: "hexpm", optional: true]}, {:finch, "~> 0.6", [hex: :finch, repo: "hexpm", optional: true]}, {:gen_smtp, "~> 0.13 or ~> 1.0", [hex: :gen_smtp, repo: "hexpm", optional: true]}, {:hackney, "~> 1.9", [hex: :hackney, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mail, "~> 0.2", [hex: :mail, repo: "hexpm", optional: true]}, {:mime, "~> 1.1 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mua, "~> 0.2.3", [hex: :mua, repo: "hexpm", optional: true]}, {:multipart, "~> 0.4", [hex: :multipart, repo: "hexpm", optional: true]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: true]}, {:plug_cowboy, ">= 1.0.0", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:req, "~> 0.5 or ~> 1.0", [hex: :req, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "277f86c249089f4fc7d70944987151b76424fac1d348d40685008ba88e0a2717"},
"table_rex": {:hex, :table_rex, "4.1.0", "fbaa8b1ce154c9772012bf445bfb86b587430fb96f3b12022d3f35ee4a68c918", [:mix], [], "hexpm", "95932701df195d43bc2d1c6531178fc8338aa8f38c80f098504d529c43bc2601"},
Expand Down

0 comments on commit 660fc32

Please sign in to comment.