Skip to content

2.4.3

Latest

Choose a tag to compare

@joeldrapper joeldrapper released this 25 Nov 17:34
bd59eff

Highlights

A maintenance release with bug fixes for the 2.4 line.

  • tag(:head) now flushes, like the head element method, so browsers can start fetching assets as soon as the head closes
  • Phlex no longer depends on Active Support for json_escape, and no longer raises NameError for Date when Hash, Array or Set attribute values are used outside Rails
  • Phlex::FIFOCacheStore now works with json 3 (JSON.fast_generate was removed)
  • Phlex::CSV values are now quoted correctly when trim_whitespace? is true and escape_csv_injection? is false, carriage returns are quoted, and any delimiter (e.g. [, ] or \) is handled safely
  • Kit calls after a component that didn’t render (render? returned false) no longer raise "outside of a Phlex rendering context"
  • SVG cdata now correctly escapes ]]>
  • Fragments rendered from a cache block now halt once the last fragment is selected, and duplicate fragment names select the first fragment, matching uncached rendering
  • style: values that respond to to_h now produce CSS like a Hash does
  • class: [nil, "link"] no longer renders a leading space

Behaviour change

Phlex::CSV now raises Phlex::RuntimeError when a row’s column count differs from the first row’s, including in headerless CSVs. Previously it rendered a malformed row.

What's Changed

Full Changelog: 2.4.2...2.4.3