You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
don't unpipe |> dbg, to help our friends who format-on-save and like throwing a quick dbg pipe in while debugging (h/t @mhanberg)
optimize two DateTime.shift |> DateTime.shift into a single DateTime.shift when working with literal durations whose keys are disjoint
Write "not equal" one way only: not (a == b), !(a == b) => a != b (#251, h/t @tomkonidas)
Deprecations: DateTime.add(dt, amount, unit) is rewritten to DateTime.shift(dt, unit: amount) for 1.17+ codebases. While not technically deprecated, Elixir docs recommend shift over add (#253, h/t @tomkonidas)
DateTime.shift(dt, ..duration pairs..) now has its duration pairs shrunk like to_timeout
duration pair shrinking improved for precomputed values, for instance second: 86_400 => day: 1
Fixes
General improvements to comment handling across Styler (#254, h/t me and claude)
Fixed explicit-keyword-list merges not being rewritten to puts: Map/Keyword.merge([single: :key]) => Map/Keyword.put(:single, :key)