mikeerickson / validatorjs

A data validation library in JavaScript for the browser and Node.js, inspired by Laravel's Validator.
https://www.npmjs.com/package/validatorjs
MIT License
1.77k stars 280 forks source link

NPM Version 3.13.3 #191

Open gpltaylor opened 7 years ago

gpltaylor commented 7 years ago

I am trying to pull down the latest NPM (3.13.3) due to the bug in the rules.js for Month (date not valid for value: 2017-10-31).

When I pull this down, I'm expecting to get the latest version, with the fix. https://github.com/skaterdav85/validatorjs/commit/96796f5bb0248bb7d180e3f761f9a097cafeb082

However, the code does not include the latest fix? I have also noticed that there is no tag or version for 3.13.3.

gpltaylor commented 7 years ago

NOTE: I have tried to test this on the NPM RunKit and get the same issue.


var validation = new validatorjs({
    dateofbirth: '2017-10-31'
}, {
    dateofbirth: 'required|date'
});

validation.passes();
validation.errors.get('dateofbirth');

Array (1 item) 0: "The dateofbirth is not a valid date format" length: 1

mikeerickson commented 7 years ago

@gpltaylor This is a known issue and will be addressed soon (will be addressing this and other issues over the weekend)

gpltaylor commented 7 years ago

Thank you