Skip to content

Releases: ContaAzul/creditcard.js

v3.0.3

26 Jan 19:17
Compare
Choose a tag to compare

Bug Fixes

  • switch message to right error message (#128) (d01a562)

v3.0.2

26 Jan 14:35
Compare
Choose a tag to compare

v3.0.1

26 Jan 10:02
Compare
Choose a tag to compare

Bug Fixes

v3.0.0

20 Jan 14:46
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • version 3 has a bunch of changes to convert this lib into a more functional approach.

⚠️ BREAKING CHANGES

  • The way to use creditcard.js has been changed.

    See the details...

    Before:

    var CreditCard = require('creditcard.js');
    const c = new CreditCard();
    c.isValid('4916108926268679'); 
    c.isExpirationDateValid('02', '2027'); 
    c.isSecurityCodeValid('4556603578296676', '250'); 
    c.getCreditCardNameByNumber('4539578763621486');

    And now:

    import {
      isValid,
      isExpirationDateValid
      isSecurityCodeValid,
      getCreditCardNameByNumber
    } from 'creditcard.js'
    isValid('4916108926268679');
    isExpirationDateValid('02', '2027');
    isSecurityCodeValid('4916108926268679', '489');
    getCreditCardNameByNumber('4916108926268679');
  • Removed bower support

  • Removed browser use support

See more details on website: https://contaazul.github.io/creditcard.js

Added

  • Add prettier #80
  • Add rollup #64
  • New credit card types supported:
    • Banescard
    • Maxxvan
    • Cabal
    • JCB

Changed

  • Export functions instead of a constructor #78
  • Change Karma to Jest for tests #77
  • Change CI from Travis to Github Actions #105
  • New website #110

Removed

  • Remove bower support #74
  • Remove directory /dist #62
  • Removed browser use support

v2.1.6

14 Nov 17:41
e78ab94
Compare
Choose a tag to compare

Refers to changes made on PR #87 fixing dependencies vulnerability issues.

v2.1.5

25 May 12:17
Compare
Choose a tag to compare

Switch string regex to literal regex #76

v2.1.3

06 Mar 12:10
b26ca02
Compare
Choose a tag to compare

Fix security vulnerability CVE-2017-18214 #60

v2.1.2

24 Jul 11:56
Compare
Choose a tag to compare

Add new bins to cover all discover prefixes. Resolves #51

v2.1.1

11 Jul 13:03
Compare
Choose a tag to compare

Removed luhn validation of get brand method #53
Sometimes, we need get brand just by first four numbers with 12 zeros.

Fix expiration method #52
When a month has passed of current year, the method should return false.

v2.1.0

22 Aug 17:56
Compare
Choose a tag to compare
  • Fix date validation when month or year is empty (#46)
  • Add new bins to MasterCard (#44)