Skip to content

Releases: ViewComponent/view_component

v2.49.0

11 Feb 01:16
d4678fd
Compare
Choose a tag to compare
  • Fix path handling for evaluated view components that broke in Ruby 3.1.

    Adam Hess

  • Fix support for the default: option for a global translation.

    Elia Schito

  • Ensure i18n scope is a symbol to protect lookups.

    Simon Fish

  • Small update to preview docs to include rspec mention.

    Leigh Halliday

  • Small improvements to collection iteration docs.

    Brian O'Rourke

  • Add good and bad examples to ViewComponents in practice.

    Joel Hawksley

  • Add Ruby 3.1 and Rails 7.0 to CI

    Peter Goldstein

v2.48.0

14 Jan 21:05
e702e60
Compare
Choose a tag to compare
  • Correct path in example test command in Contributing docs.

    Mark Wilkinson

  • Update link to GOV.UK Components library in the resources list.

    Peter Yates

  • Add Lookbook to Resources docs page.

    Mark Perkins

  • Add blocking compiler mode for use in Rails development and testing modes, improving thread safety.

    Horia Radu

  • Add generators to support tailwindcss-rails.

    Dino Maric, Hans Lemuet

  • Add a namespaced component example to docs.

    Hans Lemuet

  • Setup Appraisal to add flexibility when testing ViewComponent against multiple Rails versions.

    Hans Lemuet

  • Return correct values for request.path and request.query_string methods when using the with_request_url test helper.

    Vasiliy Matyushin

  • Improve style in generators docs.

    Hans Lemuet

  • Correctly type Ruby version strings and update Rails versions used in CI configuration.

    Hans Lemuet

  • Make ViewComponent::Collection act like a collection of view components.

    Sammy Henningsson

  • Update @param of #render_inline to include ViewComponent::Collection.

    Yutaka Kamei

  • Add Wecasa to users list.

    Mohamed Ziata

v2.47.0

20 Dec 22:09
d7bf301
Compare
Choose a tag to compare
  • Display preview source on previews that exclusively use templates.

    Edwin Mak

  • Add a test to ensure trailing newlines are stripped when rendering with #render_in.

    Simon Fish

  • Add WEBrick as a depenency to the docs application.

    Connor McQuillan

  • Update Ruby version in .tool-versions.

    Connor McQuillan

  • Add a test to ensure blocks can be passed into lambda slots without the need for any other arguments.

    Simon Fish

  • Add linters for file consistency.

    Simon Fish

  • Add @boardfish to docs/index.md and sort contributors.

    Simon Fish

  • Set up Codespaces for bug replication.

    Simon Fish

  • Add instructions for replicating bugs and failures.

    Simon Fish

  • Make @boardfish a committer.

    Joel Hawksley

  • Validate collection parameter with Active Model attribute names.

    Simon Fish

  • Fix helpers not working with component slots when rendered more than 2 component levels deep.

    Blake Williams

  • Update ruby to the latest versions

    Pedro Paiva

  • Fix vale linter config options.

    Hans Lemuet

  • Improve Contributing docs to include how to run tests for a specific version on Rails.

    Hans Lemuet

  • Add failing test for default form builder and documentation around known issue.

    Simon Fish

  • Add --locale flag to the component generator. Generates as many locale files as defined in I18n.available_locales, alongside the component.

  • Add config option config.view_component.generate_locale to enable project-wide locale generation.

  • Add config option config.view_component.generate_distinct_locale_files to enable project-wide per-locale translations file generation.

    Bob Maerten

v2.46.0

