All Versions
53
Latest Version
Avg Release Cycle
178 days
Latest Release
-
Changelog History
Page 2
Changelog History
Page 2
-
v2.3.0.rc2
November 02, 2019 -
v2.3.0.rc1
February 26, 2017 -
v2.2.4 Changes
January 31, 2017- You can now use any object with
call
as a populator, no need toinclude Uber::Callable
anymore. This is because we have only three types and don't need ais_a?
orrespond_to?
check. - ๐ Use
declarative-option
and loosenuber
dependency.
- You can now use any object with
-
v2.2.3 Changes
- โ Add
Form#call
as an alias forvalidate
and theResult
object.
- โ Add
-
v2.2.2 Changes
November 09, 2016- Loosen
uber
dependency.
- Loosen
-
v2.2.1 Changes
June 21, 2016- ๐ Fix
Contract::Properties
. Thanks @simonc. <3
- ๐ Fix
-
v2.2.0 Changes
June 20, 2016- โ Remove
reform/rails
. This is now handled via thereform-rails
gem which you have to bundle. - ๐ For coercion, we now use dry-types as a replacement for the deprecated virtus. You have to change to dry-types' constants, e.g.
type: Types::Form::Bool
. - ๐ Use disposable 0.3.0. This gives us the long-awaited
nilify: true
option.
# TODO: fix Module and coercion Types::*
- โ Remove
-
v2.2.0.rc1
June 17, 2016 -
v2.1.0 Changes
December 23, 2015โฌ๏ธ You should be able to upgrade from 2.0 without any code changes.
Awesomeness
- ๐ You can now have
:populator
for scalar properties, too. This allows "parsing code" per property which is super helpful to structure your deserialization. :populator
can be a method name, as inpopulator: :populate_authors!
.- Populators can now skip deserialization of a nested fragment using
skip!
. Learn more here. - โ Added support for dry-validation as a future replacement for ActiveModel::Validation. Note that this is still experimental, but works great.
- โ Added validation groups.
๐ Changes
- All lambda APIs change (with deprecation):
populator: ->(options)
or->(fragment:, model:, **o)
where we only receive one hash instead of a varying number or arguments. This is pretty cool and should be listed under Awesomeness. - ๐
ActiveModel::Validator
prevents Rails from adding methods to it. This makesacceptance
andconfirmation
validations work properly.
Notes
- ๐ Please be warned that we will drop support for
ActiveModel::Validations
from 2.2 onwards. Don't worry, it will still work, but we don't want to work with it anymore.
- ๐ You can now have
-
v2.1.0.rc1
December 21, 2015