Skip to content

2.4.0

Latest

Choose a tag to compare

@joeldrapper joeldrapper released this 19 Jan 15:11
4c17192
  • Updated Phlex to 2.4.0
  • The default cache store is now Rails.cache. Previously it was unset.
  • Added javascript_importmap_module_preload_tags and javascript_inline_importmap_tag helpers
  • Fixed compatibility issues with Rails 8.1.2
  • Made it easier to detect wrapped form builders and added an unwrap method that returns the original form builder
  • register_output_helper now accepts mark_safe: true for helpers that return safe HTML strings rather than ActiveSupport::SafeBuffers
  • Added Phlex::Rails::Types::Buffered(T) and Phlex::Rails::Types::Builder(T) — the methods return objects that respond to ===(value) for use with Literal, Dry, etc.
  • Fixed a Ruby LSP add-on issue that would make it raise when analysing certain syntax
  • Updated the no method error that recommends including a helper adapter module. It now includes a snippet that can be pasted verbatim.