Releases: jonth93/AcsBootstrapInputValidator
v1.0.10
v1.0.9
v1.0.8
v1.0.7
v1.0.6
V1.0.4
Version 1.0.4
New Features:
Custom Validation Messages: Added the ability to provide custom error messages for each validation type using the validationMessages parameter.
Bug Fixes:
Fixed issue with date validation.
Fixed class export and updated the usage section in the readme.
Fixed issue with detection of adjacent div to input with 'invalid-feedback' class not being created if not exist.
Enhancements:
Validation Type Addition: Added a new validation type, customRegexValidation, for users to define custom regular expressions for validation.
Updated unit tests to check for correct custom validation message and or adding of the invalid-feedback div element adjacent to the input.
IPv4 address can now detect and validate with or without the '/XX' subnet notation.
Dependencies:
Dependency Updates: Updated dependencies to ensure compatibility with the latest libraries and frameworks.
V1.0.3
Minor updates to package.json and readme.md. No core changes to library.
Full Changelog: v1.0.2...v1.0.3
v1.0.1
Release Notes - v1.0.1
We're excited to announce the first major release of acs-bootstrap-input-validator
! This versatile input validation library simplifies the process of validating user input in web applications. With a range of pre-built validation rules, you can easily enforce input requirements and improve the user experience.
Key Features
- Intuitive and flexible input validation for various scenarios.
- Compatible with Bootstrap, utilizing the 'is-invalid' class for styling error messages.
- Pre-built validation rules include required fields, character limits, IP address validation, email validation, URL validation, numeric checks, date validation, and strong password requirements.
- Easy integration into your projects.
Installation
npm install acs-bootstrap-input-validator
Usage
import { InputValidator } from 'acs-bootstrap-input-validator';
// Initialize an instance of the InputValidator
const validator = new InputValidator();
// Example: Validate an input field for a required value
const inputElement = document.getElementById('myInput');
const validationParams = { required: true };
validator.validateInput(inputElement, validationParams);
Bug Fixes and Enhancements
We appreciate your support and feedback! Feel free to open an issue or contribute to the project.
Happy coding!