Repository navigation
Highlights
A maintenance release with bug fixes for the 2.4 line.
tag(:head)now flushes, like theheadelement 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 raisesNameErrorforDatewhen Hash, Array or Set attribute values are used outside Rails Phlex::FIFOCacheStorenow works with json 3 (JSON.fast_generatewas removed)Phlex::CSVvalues are now quoted correctly whentrim_whitespace?is true andescape_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
cdatanow correctly escapes]]> - Fragments rendered from a
cacheblock now halt once the last fragment is selected, and duplicate fragment names select the first fragment, matching uncached rendering style:values that respond toto_hnow produce CSS like a Hash doesclass: [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
- Fix bugs found while documenting 2.4 by @joeldrapper in #1081
- Flush after
tag(:head)by @joeldrapper in #1087
Full Changelog: 2.4.2...2.4.3