Releases: komposable/komponent
Releases · komposable/komponent
v3.0.0.beta1
Breaking changes:
- Dropped support for Rails 4.2
- Dropped support for Ruby 2.2
Enhancements:
- Komponent now reports component stats when you run
bin/rails stats - Komponent now includes a styleguide engine that you can mount to your project
to document your components, and 2 new generators:rails g komponent:styleguideto set it uprails g komponent:examplesto generate anexamplesfile for each existing component
Bug fixes:
- Removed redundant
classattribute in HAML templates - Fix
content_for/yieldwhich was no longer working across components, sincev2.0.0 - Fix translation key lookup in partials (helper method
t)
v2.2.0
v2.1.0
Enhancements:
- Block given to component now pass return values
v2.0.0
Enhancements:
- Use lazy lookup for translations in all generator templates
v2.0.0.pre.1
Breaking changes:
- Removed deprecated
render_partialmethod - Removed rendering of namespaced component with the old naming convention
Enhancements:
- Changed
@block_given_to_componentfrom an instance variable to a methodblock_given_to_componentavailable in the view context - Implemented component caching with the
cached: trueoption - Added a
stylesheet_engineoption to Komponent configuration - When generating a new component, the
frozen_string_literal: truemagic comment is prepended to Ruby files
v1.1.4
Enhancements:
- Added
frozen_string_literaloption to optimize performance - Removed useless
autoload_pathsconfig definition (it was not taken into account) - Install generator can be ran several times in order to enable features
- Autoloading is now appended to
config/application.rbwhen you runrails g komponent:install - Make all locals passed to
componenthelper available throughpropertieshelper method
v1.1.3
Enhancements:
- Custom destroy for the component generator: you can now safely run
rails d component button
Bug fixes:
- Fix crash when nil is passed to a component
v1.1.2
Enhancements:
- Support for Stimulus 1.0
importsare now sorted alphabetically every time you run the component generator- Added
the block_given_to_component?helper to components
v1.1.1
Enhancements:
- Add an option to change default root path where Komponent is installed, and components are generated
v1.1.0
Enhancements:
- stimulus integration
- Component generator supports
css,scss,sassstylesheet engine - Add a component path resolver
Bug fixes
- Make
content_forwork in component - Fix issue with wrong stylesheet extension being used when
imported in JavaScript files
Deprecation
render_partialis deprecated in favor of defaultrender- The file naming convention will be changed in the next major version, for namespaced components, to include the namespace:
frontend/components/admin/button/_button.html.slim->frontend/components/admin/button/_admin_button.html.slimfrontend/components/admin/button/button.js->frontend/components/admin/button/admin_button.jsfrontend/components/admin/button/button.css->frontend/components/admin/button/admin_button.css