Skip to content

Commit

Permalink
Add data valid from 2024-03-04
Browse files Browse the repository at this point in the history
  • Loading branch information
baumerdev committed Feb 17, 2024
1 parent e9ad49b commit a1ab7f4
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 33 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2024-02-17 [v1.2400.0]

* Additionally includes data valid from 2024-03-04, removes data valid before 2023-12-04

## 2023-11-14 [v1.2303.0]

* Additionally includes data valid from 2023-12-04, removes data valid before 2023-09-04
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ numbers. It can be used standalone or as an enhancement of IBAN validators, like
If you need German bank data in your project, e.g., to auto-fill forms when a
user enters an IBAN, take a look at the side project [BankData-Germany](https://baumerdev.github.io/bankdata-germany/).

> _Version 1.2303.* includes data from 2023-09-04 to 2023-12-03, as well as from 2023-12-04 to 2024-03-03. Validation will be based on the data that is valid according to your system time (data changes at midnight CET on 2023-12-04)._
> _Version 1.2400.* includes data from 2023-12-04 to 2024-03-03, as well as from 2024-03-04 to 2024-06-02. Validation will be based on the data that is valid according to your system time (data changes at midnight CET on 2024-03-04)._
* [Installation](#installation)
* [Usage](#usage)
Expand Down
77 changes: 57 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ibantools-germany",
"version": "1.2303.0",
"version": "1.2400.0",
"description": "IBAN Validator and Generator for German Bank Accounts",
"author": "Markus Baumer <markus@baumer.dev>",
"repository": "https://github.com/baumerdev/ibantools-germany",
Expand Down
18 changes: 9 additions & 9 deletions src/__tests__/lib/data.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,17 @@ describe("methodForBLZ with next", () => {
});
});

describe("Change 2023-12-04", () => {
test("BLZ 10018000 is unknown before valid-from date", () => {
expect(methodForBLZ("10018000", new Date(0))).toEqual(null);
describe("Change 2024-03-04", () => {
test("BLZ 10012345 is unknown before valid-from date", () => {
expect(methodForBLZ("10012345", new Date(0))).toEqual(null);
});
test("BLZ 10018000 has method 00 at valid-from date", () => {
expect(methodForBLZ("10018000", new Date(nextValidDate))).toEqual("09");
test("BLZ 10012345 has method 09 at valid-from date", () => {
expect(methodForBLZ("10012345", new Date(nextValidDate))).toEqual("09");
});
test("BLZ 77069746 has method 94 before valid-from date", () => {
expect(methodForBLZ("77069746", new Date(0))).toEqual("88");
test("BLZ 30030889 has method 56 before valid-from date", () => {
expect(methodForBLZ("30030889", new Date(0))).toEqual("56");
});
test("BLZ 77069746 is unknown at valid-from date", () => {
expect(methodForBLZ("77069746", new Date(nextValidDate))).toEqual(null);
test("BLZ 30030889 has method 00 at valid-from date", () => {
expect(methodForBLZ("30030889", new Date(nextValidDate))).toEqual("00");
});
});
2 changes: 1 addition & 1 deletion src/data/current.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/next.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"add":{"09":[10018000,10019000,10320700,50034200]},"remove":{"88":[77069746],"06":[57091100],"09":[20220400]},"valid":"2023-12-04T00:00:00+0100"}
{"add":{"00":[30030889],"09":[10012345,50127700]},"remove":{"56":[30030889]},"valid":"2024-03-04T00:00:00+0100"}

0 comments on commit a1ab7f4

Please sign in to comment.