nfsfu234-form-validation
Advanced tools
Changelog
[3.0.0-beta] - 2024-08-25
ErrorMessage
and ErrorHandler
interfaces for clearer error insights, allowing errors to be handled as HTML elements, text, or null.submit
and validate
methods to return a Promise resolving to an ErrorMessageInterface
, providing detailed feedback on validation results.js-required
class to nfsfu234-fv-required
and the jsSubmit
ID to nfsfu234-fv-form
to maintain a consistent naming convention.Changelog
[2.4.4] - 2024-03-01
šØ Repository Transfer: This repository has been moved from nforshifu234dev's personal account to the NFSFU234FormValidation organization. You can now access it under the NFSFU234FormValidation organization by clicking here.
CODE_OF_CONDUCT
file to promote a welcoming and inclusive community.CONTRIBUTING.md
file to provide updated guidelines for contributors.LICENSE
file to reflect the project's license.Package Information
file to ensure accurate information.web
folder has been removed and transferred to its own repository. You can now find it in its dedicated repository here.Changelog
[2.4.3] - 2024-01-25
When utilizing the JsDelivr CDN URL
to access the NFSFU234FormValidation Library
with the @latest
tag, be aware that, in some instances, it might not include the latest updates. To ensure the inclusion of the most recent code, consider using the specific version number (e.g., 2.4.3).
This observation was made during the release of version 2.4.2
.
redirect()
function, used for redirecting a user to a specific url or pathcopy-webpack-plugin
was updated to v12.0.2
from v11.0.0
css-minimizer-webpack-plugin
was updated to v6.0.0
from 5.0.1
Modified the _getFormDetails()
function
formValidator.getFormDetails is not a function
. This was due to a bundling error during the rlease of v2.3.2
index
variable when selcting textareas, and select tags. It was returning errors in previous versions.Modified the _loading()
function
loading()
function to select inut feilds with the type search
Modified the submit()
function
else
part when checking if a button
exists. The console error was a mess.Modified the validateInput()
function
date
type in any input feild.url
and is required
Changelog
[2.3.2] - 2023-11-27
verifyPassword()
function._togglePasswordVisibility()
function to ensure more flexiblity to icon display during toggling more than one password input feild_getFormDetails()
. In the previous version, only inputs feilds were affected with the updates but now all for elements inputs
, textareas
, select
.Changelog
[2.3.1] - 2023-11-25
You can now follow NFSFU234 Form Validation Library
on X (Formerly Twitter) and Instagram. The username is nf_validator234
.
Also you can send an email to nf.validator234@gmail.com
verifyPassword(). Asynchronously compares two passwords, supporting both hashed and plaintext formats. More information in the ReadMe file.
getFormDetails(). It gets the values of all form elements in a form. Be it inputs, textareas, selects or even checkboks & radio elements. Find More information in the ReadMe file num
Updated the babel
, jest
and webpack
packages to versions 7.23.3
, 29.7.0
, and 5.89.0
respectively
New instructions to install NFSFU234 Form Validation Library via npm
, yarn
in the Installation Section
Updated the documentation for the illustration for how to use the generateRandomPassword()
function . Removed the parameters from the illustration because this function does not allow parameters yet.
Updated the isURL()
function to properly check and validate URLS.
Updated the private function , _getFormDetails()
function. The function could only get form data based on only if the form element has the data-attr-name
attribute. Then i thought to myself since a lot of forms use the name attribute why not add that attribute to the list. Find out more information in the getFormDetails()
function that has been made visible
Changelog
[2.3.0-patch] - 2023-10-01
isOnline()
and reset()
is not working in the initial v2.3.0
.