Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

v2 Release

Compare
Choose a tag to compare
@dhershman1 dhershman1 released this 22 Feb 19:34
· 42 commits to master since this release

Breaking Changes

  • Removed the ability to send single strings into the main function (call the individual functions)
  • Removed the ability to send partial objects to the main function
  • Changed the expected card object property name from expire to date

New

  • number which can be used to validate a credit card number
  • cvn which can be used to validate a credit card cvn/security code
  • expired which can be used to validate a credit cards expiration date
  • matches which can be used to see if a cvn and a card number match (the cvn length matches the card type)
  • validation which is the core functionality and only accepts an object
  • A match property was added to the results that says if it failed by a rule or if it failed matching
  • Type Errors have been added when the correct type of value isn't provided (String or Number)
  • Converted to a webpack build along with automation scripts for docs, and building files
  • README has been updated with all the needed changes

Fixes

  • Improved the overall structure of the code which allowed removal of a lot of internals
  • Cleaner organization now that the module isn't supporting so many different types