03 Dec 16:04
cb5b2da
Compare
Choose a tag to compare
  • Add thread safety to the compiler.

    Horia Radu

  • Add theme-specific logo images to readme.

    Dylan Smith

  • Add Orbit to users list.

    Nicolas Goutay

  • Increase clarity around purpose and use of slots.

    Simon Fish

  • Deprecate loading view_component/engine directly.

    Upgrade notice: You should update your Gemfile like this:

    - gem "view_component", require: "view_component/engine"`
    + gem "view_component"

    Yoshiyuki Hirano

v2.45.0

23 Nov 22:52
da341f8
Compare
Choose a tag to compare
  • Remove internal APIs from API documentation, fix link to license.

    Joel Hawksley

  • Add @yhirano55 to triage team.

    Joel Hawksley

  • Correct a typo in the sample slots code.

    Simon Fish

  • Add note about allowed_queries.

    Joel Hawksley

  • Add vale content linter.

    Joel Hawksley

  • Remove require "rails/generators/test_case" in generator tests.

    Yoshiyuki Hirano

  • Suppress zeitwerk warning about circular require.

    Yoshiyuki Hirano

  • Move test_unit_generator_test.rb from test/view_component/ to test/generators/.

    Yoshiyuki Hirano

  • Unify test code of TestUnitGeneratorTest with the other generators tests.

    Yoshiyuki Hirano

v2.44.0

23 Nov 22:52
f147adc
Compare
Choose a tag to compare
  • Rename internal accessor to use private naming.

    Joel Hawksley, Blake Williams, Cameron Dutro

  • Add Github repo link to docs website header.

    Hans Lemuet

  • Change logo in README for dark theme readability.

    Dylan Smith

  • Add Litmus to users list.

    Dylan Smith

  • Add @dylanatsmith as codeowner of the ViewComponent logo and member of committers team.

    Joel Hawksley

  • Autoload CompileCache, which is optionally called in engine.rb.

    Gregory Igelmund

  • Move frequently asked questions to other pages, add History page.

    Joel Hawksley

  • Fix typo.

    James Hart

  • Add require "method_source" if it options.show_previews_source is enabled.

    Yoshiyuki Hirano

  • Move show_previews_source definition to Previewable.

    Yoshiyuki Hirano

  • Clear cache in MethodSource to apply the change odf preview code without app server restart.

    Yoshiyuki Hirano

v2.43.1

09 Nov 21:59
6355a07
Compare
Choose a tag to compare
  • Remove unnecessary call to ruby2_keywords for polymorphic slot getters.

    Cameron Dutro

v2.43.0

07 Nov 19:49
149f3ee
Compare
Choose a tag to compare
  • Add note about tests and instance methods.

    Joel Hawksley

  • Flesh out ViewComponents in practice.

    Joel Hawksley

  • Add CODEOWNERS entries for feature areas owned by community committers.

    Joel Hawksley

  • Separate lint and CI workflows.

    Blake Williams

  • Add support for image_path helper in previews.

    Tobias Ahlin, Joel Hawksley

  • Add section to docs listing users of ViewComponent. Please submit a PR to add your team to the list!

    Joel Hawksley

  • Fix loading issue with Stimulus generator and add specs for Stimulus generator.

    Peter Sumskas

  • Remove dependency on ActionDispatch::Static in Rails middleware stack when enabling statics assets for source code preview.

    Gregory Igelmund

  • Require view_component/engine automatically.

    Cameron Dutro

v2.42.0

07 Nov 19:49
e87def6
Compare
Choose a tag to compare
  • Add logo files and page to docs.

    Dylan Smith

  • Add ViewComponents in practice documentation.

    Joel Hawksley

  • Fix bug where calling lambda slots without arguments would break in Ruby < 2.7.

    Manuel Puyol

  • Improve Stimulus controller template to import from stimulus or @hotwired/stimulus.

    Mario Schüttel

  • Fix bug where helpers would instantiate and use a new view_context in each component.

    Blake Williams, Ian C. Anderson

  • Implement polymorphic slots as experimental feature. See the Slots documentation to learn more.

    Cameron Dutro

v2.41.0

21 Oct 18:26
c35300b
Compare
Choose a tag to compare
  • Add sprockets-rails development dependency to fix test suite failures when using rails@main.

    Blake Williams

  • Fix Ruby indentation warning.

    Blake Williams

  • Add --parent generator option to specify the parent class.

  • Add config option config.view_component.component_parent_class to change it project-wide.

    Hans Lemuet

  • Update docs to add example for using Devise helpers in tests.

    Matthew Rider

  • Fix bug where with_collection_parameter did not inherit from parent component.

    Will Drexler, Christian Campoli

  • Allow query parameters in with_request_url test helper.

    Javi Martín

  • Add "how to render a component to a string" to FAQ.

    Hans Lemuet

  • Add #render_in to API docs.

    Hans Lemuet

  • Forward keyword arguments from slot wrapper to component instance.

    Cameron Dutro