Packages

@vinejs/vine

4.4.0 · 27 Apr 2026MIT595.8k / weekRepositoryHomepagenpmAtom feed

Your version

1.7.0

22 Nov 2023Where it was published

1.8.0 is the newest release of 1.x.

In short

5 new1 changed8 internal

Release note

This release adds support for validating dates in VineJS. You may check the documentation here. vinejs.dev/docs/types/date

The vine.date schema type accepts a string value formatted as a date and returns an instance of the JavaScript Date object. The reason we accept a string is because the data submitted over an HTTP request will always represent date/datetime as a string.

Once you have a date, you may validate it further by comparing it against a fixed value or compare it against values from other fields. You may refer the documentation to view all the available validation rules.

Commits

  • Add weekday and weekend rules 223bb93

  • Add first set of date validation rules c893f10

  • Add support for comparing nested values in sameAs and notSameAs rules 628b4c7

  • Serialize messages and fields when converting toJSON 72d098d

  • Merge pull request #16 from vinejs/snyk-upgrade-ee4daf504d32e111676c4eb19cecf239 5d2a97a

  • Upgrade camelcase from 7.0.1 to 8.0.0 f98e099

v1.6.0...v1.7.0