Releases: mikaello/norwegian-national-id-validator
Releases · mikaello/norwegian-national-id-validator
v3.1.1
v3.1.0
v3.0.0
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
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
returnedtype IdNumberType
before, but this is changed toenum 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 !