Skip to content

Releases: jonth93/AcsBootstrapInputValidator

v1.0.10

29 Nov 13:37
Compare
Choose a tag to compare

Version 1.0.10

Enhancements:

Added compiled version that can be included directly in the HTML header and a minified version.
Added unit tests against the compiled version.

Updates

Updated README to reflect new compiled version and usage.

v1.0.9

27 Nov 16:50
Compare
Choose a tag to compare

Version 1.0.9

Enhancements:

Added 'equalTo' validator

v1.0.8

24 Nov 16:34
Compare
Choose a tag to compare

Version 1.0.8

Enhancements:

Error message placement will now compensate for an input group that has a div with class input-group-append.

v1.0.7

24 Nov 16:09
Compare
Choose a tag to compare

Version 1.0.7

Bug Fixes:

Fixed error in readme file stating the incorrect usage.
Fixed incorrect version number in the inputValidator.js file.

v1.0.6

24 Nov 16:02
Compare
Choose a tag to compare

Version 1.0.6

Bug Fixes:

Fixed bug in index.js which resulted in the package not being loaded correctly

V1.0.4

24 Nov 15:48
Compare
Choose a tag to compare

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

24 Nov 11:01
Compare
Choose a tag to compare

Minor updates to package.json and readme.md. No core changes to library.

Full Changelog: v1.0.2...v1.0.3

v1.0.1

24 Nov 09:37
Compare
Choose a tag to compare

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!