Skip to content

Adding new rules

Compare
Choose a tag to compare
@thetutlage thetutlage released this 26 Jul 07:53
· 179 commits to develop since this release

Rules Added

All of the following rules are related to dates

  • after
  • afterField
  • afterOrEqualToField
  • before
  • beforeField
  • beforeOrEqualToField

The following rule allows blacklisting keywords. Keywords are matched against string, number and date data types.

  • blacklist

Improvements

The confirmed rule now allows defining a custom field name. Helpful when you are accepting all data in camelCase and just one field is in snake case.

rules.confirmed('passwordConfirmation')

Commits

  • style: comment out example code a2680fa
  • chore: update dependencies 63633ca
  • docs(README): update links 75badc1
  • docs(README): update tagline fe3c8b2
  • docs(README): update readme file a1d4c7a
  • refactor: make errors more consistent 3b42ca3
  • feat: add blacklist rule c25e22b
  • feat: add more date comparison rules 0a0001f
  • feat: add resolveAbsoluteName helper e639c6c
  • refactor: improvements to the confirmed rule error output af1429b
  • feat: add before,after,beforeField and afterField rules 39d4bf8
  • test: add provider test 9a8d852
  • improvement: do not flash _method during validation exception d01e16b
  • feat(confirmed): add support for defining custom field name 53c8624
  • feat: add schema.object.anyMembers to be compatible with array signature 17722ea
  • chore: remove pope dependency c8730be
  • chore: remove endent dependency d763909
  • chore: format/update meta files 8f046e3
  • chore: update dependencies 43c08a1
  • chore(release): 7.3.2 a27c190
  • feat: add range rule (#89) 53b4b96
  • fix: Add 'true' and 'false' to boolean value (#86) (#87) 86f5486
  • chore: update dependencies 55a3a3f

v7.3.1...v7.4.0