Releases: coldbox-modules/cbvalidation
Releases · coldbox-modules/cbvalidation
4.4.0
4.3.1
4.3.0
v4.3.0 Latest Release v4.3.0
4.2.0
Added
- New github action versions and consolidation of actions
- New Contributing guidelines
- New github support templates
Changed
- The way custom validators are retrieved so they are ColdBox 7+ compatible
pr
github action now just does format checks to avoid issues with other repos.- Consolidated Adobe 2021 scripts into the server scripts
Fixed
v4.1.0
Added
- New ColdBox 7 delegate:
Validatable@cbValidation
which can be used to make objects validatable - New validators:
notSameAs, notSameAsNoCase
Changed
- All date comparison validators now validate as
false
when the comparison target dates values are NOT dates instead of throwing an exception.
v4.0.0
[4.0.0] => 2022-OCT-10
Added
- Major bump of all dependencies
- New
InstanceOf
validator thanks to @homestar9 : #65 - New virtual app testing and tuning
Fixed
- Fix process result metadata replacements https://github.com/coldbox-modules/cbvalidation/pull/64/files thanks to @alessio-de-padova, when using full null support
Changed
- Dropped ACF2016
v3.4.0
v3.1.1
v3.1.0
[3.1.0] => 2021-MAY-15
Added
- New validator:
DateEquals
which can help you validate that a target value is a date and is the same date as the validation date or other field - New validator:
After
which can help you validate that a target value is a date and is after the validation date - New validator:
AfterOrEqual
which can help you validate that a target value is a date and is after or equal the validation date - New validator:
Before
which can help you validate that a target value is a date and is before the validation date - New validator:
BeforeOrEqual
which can help you validate that a target value is a date and is before or equal the validation date - New
onError( closure ), onSuccess( closure )
callbacks that can be used to validate results using thevalidate()
method and concatenate the callbacks. - New
assert()
helper that can assit you in validating truthful expressions or throwing exceptions - Two new helpers:
validateIsNullorEmpty()
andvalidateHasValue
so you can do simple validations not only on objects and constraints. RequiredIf, RequiredUnless
can now be declared with a simple value pointing to a field. Basically testing ifanotherField
exists, or unlessanotherField
exists.- New
BaseValidator
for usage by all validators to bring uniformity, global di, and helpers.
Changed
- The
IValidator
removes thegetName()
since that comes from theBaseValidator
now. - The
UniqueValidator
now supports both creationg and update checks with new constraints. - Removed hard interface requirements to avoid lots of issues across CFML engines. Moved them to the
interfaces
folder so we can continue to document them and use them without direct compilation.
Fixed
- Metadata for arguments did not have the right spacing for tosn of validators.
- Added the missing
rules
struct argument to several validators that missed it.
v3.0.0
[3.0.0] => 2021-JAN-20
Added
- Migration to cbi18n 2.x series. This will require for you to update your cbi18n settings in your ColdBox configuration file and the modules that leverage cbi18n. Please see https://coldbox-i18n.ortusbooks.com/intro/release-history/whats-new-with-2.0.0#compatibility-updates on how to upgrade your application easily in about 5 minutes.