Rename rule names:
in → includes
isIn → isIncludes
String rules:
in:admin,moderator → includes:admin,moderator
- Fixed: Declarative usage ofin:A,B does not validate B (#73)
- Documentation
🎉 Big thanks to our contributors for this release! Special shoutout to: @christoph-kluge 🚀👏
Your help makes this project better—cheers! 🎩✨
- Fixed: Argument parsing issue on different functions #70
- Fixed: Internal server error: DEFINED_RULES.includes is not a function #68
- Array and object validation #54
- TypeError: list.map is not a function #62
- Added
isRegistered()function. #60
- Fixed validation messages in English
- Fixed bundling issues
- The dayjs library with date-fns. You MUST replace the date formats:
YYYY-MM-DD=>yyyy-MM-dd
- Security fix
- Fixed bundling issues
- Reduced library size.
- Fixed custom rule registration issue #43
Before:
import { validate, setLocales } from "robust-validator";
import en from "robust-validator/dist/i18n/en.json";After:
import { validate, setLocales, en } from "robust-validator";- Fixed module target
- Initial version