Skip to content

10.3.0

Choose a tag to compare

@peterver peterver released this 08 May 11:29
· 34 commits to main since this release

Added

  • feat: functions barrel export is now available for built-in functions at @valkyriestudios/validator/functions. This allows using just the built-in functions without having to import the entire Validator, and is built in such a way that tree shaking will optimize the imports. example usage:
import {vUrl, vEmail} from '@valkyriestudios/validator/functions';

...
  • feat: Rule cron with branded type CronSchedule to verify that a provided value is a valid cron schedule.
const v = new Validator({val: 'cron'});
v.check('* * * * *') // true
v.check('0,5,10 * * * *') // true
v.check('0,5,10,65 * * * *') // false

Improved

  • misc: Updated license to include all contributors portion and add license badge to readme
  • misc: Improved on CI, bundle existing lint/coverage/test workflows in one ci workflow, add types, audit, publish jobs
  • deps: Upgrade @types/node to 22.15.16
  • deps: Upgrade @valkyriestudios/utils to 12.36.0
  • deps: Upgrade eslint to 9.26.0
  • deps: Upgrade typescript to 5.8.3
  • deps: Upgrade typescript-eslint to 8.32.0