Skip to content

Releases: Oops-AB/swedish-pnr

Add property `gender`

30 Sep 10:42
Compare
Choose a tag to compare

A person's gender is encoded in the penultimate digit of the identity number. This is now reflected in the API by the addition of the gender property.

Update: publish as 1.1.0 instead of 1.1.

Fix bug related to coordination numbers

20 Jun 15:58
Compare
Choose a tag to compare

When deducing the century of a coordination number the normalized form must still be a coordination number. I.e., the day component is still increased by 60.

An example from the test cases (with a reference date of 2017-12-12): the coordination number 171270-0002 should normalize to 20171270-0002. Before this fix it was instead normalized to 20171210-0002.

A note on getting started

15 Jun 07:27
Compare
Choose a tag to compare

Just an update to the README on how to use the library. The bare minimum really.

Expose parse errors

03 Jun 12:13
25273d9
Compare
Choose a tag to compare

Expose parse errors so that callers can tell different errors apart.

Hello, World!

03 Jun 11:02
875718a
Compare
Choose a tag to compare

Feature complete, i.e, should handle all Swedish personal identity numbers thrown at it. Needs a tad more documentation.