Skip to content

Releases: phlex-ruby/phlex-rails

1.2.1

05 Apr 22:01
Compare
Choose a tag to compare

Just a quick fix for an issue that occurred when rendering ViewComponents inside Phlex Components.

What's Changed

Full Changelog: 1.2.0...1.2.1

1.2.0

05 Apr 20:30
Compare
Choose a tag to compare

This release adds support for Phlex 1.10.

Highlights

New Streaming Tools

You can now include Phlex::Rails::Streaming into a Rails controller and then use the stream method instead of render to stream HTML or CSV views. Note, this is not compatible with Rails built-in layout system. It will only work if you render your layouts from your Phlex views like any other component.

Enhanced support for Phlex::CSV with ActiveRecord::Relations

Unordered ActiveRecord::Relations will enumerate with find_each by default when passed to a CSV view.

Parameterised layouts

You can now initialise a Phlex::Rails::Layout with parameters.

layout -> { ApplicationLayout.new(foo: "bar") }

[Experimental] support for Selective Rendering (incomplete)

Phlex 1.10 introduced experimental Selective Rendering and phlex-rails now has limited support for this via the X-Fragment HTTP header. Currently, this only works for views that are 100% Phlex. In the future, we plan to use Nokogiri to parse ViewComponent components and ActionView views and output helpers so they can be selectively rendered too.

Performance Improvements

  • The same buffer performance improvement in Phlex 1.10 has been applied here
  • Helper adapters are now auto-loaded, which should improve startup performance

Deprecations

  • Helper modules have been renamed for better consistency with the respective helper method names — the old module names still work but will print a deprecation warning now.

Other notable change

  • If you call a Rails helper without including the adapter module, the error message will guide you to include the appropriate module
  • Support for new Turbo 8 helpers
  • Fixed Tailwind configuration path in the install generator
  • Better support for translation helpers

PRs merged

New Contributors

Full Changelog: 1.1.2...1.2.0

1.1.2

05 Apr 11:59
Compare
Choose a tag to compare

Constrain phlex version to 1.9.x, since phlex-rails depends on private phlex APIs which may change with minor versions.

Full Changelog: 1.1.1...1.1.2

1.1.1

27 Nov 13:59
Compare
Choose a tag to compare
  • Fixed a bug where Phlex would try to capture nil when rendered from ActionView without a block. — @Burgestrand

1.1.0

24 Nov 13:16
Compare
Choose a tag to compare
  • Dropped dependency on rails and now only depends on railties
  • Fix an out of order rendering issue when yielding from a partial rendered with a block delegated from a component’s content block
  • Added flash helper adapter in Phlex::Rails::Helpers::Flash
  • Removed experimental form component
  • Updated phlex dependency to ~> 1.9

1.0.0

19 Apr 23:11
2912ff4
Compare
Choose a tag to compare

0.10.0

18 Apr 23:18
Compare
Choose a tag to compare

0.8.1

09 Mar 11:26
Compare
Choose a tag to compare
0.8.1 Pre-release
Pre-release

Highlights

  • Fixed an issue with nested deferred render components when called form ERB
  • Fixed Phlex version dependency

What's Changed

Full Changelog: 0.9.0...0.8.1

0.9.0

08 Mar 21:27
4883733
Compare
Choose a tag to compare
0.9.0 Pre-release
Pre-release

Support for Phlex 1.6.

What's Changed

Full Changelog: 0.8.0...0.9.0

0.8.0

06 Mar 11:54
Compare
Choose a tag to compare
0.8.0 Pre-release
Pre-release

Added support for Phlex 1.5 and a new adapter for the url_for view helper.

What's Changed

  • Override plain so it doesn't HTML-escape ActiveSupport::SafeBuffer by @joeldrapper in #73
  • Add Phlex::Rails::Helpers::URLFor by @marcoroth in #75

New Contributors

Full Changelog: 0.7.1...0.8.0