Releases: GuySartorelli/silverstripe-composable-validators
3.0.1
Fixes a bug where front-end AJAX validation didn't work
Full Changelog: 3.0.0...3.0.1
3.0.0
What's Changed
- chore Update CI permissions. by @GuySartorelli in #8
- chore: Add permissions for CI with fork for testing by @GuySartorelli in #9
- CMS 6 compatibility. by @GuySartorelli in #11
Breaking changes include:
RegexFieldsValidator
removed. UseConstraintsValidator
with aRegex
constraint instead.SimpleFieldsValidator
removed.Form::validate()
will callFormField::validate()
without the need for an additional validator. SeeAjaxCompositeValidator
docs for how to omit fields from AJAX validation.RequiredFieldsValidator
removed - use theRequiredFieldsValidator
from framework instead.GridFieldMessagesExtension
removed as it's no longer necessary.DataObjectDefaultAjaxExtension
removed - use injector configuration instead.FormFieldExtension
removed - we can't control whenvalidate()
is called on fields anymore, since that's happening directly in the form.- Added strong typing
- Extension hook methods are now
protected
so can't be called directly on the object being extended
Full Changelog: 2.3.0...3.0.0
2.3.0
What's Changed
- feat: Add validator that leverages symfony/validation constraints. by @GuySartorelli in #6
The RegexFieldsValidator
is deprecated in this release - use the new ConstraintsValidator
instead. There's a regex constraint if you really do need regex, but for many use cases there are specific constraints that might suit your purposes better.
Full Changelog: 2.2.0...2.3.0
2.3.0-beta1
This release requires silverstripe/framework 5.2.0 which will be released in mid April.
What's Changed
- feat: Add validator that leverages symfony/validation constraints. by @GuySartorelli in #6
The RegexFieldsValidator
is deprecated in this release - use the new ConstraintsValidator
instead. There's a regex constraint if you really do need regex, but for many use cases there are specific constraints that might suit your purposes better.
Full Changelog: 2.2.0...2.3.0-beta1
2.2.0
What's Changed
- MNT Add testing recipe for CI to work nicely by @GuySartorelli in #4
- ENH Use the core ArrayList Searchfilter functionality by @GuySartorelli in #3
Full Changelog: 2.1.0...2.2.0
2.2.0-rc1
What's Changed
- ENH Use the core ArrayList Searchfilter functionality by @GuySartorelli in #3
Full Changelog: 2.1.0...2.2.0-rc1
2.1.0
What's Changed
- FIX Replace new FieldsValidator with SimpleFieldsValidator by @GuySartorelli in #2
Full Changelog: 2.0.0...2.1.0
2.0.0
Silverstripe CMS 5 compatibility
Full Changelog: 1.0.0...2.0.0
1.1.0
What's Changed
- FIX Replace new FieldsValidator with SimpleFieldsValidator by @GuySartorelli in #2
Full Changelog: 1.0.0...1.1.0
1.0.0
Initial release of the public version of this module.