Releases: phlex-ruby/phlex
Releases · phlex-ruby/phlex
0.5.3
Another quick bug-fix-patch related to eager-loading.
What's Changed
- Require the Phlex::Rails engine by @joeldrapper in #346
- Ignore Phlex::Markdown in Zeitwerk by @joeldrapper in #347
Full Changelog: 0.5.2...0.5.3
0.5.2
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
- Fix Rails constant reference in the view generator by @joeldrapper in #344
Full Changelog: 0.5.1...0.5.2
0.5.1
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
Breaking changes
- Rename
raw
→unsafe_raw
— this methos is really dangerous and the new name makes that clear - Rename
Phlex::View
→Phlex::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 requirephlex/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
- Fix typo in documentation by @jai-x in #250
- Support html safety for the #render_in method by @bradgessler in #222
- Fix benchmarks by @joeldrapper in #261
- Make docs website responsive by @stephannv in #269
- Add Phlex views to Tailwind configuration at install by @alexandreruban in #271
- Remove redundant slash in void elements by @joeldrapper in #272
- Add test helper by @stephannv in #275
- Document the ability to register custom elements by @mansakondo in #263
- Improve test helpers and related documentation by @stephannv in #277
- Add I18n support by @stephannv in #251
- Remove component rename warning by @joeldrapper in #283
- Use normal Rubocop release by @joeldrapper in #292
- Compiler improvements by @joeldrapper in #202
- Before / after rendering template callbacks #259 by @joelmoss in #294
- Refactor _attributes to process_attributes (#297 and #264) by @joelmoss in #299
- Isolate Rails tests by @joeldrapper in #306
- Set solargraph typecheck level to
typed
by @joeldrapper in #307 - Revert _attributes name change in favour of an explicitly defined process_attributes by @joelmoss in #302
- Rename
raw
→unsafe_raw
by @joeldrapper in #308 - View test helper with optional nokogiri / capybara integration by @joeldrapper in #310
- Rails view test helper by @joeldrapper in #311
- Remove iteration details from collections by @joeldrapper in #312
- Make
ApplicationView
a module by @joeldrapper in #313 - Remove test helper by @joeldrapper in #314
- Clean up by @joeldrapper in #316
- Remove
process_attributes
feature by @joeldrapper in #318 - Delegate specific
form_with
output methods by @joeldrapper in #319 - Make views
to_proc
able by @joeldrapper in #321 - [Proposal] Add render? method to allow conditional rendering by @stephannv in #322
- Fix list style in documentation by @alexandreruban in #323
- Mix attributes together by @joeldrapper in #230
- Rename Phlex::View → Phlex::HTML by @joeldrapper in #326
- Form abstraction for Rails [EXPERIMENTAL] by @joeldrapper in #219
- Phlex::Markdown [EXPERIMENTAL] by @joeldrapper in #329
- Add whitespace around markdown
code
blocks by @joeldrapper in #330 - Add
Turbo::Stream
andTurbo::Frame
[EXPERIMENTAL] by @joeldrapper in #331 - Handle strange CommonMark AST issue by @joeldrapper in #332
- Generator task for Rails controller with Phlex views by @barrywoolgar in #324
- Switch from HTML escaper from CSI to Hescape by @joeldrapper in #333
- Improve testing stuff by @joeldrapper in #335
- Friendly warning when accessing
Phlex::View
by @joeldrapper in #337 - Bump phlex to 0.5.0 by @joeldrapper in #339
New Contributors
- @stephannv made their first contribution in #269
- @joelmoss made their first contribution in #294
- @barrywoolgar made their first contribution in #324
Full Changelog: 0.4.0...0.5.0
0.4.0
- 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
andPhlex::Table
"standard library" abstractions - New Rails generators:
page
andlayout
, and experimental generatorscollection
andtable
- New
<hr>
element - Fixed a bug with conditional token Arrays
0.3.2
- 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
- Fixed an issue with the Rails generators
- The Rails install script (
bin/rails phlex:install
) now generates anApplicationView
- The view generator (
bin/rails g phlex:view
) generates views that subclassApplicationView
by default
0.3.0
- Renamed
Phlex::Component
→Phlex::View
- Renamed
content
→yield_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