Skip to content

Releases: phlex-ruby/phlex

0.5.3

16 Nov 12:17
Compare
Choose a tag to compare
0.5.3 Pre-release
Pre-release

Another quick bug-fix-patch related to eager-loading.

What's Changed

Full Changelog: 0.5.2...0.5.3

0.5.2

16 Nov 11:09
Compare
Choose a tag to compare
0.5.2 Pre-release
Pre-release

Should have held off on 0.5.1 but here's another patch that fixes an issue in the Rails view generator where it was referencing the relative constant Phlex::Rails instead of ::Rails.

What's Changed

Full Changelog: 0.5.1...0.5.2

0.5.1

16 Nov 10:55
Compare
Choose a tag to compare
0.5.1 Pre-release
Pre-release

What's Changed

  • Fix an issue with an optional dependency being required when Zeitwerk is eager-loaded
  • Allow Phlex::Turbo::Stream element to take arbitrary attributes by @marcoroth in #341

Full Changelog: 0.5.0...0.5.1

0.5.0

15 Nov 22:05
0205e2b
Compare
Choose a tag to compare
0.5.0 Pre-release
Pre-release

Breaking changes

  • Rename rawunsafe_raw — this methos is really dangerous and the new name makes that clear
  • Rename Phlex::ViewPhlex::HTML — sorry, you’ll have to do a find/replace again!
  • The Rails generators now add ApplicationView as a module rather than an abstract class. You can still use an abstract view class if you want but the generators recommend using a module instead.
  • phlex/rails is no longer required automatically. If you're using Rails, the best option is to require phlex/rails in the Gemfile
gem "phlex", require: "phlex/rails"

New features

  • Support for I18n translations
  • Before and after rendering template callbacks
  • Conditional rendering with the render? predicate
  • Test helpers with optional Nokogiri, Capybara and Rails integration

What's Changed

New Contributors

Full Changelog: 0.4.0...0.5.0

0.4.0

12 Oct 10:10
Compare
Choose a tag to compare
0.4.0 Pre-release
Pre-release
  • Removed positional content from HTML tag methods (breaking change)
  • Removed default Rails tag helpers (breaking change)
  • New Phlex::Rails::Layout helper includes layout-relevant tag helpers
  • New experimental Phlex::Collection and Phlex::Table "standard library" abstractions
  • New Rails generators: page and layout, and experimental generators collection and table
  • New <hr> element
  • Fixed a bug with conditional token Arrays

0.3.2

01 Oct 10:50
Compare
Choose a tag to compare
0.3.2 Pre-release
Pre-release
  • Fixed an issue with our Zeitwerk configuration that broke eager-loading.
  • Updated tests to eager-load so this doesn’t happen again.

0.3.1

30 Sep 17:38
Compare
Choose a tag to compare
0.3.1 Pre-release
Pre-release
  • Fixed an issue with the Rails generators
  • The Rails install script (bin/rails phlex:install) now generates an ApplicationView
  • The view generator (bin/rails g phlex:view) generates views that subclass ApplicationView by default

0.3.0

29 Sep 17:41
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release
  • Renamed Phlex::ComponentPhlex::View
  • Renamed contentyield_content
  • New installer (bin/rails phlex:install)
  • Behind the scenes work on the compiler (very experimental and not enabled by default)
  • Added <g> element for SVGs
  • You can now access Rails helpers with new helper proxy

0.2.2

21 Sep 19:00
Compare
Choose a tag to compare
0.2.2 Pre-release
Pre-release
  • Dasherize nested attributes correctly #166
  • Implicitly convert text content to strings when necessary #165
  • Allow text content blocks form ERB through the renderable interface #164
  • Add <source> tag #169

0.2.1

16 Sep 14:26
Compare
Choose a tag to compare
0.2.1 Pre-release
Pre-release
  • Fixed an issue preventing you from rendering a ViewComponent component inside a Phlex component #160
  • Added <svg> and <path> tags #162