Skip to content

Update dependency quokka to v2.13.1#1988

Open
renovate[bot] wants to merge 1 commit into
developfrom
renovate/demo-quokka-2.x-lockfile
Open

Update dependency quokka to v2.13.1#1988
renovate[bot] wants to merge 1 commit into
developfrom
renovate/demo-quokka-2.x-lockfile

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented May 19, 2026

This PR contains the following updates:

Package Type Update Change
quokka (source) dev minor 2.12.12.13.1

Release Notes

smartrent/quokka (quokka)

v2.13.1

Compare Source

Fixes
  • Fix Enum.reduce/3 in a pipe being incorrectly rewritten to a nonexistent two-argument Enum.sum call. Piped lhs |> Enum.reduce(acc, reducer) was styled as Enum.reduce/2 and could emit invalid Enum.sum(acc) when the reducer was a simple sum. Fixes #​160.
  • Fix autosort stealing comments from earlier in the module when sorting multi-line maps. Comments such as # credo:disable-for-next-line in unrelated code could be detached from the lines they suppress. Fixes #​161.

v2.13.0

Compare Source

Breaking Changes
  • Sorting is now split into two independent mechanisms. See Autosort for the full comparison.
    • Config autosort (maps, defstructs, schemas): controlled by autosort: [...] and the :autosort style in :only or :exclude.
    • # quokka:sort (per-value, opt-in): always runs; not affected by :only, :exclude, or exclude: [:autosort].
  • If you use :only or :exclude to limit which styles run, replace :comment_directives with :autosort to control config-driven sorting. The autosort: [...] option is unchanged.
Improvements
  • Added support for plugins; see Quokka.Plugin docs for details on creating your own formatting rules.
  • Overhaul config-driven autosort: extracted into a dedicated style with its own docs. Maps with comments are now autosorted (comments stay with their keys). Use # quokka:skip-sort on the line above a value to opt out.
  • Support # quokka:sort for struct field keys in @type definitions (e.g. @type t :: %__MODULE__{...}).
  • Respect Credo's Credo.Check.Readability.OnePipePerLine — breaks pipe chains so each |> is on its own line when the check is enabled.
  • Respect Credo's Credo.Check.Refactor.CondStatements configuration. Set the check to false to disable cond simplification.
  • Module directive skip comments (# quokka:skip-module-directives, # quokka:skip-module-directive-reordering, etc.) now work inside defimpl blocks. Module directives in defimpl and defprotocol are reordered when no skip comment is present.
  • Respect Credo's Credo.Check.Readability.StrictModuleLayout ignore_module_attributes and ignore: [:module_attribute] options. When a module contains an ignored module attribute, Quokka preserves the original directive order for that module rather than hoisting directives above the attribute (which could be referenced by an earlier-ordered directive such as @moduledoc). Fixes #​137.
  • Rewrite Enum.reduce/2,3 calls that simply sum their two arguments to Enum.sum/1 (part of inefficient function rewrites).
  • Rewrite Enum.drop/2 + Enum.take/2 to Enum.slice/3 when both arguments are non-negative integer literals (part of inefficient function rewrites).
Fixes
  • Fix alias duplication in # quokka:skip-module-directive-reordering mode when an existing alias was also referenced from non-alias content.
  • Fix crash when formatting empty modules (e.g. a defmodule with no body inside a quote block).
  • Fix autosort so comments above map keys are preserved correctly after sorting.
Deprecations
  • :comment_directives is no longer a valid :only or :exclude style. Use :autosort to control config-driven sorting instead. # quokka:sort always runs and cannot be disabled. exclude: [:comment_directives] has no effect and logs a warning; only: [:comment_directives] no longer enables config autosort — add :autosort if you need it.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added demo Changes and features added to backpex demo application dependencies Pull requests that update a dependency file elixir Pull requests that update Elixir code ignore-for-release Should not appear in releas notes labels May 19, 2026
@renovate renovate Bot requested a review from Flo0807 May 19, 2026 00:38
@renovate renovate Bot force-pushed the renovate/demo-quokka-2.x-lockfile branch from e59166a to 0dba463 Compare May 19, 2026 17:15
@renovate renovate Bot changed the title Update dependency quokka to v2.13.0 Update dependency quokka to v2.13.1 May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

demo Changes and features added to backpex demo application dependencies Pull requests that update a dependency file elixir Pull requests that update Elixir code ignore-for-release Should not appear in releas notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants