Skip to content

Releases: mikaello/norwegian-national-id-validator

v3.1.1

18 Jan 17:00
Compare
Choose a tag to compare

Upgrade dev dependencies.

See all changes here v3.1.0...v3.1.1

v3.1.0

30 Jan 20:10
Compare
Choose a tag to compare

New features:

Expose birth date in object oriented API: #44

v3.0.0

27 Aug 20:42
Compare
Choose a tag to compare

No API-changes, but important bug fix of D-number validation. Some D-numbers that previously validated does not now, and some that previously did not validate do now (see also #30 (comment)). Thats the reason for new major version.

The actual fix was this commit: 7e4f153#diff-f41e9d04a45c83f3b6f6e630f10117fe

See Forskrift til folkeregisterloven, paragraph § 2-2-2 for more details on D-number.

v2.0.0

12 Jun 06:04
Compare
Choose a tag to compare

New features

  • New object oriented API:
    import { NorwegianId } from 'norwegian-national-id-validator';
    
    const validation = NorwegianId('29029600013');
    
    validation.isValid() // => true
    validation.isBirthNumber() // => true
    validation.isDNumber() // => false
    validation.isHNumber() // => false
    validation.isFhNumber() // => false
    validation.isMale() // => false
    validation.isFemale() // => true
    validation.age() // => 24

Breaking

  • The previously undocumented function idNumberType returned type IdNumberType before, but this is changed to enum IdNumberType.

Documentation

A massive documentation upgrade, including automatically generated API documentation: https://github.com/mikaello/norwegian-national-id-validator/tree/master/docs

Thanks to @cobraz !

v1.3.8

14 Mar 07:45
Compare
Choose a tag to compare

Upgrade dev dependencies (security update of acorn)

v1.3.7

14 Mar 07:44
Compare
Choose a tag to compare

Upgrade dev dependencies (jest/typescript)

v1.3.6

01 Nov 08:36
4a16d68
Compare
Choose a tag to compare

Fix for users with non expected timezone (#18)

v1.3.5

01 Oct 11:57
Compare
Choose a tag to compare

Upgrade of a vulnerable third party dependency (set-value).

v1.3.4

01 Oct 06:35
Compare
Choose a tag to compare

TypeScript-types and Flow-types are now bundled with the NPM-release (those files were previously ignored by a mistake with a misconfigured .npmignore).

v1.3.3

01 Oct 06:34
Compare
Choose a tag to compare

Upgrade of dev-dependencies (TypeScript and testing (Jest/mockdate))