Skip to content

Releases: coldbox-modules/cbvalidation

4.4.0

16 Oct 08:44
f41e0f0
Compare
Choose a tag to compare

Added

  • requiredIf accepts a UDF and closure now

Fixed

  • UDF validator now treats nulls correctly

4.3.1

15 Jun 14:06
78d2942
Compare
Choose a tag to compare

Fixed

  • Only perform type evaluation if target value is not null or empty string #75

4.3.0

05 May 09:44
Compare
Choose a tag to compare
v4.3.0

Latest Release v4.3.0

4.2.0

14 Apr 18:25
Compare
Choose a tag to compare

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

  • Fix for tasks.json file to include no recursion
  • #71 - ValidationManager errors when returning validatedKeys due to sharedconstraint name
  • #45 - Type validator needs to be able to validate against any type even if that is an empty string

v4.1.0

15 Nov 12:03
Compare
Choose a tag to compare

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

10 Oct 19:08
Compare
Choose a tag to compare

[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

Changed

  • Dropped ACF2016

v3.4.0

27 Jun 22:54
Compare
Choose a tag to compare

[3.4.0] => 2022-JUN-27

Added

  • EmptyValidator by @elpete. This validator is useful when a field is not required but if it exists it cannot be empty: #61
  • New module template updates and enhancements
  • Update to use the new virtual app from ColdBox 6.7

v3.1.1

17 May 23:23
Compare
Choose a tag to compare

[3.1.0] => 2021-MAY-17

Fixed

  • Regression when doing global replacements for validationData. It was changed to a !isStruct() but in reality, it has to be simple ONLY for replacements.

v3.1.0

15 May 23:04
Compare
Choose a tag to compare

[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 the validate() method and concatenate the callbacks.
  • New assert() helper that can assit you in validating truthful expressions or throwing exceptions
  • Two new helpers: validateIsNullorEmpty() and validateHasValue 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 if anotherField exists, or unless anotherField exists.
  • New BaseValidator for usage by all validators to bring uniformity, global di, and helpers.

Changed

  • The IValidator removes the getName() since that comes from the BaseValidator 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

20 Jan 22:50
Compare
Choose a tag to compare

[3.0.0] => 2021-JAN-20

Added