Releases: yippee-fun/phlex
Releases · yippee-fun/phlex
1.0.0.rc2
Here’s another release candidate in advance of 1.0 later this week.
What's Changed
- Add then/else conditional token option by @bschrag620 in #392
- Switch from CGI to ERB::Util by @joeldrapper in #394
- Faster conditional tokens by @joeldrapper in #395
textfallback toto_sby @joeldrapper in #396
New Contributors
- @bschrag620 made their first contribution in #392
Full Changelog: 1.0.0.rc1...1.0.0.rc2
1.0.0.rc1
This is a release candidate for Phlex 1.0.
If you were using Phlex with rails, you'll need to install phlex-rails instead of phlex.
Notable changes
- Remove Rails integration — this is now available in
phlex-rails - Removed
Phlex::Markdown— this is now available inphlex-markdown - Remove
Phlex::Translation— this is now available inphlex-translation - Removed the compiler — this will be available in
phlex-compiler - Removed
Phlex::Testing::Nokogiri— this is now available inphlex-testing-nokogiri - Removed
Phlex::Testing::Capybara— this is now available inphlex-testing-capybara - Removed
Phlex::Block, all blocks are wrapped byyield_contentautomatically which also ensures they execute in the right context - Added an
around_templatehook - Renamed
before_rendering_templateandafter_rendering_templatehooks tobefore_templateandafter_template. You no longer need to prependPhlex::Callbacksto use these either. - Added support for TruffleRuby
- The
commenthelper method now accepts a block - Added a warning for experimental features like collections and tables
Full Changelog: 0.5.3...1.0.0.rc1
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::Streamelement 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
ApplicationViewas 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/railsis no longer required automatically. If you're using Rails, the best option is to requirephlex/railsin 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
typedby @joeldrapper in #307 - Revert _attributes name change in favour of an explicitly defined process_attributes by @joelmoss in #302
- Rename
raw→unsafe_rawby @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
ApplicationViewa module by @joeldrapper in #313 - Remove test helper by @joeldrapper in #314
- Clean up by @joeldrapper in #316
- Remove
process_attributesfeature by @joeldrapper in #318 - Delegate specific
form_withoutput methods by @joeldrapper in #319 - Make views
to_procable 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
codeblocks by @joeldrapper in #330 - Add
Turbo::StreamandTurbo::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::Viewby @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::Layouthelper includes layout-relevant tag helpers - New experimental
Phlex::CollectionandPhlex::Table"standard library" abstractions - New Rails generators:
pageandlayout, and experimental generatorscollectionandtable - 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 subclassApplicationViewby 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
helperproxy