All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Removed DNI from the list of supported id docs for Spain (use NIF instead)
- Added VAT validation for: Colombia.
- Added passport validation for the following countries: Brazil, Canada, Mexico, United States.
- Added VAT number validation for the following countries: Brazil, Mexico.
- Added check digit validation for Greek VAT numbers.
- Added passport and VAT number validation for the United Kingdom.
- Added support for VAT and passport number for the following countries: Lithuania, Luxembourg, Malta, Netherlands, Poland, Portugal, Romania, Slovakia, Slovenia and Sweden.
- Added NIE as possible VAT number in Spain ("ES" + nie_number)
- Fixed checksum check for Finnish VAT number.
- Fixed checksum check for Luhn algorithm.
- Fixed checksum validation for some NIFs in Spain.
- Fixed VAT number validation for Germany.
- Fixed check digit/number validation for Spanish NIF/CIF.
- Added company NIF validation for Spain (previously CIF).
- Update README.md to add clarification that VAT is is validated with
isValidVat
, notisValidIdDoc
.
- Fixed error in README.md in
supportedCountriesVat
function.
- Change
supportedCountries
tosupportedCountriesIdDoc
. - Update README.md with updated function name.
- Add
isValidVat
andsupportedCountriesVat
functions.
- Change
isValidEUVat
toisValidViesVat
- Remove "vat" as an id doc type for
isValidIdDoc
function. - Updated README.md to include information about the new functions.
- Removed examples from README.md.
- Add
supportedCountries
andsupportedIdDocsByCountry
functions.
- Updated README.md to include information about the new functions.
- Fixed main entry point in package.json.
- Added support for VAT and passport number for the following country: Latvia.
- Updated README.md with new supported countries and identification document types.
- Added support for VAT and passport number for the following country: Ireland.
- Updated README.md with new supported countries and identification document types.
- Added support for VAT and passport number for the following country: Hungary.
- Updated README.md with new supported countries and identification document types.
- Added support for VAT and passport number for the following country: Greece.
- Added a new function to check the validity of VAT numbers for EU countries using the VIES API:
isValidEUVat
.
- Updated README.md with new supported countries and identification document types.
- Updated README.md with new function
isValidEUVat
.
- Added support for VAT (with checksum validation) and passport number for the following country: Finland.
- Updated README.md with new supported countries and identification document types.
- Added support for VAT and passport number for the following country: Estonia.
- Updated README.md with new supported countries and identification document types.
- Added support for VAT and passport number for the following country: Denmark.
- Updated README.md with new supported countries and identification document types.
- Added support for VAT and passport number for the following country: Czech Republic.
- Updated README.md with new supported countries and identification document types.
- Added support for VAT and passport number for the following country: Republic of Cyprus.
- Updated README.md with new supported countries and identification document types.
- Added support for VAT and passport number for the following country: Croatia.
- Updated README.md with new supported countries and identification document types.
- Added support for VAT and passport number for the following country: Bulgaria.
- Updated README.md with new supported countries and identification document types.
- Added support for VAT and passport number for the following country: Belgium.
- Updated README.md with new supported countries and identification document types.
- Added support for VAT and passport number for the following country: Austria
- Updated README.md with new supported countries and identification document types.
- Added support for Portuguese: Citizen Card (Cartão de Cidadão), NIF (Número de Identificação Fiscal) VAT and Passport validation.
- Updated README.md with new supported countries and identification document types.
- Added support for Italian: Fiscal Code (Codice Fiscale), VAT and Passport validation.
- Error when validating DE id documents.
- Updated README.md with new supported countries and identification document types.
- Added support for German: Identity Card, VAT and Passport validation.
- Updated README.md with new supported countries and identification document types.
- Error when validating FR id documents.
- If the last parameter is not passed, isValidIdDoc checks if the passed id doc is valid for any of the supported id docs for the country.
- Update README with optional last parameter in isValidIdDoc.
- Added support for French VAT (Value Added Tax ID) validation.
- Added support for French Passport validation.
- Added support for French CNI (Carte Nationale d'Identité) validation.
- Added CHANGELOG.md.
- Updated README.md with new supported countries and identification document types.