ActiveInteraction v5.0.0 Release Notes

Release Date: 2022-06-24 // almost 2 years ago
  • 🔄 Changed

    • ⬇️ Drop support for JRuby.
    • ⬇️ Drop support for Ruby 2.5 and 2.6, adding support for 3.1
    • ⬇️ Drop support for Rails 5.0 and 5.1
    • ActiveInteraction::Inputs no longer inherits from Hash though it still has most of the methods provided by Hash (methods that write were removed).
    • ✂ Removed Filter#clean (use Filter#process and call #value on the result)
    • ⬆️ The given? method has been moved onto inputs. (how to upgrade)
    • ⚡️ [#503][] - The record filter now treats blank strings value as nil. This was missed in the 4.0 update.
    • 👍 The type_check callback has been renamed to filter to better match the reality of what it does. (how to upgrade)
    • ActiveIneraction::FilterColumn is now ActiveInteraction::Filter::Column
    • Errors on the array filter will now be indexed if the Rails config index_nested_attribute_errors is true or the :index_errors option is set to true. The :index_errors option always overrides the Rails config.
    • Invalid nested errors (:invalid_nested) are gone. Instead the nested errors will appear as they would in Rails if they were a has_many relationship being assigned attributes through a parent. (how to upgrade)

    ➕ Added

    • Filter#process which returns an Input.

    🛠 Fixed

    • When passing an ActiveRecord::Relation in an array filter with no inner filter, the value returned was an ActiveRecord::Relation instead of an Array.

    ⬆️ Upgrading

    given?

    The given? method can now be found on inputs. It works the same as before.