Skip to content

v2.0.0-0

Pre-release
Pre-release
Compare
Choose a tag to compare
@enylin enylin released this 26 May 22:55
· 1 commit to main since this release
b599313

What's Changed

Bug Fixes

  • api: remove redundant national id and ui number functions to simplify codebase (8c98911)
  • ban: rename GUI number to BAN to align with official government terminology (7e461de)
  • cdc: rename isCitizenDigitalCertificateNumber to isCdcNumber to simplify API call (9b7dc6a)
  • donate-code: rename isEInvoiceDonateCode to isDonateCode to simplify API call (4f6e105)
  • eslint: fix typescript type indent rules conflict issue between prettier and eslint (77860c8)
  • gui: use object as function parameter to extend options (8ed1bb7)
  • mobile-barcode: rename isEInvoiceCellPhoneBarcode to align with official government terminology (2cff03c)
  • npm: update dependencies to address security vulnerabilities (64a1060)
  • remove function aliases (af9e339)
  • rename options key name (79fabe9)
  • use shorter names for functions (16577ee)
  • webpack: fix critical dependency warning (12b530f)

Features

  • gui: use new format rule as default validation rule (ed45d89)
  • id-card-number: support more validating options in new ui numbers (068bb1e)
  • national-id: add isIdCardNumber function (1cf788a)

BREAKING CHANGES

  • donate-code: rename isEInvoiceDonateCodeValid to isDonateCode
  • mobile-barcode: rename isEInvoiceCellPhoneBarcodeValid to isMobileBarcode
  • cdc: rename isCitizenDigitalCertificateNumberValid to isCdcNumber
  • ban: rename isGuiNumberValid to isBan
  • api: Remove isNationalIdentificationNumberValid and isResidentCertificateNumberValid
  • remove "valid" part from function names
  • all function aliases are removed
  • gui: should pass object instead of boolean to use new format
  • gui: use new rule as default rule

Full Changelog: v1.5.0...v2.0.0-0