CHANGELOG.md in view_component-2.18.2 vs CHANGELOG.md in view_component-2.19.0

- old
+ new

@@ -1,24 +1,40 @@ -# master +# CHANGELOG -# 2.18.2 +## master +## 2.19.0 + +* Extend documentation for using Stimulus within sidecar directories. + + *Ciprian Redinciuc* + +* Subclassed components inherit templates from parent. + + *Blake Williams* + +* Fix uninitialized constant error from `with_collection` when `eager_load` is disabled. + + *Josh Gross* + +## 2.18.2 + * Raise an error if controller or view context is accessed during initialize as they are only available in render. *Julian Nadeau* * Collate test coverage across CI builds, ensuring 100% test coverage. *Joel Hawksley* -# 2.18.1 +## 2.18.1 * Fix bug where previews didn't work when monkey patch was disabled. *Mixer Gutierrez* -# 2.18.0 +## 2.18.0 * Fix auto-loading of previews (changes no longer require a server restart) *Matt Brictson* @@ -28,144 +44,144 @@ * Calculate virtual_path once for all instances of a component class to improve performance. *Brad Parker* -# 2.17.1 +## 2.17.1 * Fix bug where rendering Slot with empty block resulted in error. *Joel Hawksley* -# 2.17.0 +## 2.17.0 * Slots return stripped HTML, removing leading and trailing whitespace. *Jason Long, Joel Hawksley* -# 2.16.0 +## 2.16.0 * Add `--sidecar` option to the erb, haml and slim generators. Places the generated template in the sidecar directory. *Michael van Rooijen* -# 2.15.0 +## 2.15.0 * Add support for templates as ViewComponent::Preview examples. *Juan Manuel Ramallo -# 2.14.1 +## 2.14.1 * Allow using `render_inline` in test when the render monkey patch is disabled with `config.view_component.render_monkey_patch_enabled = false` in versions of Rails < 6.1. *Clément Joubert* * Fix kwargs warnings in slotable. Fixes: - ``` + ```console view_component/lib/view_component/slotable.rb:98: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call view_component/test/app/components/slots_component.rb:18: warning: The called method `initialize' is defined here ``` *Eileen M. Uchitelle* -# 2.14.0 +## 2.14.0 * Add `config.preview_paths` to support multiple locations of component preview files. Deprecate `config.preview_path`. *Tomas Celizna* * Only print warning about a missing capybara dependency if the `DEBUG` environment variable is set. *Richard Macklin* -# 2.13.0 +## 2.13.0 * Add the ability to disable the render monkey patch with `config.view_component.render_monkey_patch_enabled`. In versions of Rails < 6.1, add `render_component` and `render_component_to_string` methods which can be used for rendering components instead of `render`. *Johannes Engl* -# 2.12.0 +## 2.12.0 * Implement Slots as potential successor to Content Areas. *Jens Ljungblad, Brian Bugh, Jon Palmer, Joel Hawksley* -# 2.11.1 +## 2.11.1 * Fix kwarg warnings in Ruby 2.7. *Joel Hawksley* -# 2.11.0 +## 2.11.0 * Ensure Rails configuration is available within components. *Trevor Broaddus* * Fix bug where global Rails helpers are inaccessible from nested components. Before, `helpers` was pointing to parent component. *Franco Sebregondi* -# 2.10.0 +## 2.10.0 * Raise an `ArgumentError` with a helpful message when Ruby cannot parse a component class. *Max Beizer* -# 2.9.0 +## 2.9.0 * Cache components per-request in development, preventing unnecessary recompilation during a single request. *Felipe Sateler* -# 2.8.0 +## 2.8.0 * Add `before_render`, deprecating `before_render_check`. *Joel Hawksley* -# 2.7.0 +## 2.7.0 * Add `rendered_component` method to `ViewComponent::TestHelpers` which exposes the raw output of the rendered component. *Richard Macklin* * Support sidecar directories for views and other assets. *Jon Palmer* -# 2.6.0 +## 2.6.0 * Add `config.view_component.preview_route` to set the endpoint for component previews. By default `/rails/view_components` is used. *Juan Manuel Ramallo* * Raise error when initializer omits with_collection_parameter. *Joel Hawksley* -# 2.5.1 +## 2.5.1 * Compile component before rendering collection. *Rainer Borene* -# v2.5.0 +## v2.5.0 * Add counter variables when rendering collections. *Frank S* * Add the ability to access params from preview examples. *Fabio Cantoni* -# v2.4.0 +## v2.4.0 * Add `#render_to_string` support. *Jarod Reid* @@ -179,11 +195,11 @@ * Remove `capybara` dependency. *Richard Macklin* -# v2.3.0 +## v2.3.0 * Allow using inline render method(s) defined on a parent. *Simon Rand* @@ -193,51 +209,51 @@ * ViewComponent preview index views use Rails internal layout instead of application's layout *Juan Manuel Ramallo* -# v2.2.2 +## v2.2.2 * Add `Base.format` for better compatibility with `ActionView::Template`. *Joel Hawksley* -# v2.2.1 +## v2.2.1 * Fix bug where template could not be found if `inherited` was redefined. *Joel Hawksley* -# v2.2.0 +## v2.2.0 * Add support for `config.action_view.annotate_template_file_names` (coming in Rails 6.1). *Joel Hawksley* * Remove initializer requirement from the component. *Vasiliy Ermolovich* -# v2.1.0 +## v2.1.0 * Support rendering collections (e.g., `render(MyComponent.with_collection(@items))`). *Tim Clem* -# v2.0.0 +## v2.0.0 * Move to `ViewComponent` namespace, removing all references to `ActionView`. - * The gem name is now `view_component`. - * ViewComponent previews are now accessed at `/rails/view_components`. - * ViewComponents can _only_ be rendered with the instance syntax: `render(MyComponent.new)`. Support for all other syntaxes has been removed. - * ActiveModel::Validations have been removed. ViewComponent generators no longer include validations. - * In Rails 6.1, no monkey patching is used. - * `to_component_class` has been removed. - * All gem configuration is now in `config.view_component`. + * The gem name is now `view_component`. + * ViewComponent previews are now accessed at `/rails/view_components`. + * ViewComponents can _only_ be rendered with the instance syntax: `render(MyComponent.new)`. Support for all other syntaxes has been removed. + * ActiveModel::Validations have been removed. ViewComponent generators no longer include validations. + * In Rails 6.1, no monkey patching is used. + * `to_component_class` has been removed. + * All gem configuration is now in `config.view_component`. -# v1.17.0 +## v1.17.0 * Support Ruby 2.4 in CI. *Andrew Mason* @@ -247,11 +263,11 @@ * Add post-install message that gem has been renamed to `view_component`. *Joel Hawksley* -# v1.16.0 +## v1.16.0 * Add `refute_component_rendered` test helper. *Joel Hawksley* @@ -261,11 +277,11 @@ * Allow components to be rendered without a template file (aka inline component). *Rainer Borene* -# v1.15.0 +## v1.15.0 * Re-introduce ActionView::Component::TestHelpers. *Joel Hawksley* @@ -285,33 +301,33 @@ end ``` *Sean Doyle* -# v1.14.1 +## v1.14.1 * Fix bug where generator created invalid test code. *Joel Hawksley* -# v1.14.0 +## v1.14.0 * Rename ActionView::Component::Base to ViewComponent::Base *Joel Hawksley* -# v1.13.0 +## v1.13.0 * Allow components to be rendered inside controllers. *Joel Hawksley* * Improve backtraces from exceptions raised in templates. *Blake Williams* -# v1.12.0 +## v1.12.0 * Revert: Remove initializer requirement for Ruby 2.7+ *Joel Hawksley* @@ -321,45 +337,45 @@ * Allow components to override before_render_check *Joel Hawksley* -# v1.11.1 +## v1.11.1 * Relax Capybara requirement. *Joel Hawksley* -# v1.11.0 +## v1.11.0 * Add support for Capybara matchers. *Joel Hawksley* * Add erb, haml, & slim template generators *Asger Behncke Jacobsen* -# v1.10.0 +## v1.10.0 * Deprecate all `render` syntaxes except for `render(MyComponent.new(foo: :bar))` *Joel Hawksley* -# v1.9.0 +## v1.9.0 * Remove initializer requirement for Ruby 2.7+ *Dylan Clark* -# v1.8.1 +## v1.8.1 * Run validation checks before calling `#render?`. *Ash Wilson* -# v1.8.0 +## v1.8.0 * Remove the unneeded ComponentExamplesController and simplify preview rendering. *Jon Palmer* @@ -381,21 +397,21 @@ * Fix cache test. *Sergey Malykh* -# v1.7.0 +## v1.7.0 * Simplify validation of templates and compilation. *Jon Palmer* * Add support for multiple content areas. *Jon Palmer* -# v1.6.2 +## v1.6.2 * Fix Uninitialized Constant error. *Jon Palmer* @@ -405,11 +421,11 @@ * Update readme phrasing around previews. *Justin Coyne* -# v1.6.1 +## v1.6.1 * Allow Previews to have no layout. *Jon Palmer* @@ -431,11 +447,11 @@ * Fix edge case issue with extracting variants from less conventional source_locations. *Ryan Workman* -# v1.6.0 +## v1.6.0 * Avoid dropping elements in the render_inline test helper. *@dark-panda* @@ -461,33 +477,33 @@ * Add support for rendering components via #to_component_class *Vinicius Stock* -# v1.5.3 +## v1.5.3 * Add support for RSpec to generators. *Dylan Clark, Ryan Workman* * Require controllers as part of setting autoload paths. *Joel Hawksley* -# v1.5.2 +## v1.5.2 * Disable eager loading initializer. *Kasper Meyer* -# v1.5.1 +## v1.5.1 * Update railties class to work with Rails 6. *Juan Manuel Ramallo* -# v1.5.0 +## v1.5.0 Note: `actionview-component` is now loaded by requiring `actionview/component`, not `actionview/component/base`. * Fix issue with generating component method signatures. @@ -503,11 +519,11 @@ * Introduce ActionView::Component::Previews. *Juan Manuel Ramallo* -# v1.4.0 +## v1.4.0 * Fix bug where components broke in application paths with periods. *Anton, Joel Hawksley* @@ -525,21 +541,21 @@ * Preselect the rendered component in render_inline. *Elia Schito* -# v1.3.6 +## v1.3.6 * Allow template file names without format. *Joel Hawksley* * Add support for translations. *Juan Manuel Ramallo* -# v1.3.5 +## v1.3.5 * Re-expose `controller` method. *Michael Emhofer, Joel Hawksley* @@ -549,70 +565,70 @@ * Fix typo in README *ars moriendi* -# v1.3.4 +## v1.3.4 * Template errors surface correct file and line number. *Justin Coyne* * Allow access to `request` inside components. *Joel Hawksley* -# v1.3.3 +## v1.3.3 -* Do not raise error when sidecar files that are not templates exist. +* Do not raise error when sidecar files that are not templates exist. *Joel Hawksley* -# v1.3.2 +## v1.3.2 -* Support rendering views from inside component templates. +* Support rendering views from inside component templates. *Patrick Sinclair* -# v1.3.1 +## v1.3.1 -* Fix bug where rendering nested content caused an error. +* Fix bug where rendering nested content caused an error. *Joel Hawksley, Aaron Patterson* -# v1.3.0 +## v1.3.0 -* Components are rendered with enough controller context to support rendering of partials and forms. +* Components are rendered with enough controller context to support rendering of partials and forms. *Patrick Sinclair, Joel Hawksley, Aaron Patterson* -# v1.2.1 +## v1.2.1 -* `actionview-component` is now tested against Ruby 2.3/2.4 and Rails 5.0.0. +* `actionview-component` is now tested against Ruby 2.3/2.4 and Rails 5.0.0. -# v1.2.0 +## v1.2.0 -* The `render_component` test helper has been renamed to `render_inline`. `render_component` has been deprecated and will be removed in v2.0.0. +* The `render_component` test helper has been renamed to `render_inline`. `render_component` has been deprecated and will be removed in v2.0.0. *Joel Hawksley* -* Components are now rendered with `render MyComponent, foo: :bar` syntax. The existing `render MyComponent.new(foo: :bar)` syntax has been deprecated and will be removed in v2.0.0. +* Components are now rendered with `render MyComponent, foo: :bar` syntax. The existing `render MyComponent.new(foo: :bar)` syntax has been deprecated and will be removed in v2.0.0. *Joel Hawksley* -# v1.1.0 +## v1.1.0 -* Components now inherit from ActionView::Component::Base +* Components now inherit from ActionView::Component::Base *Joel Hawksley* -# v1.0.1 +## v1.0.1 -* Always recompile component templates outside production. +* Always recompile component templates outside production. *Joel Hawksley, John Hawthorn* -# v1.0.0 +## v1.0.0 This release extracts the `ActionView::Component` library from the GitHub application. It will be published on RubyGems under the existing `actionview-component` gem name, as @chancancode has passed us ownership of the gem.