Skip to content

Upstream merge 1.11.0#11

Merged
JesseHerrick merged 149 commits intomainfrom
upstream-merge-1.11.0
May 6, 2026
Merged

Upstream merge 1.11.0#11
JesseHerrick merged 149 commits intomainfrom
upstream-merge-1.11.0

Conversation

@JesseHerrick
Copy link
Copy Markdown
Member

@JesseHerrick JesseHerrick commented May 5, 2026

Note

Medium Risk
Medium risk because it adds/changes multiple AST rewrites (e.g., single-clause case to assignments, new pipe/Req optimizations, alias application) that can alter generated code and, in a few cases, runtime behavior.

Overview
Bumps Styler to 1.11.0 and expands the formatter’s rewrite set, including single-clause case → assignment extraction, stricter cond final-clause normalization to true, new stdlib pipe optimizations, and Req pipe collapsing (e.g. Req.new/merge + execute → Req.execute/2).

Improves module directive handling by adding alias application and better alias lifting in snippets, deduping embedded aliases, and preventing module attributes referenced by use/@moduledoc from being moved below their references.

Adds experimental mix tasks mix styler.remove_unused (removes unused alias|import|require based on compile warnings) and mix styler.inline_attrs (inlines single-use literal module attributes), plus a new minimum_supported_elixir_version config used to gate deprecation rewrites like :timer.hours/1to_timeout/1.

Includes internal refactors/bugfixes affecting traversal and comment/line handling (Zipper path structure, comment range detection, config sorting), plus a major docs reorg (new docs/general_styles.md, styles TOC) and updated README/CHANGELOG.

Reviewed by Cursor Bugbot for commit 0d190bf. Bugbot is set up for automated code reviews on this repo. Configure here.

novaugust and others added 30 commits August 7, 2024 08:32
Fixed example for "drop superfluous _..."
* `List.zip` => `Enum.zip`
* `first..last = range` => `first..last//_ = range`
@JesseHerrick JesseHerrick merged commit 6961e36 into main May 6, 2026
11 checks passed
@JesseHerrick JesseHerrick deleted the upstream-merge-1.11.0 branch May 6, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants