Commit graph

1442 commits

Author SHA1 Message Date
Traines
c2216120c9 set db profile to old dbnav domain as an alternative, since the new domain
Some checks are pending
test / lint-and-spellcheck (push) Waiting to run
test / unit-tests (18.x) (push) Waiting to run
test / unit-tests (20.x) (push) Waiting to run
test / unit-tests (22.x) (push) Waiting to run
test / integration-tests (18.x) (push) Waiting to run
test / integration-tests (20.x) (push) Waiting to run
test / integration-tests (22.x) (push) Waiting to run
test / e2e-tests (18.x) (push) Blocked by required conditions
might have more agressive blocking
2025-10-21 20:54:11 +00:00
Traines
bdbf4f3761 fix ticket parsing 2025-10-21 20:37:50 +00:00
Traines
a1ab95c249 linting... 2025-10-21 18:33:30 +00:00
Traines
691f07b331 remove arrival time check for refreshJourney since it seems to change for older journeys 2025-10-21 18:30:06 +00:00
Traines
13351e3977 skip weird failing test since dbweb is basically unusable anyways 2025-10-21 18:17:31 +00:00
Traines
2f65f3d05d discontinue dbbahnhof, update deps 2025-10-21 18:05:29 +00:00
Traines
f31f56c00d update dbnav endpoints, fix tests 2025-10-21 17:40:14 +00:00
Traines
31ef3ad56a new dumps 2025-10-21 16:31:22 +00:00
Traines
5ac43bcfba temporarily disable tests on publish
Some checks are pending
test / lint-and-spellcheck (push) Waiting to run
test / unit-tests (18.x) (push) Waiting to run
test / unit-tests (20.x) (push) Waiting to run
test / unit-tests (22.x) (push) Waiting to run
test / integration-tests (18.x) (push) Waiting to run
test / integration-tests (20.x) (push) Waiting to run
test / integration-tests (22.x) (push) Waiting to run
test / e2e-tests (18.x) (push) Blocked by required conditions
2025-10-21 14:16:55 +00:00
Traines
5a2e4f5d13 hotfix for dbnav compat 2025-10-21 14:10:38 +00:00
McToel
2b1e816c7f
Bumped application version (#34) 2025-10-21 15:58:57 +02:00
Traines
b2d9a4e53e linting
Some checks failed
test / lint-and-spellcheck (push) Has been cancelled
test / unit-tests (18.x) (push) Has been cancelled
test / unit-tests (20.x) (push) Has been cancelled
test / unit-tests (22.x) (push) Has been cancelled
test / integration-tests (18.x) (push) Has been cancelled
test / integration-tests (20.x) (push) Has been cancelled
test / integration-tests (22.x) (push) Has been cancelled
test / e2e-tests (18.x) (push) Has been cancelled
2025-08-25 20:18:26 +00:00
Traines
8e9d6ea67a switch db profile to db nav for boards (regioguide deprecation) 2025-08-25 19:55:25 +00:00
Traines
d15369406d v6.9.0
Some checks failed
test / lint-and-spellcheck (push) Has been cancelled
test / unit-tests (18.x) (push) Has been cancelled
test / unit-tests (20.x) (push) Has been cancelled
test / unit-tests (22.x) (push) Has been cancelled
test / integration-tests (18.x) (push) Has been cancelled
test / integration-tests (20.x) (push) Has been cancelled
test / integration-tests (22.x) (push) Has been cancelled
test / e2e-tests (18.x) (push) Has been cancelled
2025-07-14 17:52:52 +00:00
Marius Angelmann
86f2302ad4
Add BMIS number support for business customer rates (#30)
* Add BMIS number support for business customer rates

Introduces a new `bmisNumber` option to journey requests, allowing bahn.business customers to access corporate rates by providing their 7-digit BMIS number. Adds documentation and a `createBusinessClient` helper for convenience. The request payload now includes a `firmenZugehoerigkeit` object when a BMIS number is set.

* Update cspell.config.json

Update cspell.config.json to fix spell check issues in PR #30
2025-07-14 19:48:41 +02:00
Traines
b59d7b3084 fix docs
[skip ci]
2025-04-27 17:13:10 +00:00
Traines
db4c03054a cspell...
Some checks failed
test / lint-and-spellcheck (push) Has been cancelled
test / unit-tests (18.x) (push) Has been cancelled
test / unit-tests (20.x) (push) Has been cancelled
test / unit-tests (22.x) (push) Has been cancelled
test / integration-tests (18.x) (push) Has been cancelled
test / integration-tests (20.x) (push) Has been cancelled
test / integration-tests (22.x) (push) Has been cancelled
test / e2e-tests (18.x) (push) Has been cancelled
2025-04-11 21:05:18 +00:00
Traines
eac21d188b 6.8.1 2025-04-11 20:59:29 +00:00
Traines
ad09f8b1be dticket support 2025-04-11 20:59:06 +00:00
Traines
c4d0a55d41 docs
Some checks failed
test / lint-and-spellcheck (push) Has been cancelled
test / unit-tests (18.x) (push) Has been cancelled
test / unit-tests (20.x) (push) Has been cancelled
test / unit-tests (22.x) (push) Has been cancelled
test / integration-tests (18.x) (push) Has been cancelled
test / integration-tests (20.x) (push) Has been cancelled
test / integration-tests (22.x) (push) Has been cancelled
test / e2e-tests (18.x) (push) Has been cancelled
2025-03-22 00:56:43 +00:00
Traines
29aab87cdf add dbbahnhof 2025-03-22 00:39:43 +00:00
Traines
883eb8c8de refactor 2025-03-21 21:13:20 +00:00
Traines
b20cf1060a add dbris, moreStops param 2025-03-21 20:49:38 +00:00
Traines
b887c674d4 fix param parsing for refreshJourney
Some checks failed
test / lint-and-spellcheck (push) Has been cancelled
test / unit-tests (18.x) (push) Has been cancelled
test / unit-tests (20.x) (push) Has been cancelled
test / unit-tests (22.x) (push) Has been cancelled
test / integration-tests (18.x) (push) Has been cancelled
test / integration-tests (20.x) (push) Has been cancelled
test / integration-tests (22.x) (push) Has been cancelled
test / e2e-tests (18.x) (push) Has been cancelled
2025-03-20 10:58:32 +00:00
Traines
b3e0e764e2 update db-hafas-stations
Some checks failed
test / lint-and-spellcheck (push) Has been cancelled
test / unit-tests (18.x) (push) Has been cancelled
test / unit-tests (20.x) (push) Has been cancelled
test / unit-tests (22.x) (push) Has been cancelled
test / integration-tests (18.x) (push) Has been cancelled
test / integration-tests (20.x) (push) Has been cancelled
test / integration-tests (22.x) (push) Has been cancelled
test / e2e-tests (18.x) (push) Has been cancelled
2025-03-19 00:39:01 +00:00
Traines
2ea47f7792 disable some more live e2e tests 2025-03-19 00:38:48 +00:00
Traines
6c2081c14e fix spelling and tests...
Some checks failed
test / lint-and-spellcheck (push) Has been cancelled
test / unit-tests (18.x) (push) Has been cancelled
test / unit-tests (20.x) (push) Has been cancelled
test / unit-tests (22.x) (push) Has been cancelled
test / integration-tests (18.x) (push) Has been cancelled
test / integration-tests (20.x) (push) Has been cancelled
test / integration-tests (22.x) (push) Has been cancelled
test / e2e-tests (18.x) (push) Has been cancelled
2025-03-15 23:25:48 +00:00
Traines
f741a13670 docs 2025-03-15 23:15:40 +00:00
Traines
bcaad526c7 disable blocked endpoints tests for now 2025-03-15 22:54:12 +00:00
Traines
162b946bac support for bestprice, notOnlyFastRoutes, serviceDays, fix param default handling 2025-03-15 22:44:08 +00:00
Traines
14b80dbf33 update deps
[skip ci]
2025-03-14 17:28:14 +00:00
Traines
1927f98906 fix station enrichment 2025-03-14 17:19:48 +00:00
Traines
0ef3935a35 update db-hafas-stations, bump version 2025-03-14 16:57:38 +00:00
Traines
b04a671b50 improve duration explanation 2025-03-14 16:57:02 +00:00
Traines
9975a6c9ac more reliable setup of proxy agent
Some checks failed
test / lint-and-spellcheck (push) Has been cancelled
test / unit-tests (18.x) (push) Has been cancelled
test / unit-tests (20.x) (push) Has been cancelled
test / unit-tests (22.x) (push) Has been cancelled
test / integration-tests (18.x) (push) Has been cancelled
test / integration-tests (20.x) (push) Has been cancelled
test / integration-tests (22.x) (push) Has been cancelled
test / e2e-tests (18.x) (push) Has been cancelled
2025-03-08 23:12:36 +00:00
Traines
960371e2ec v6.6.1
Some checks failed
test / lint-and-spellcheck (push) Has been cancelled
test / unit-tests (18.x) (push) Has been cancelled
test / unit-tests (20.x) (push) Has been cancelled
test / unit-tests (22.x) (push) Has been cancelled
test / integration-tests (18.x) (push) Has been cancelled
test / integration-tests (20.x) (push) Has been cancelled
test / integration-tests (22.x) (push) Has been cancelled
test / e2e-tests (18.x) (push) Has been cancelled
2025-03-06 20:22:05 +00:00
Traines
88acdd1620 enrichStations fix 2025-03-06 20:18:00 +00:00
dabund24
25cbb288ca
Fix dbnav time zone bug (#25)
* fix dbnav time zone bug

* test fix of dbnav time zone bug

* exclude `test/parse/dbnav-journey.js` from spell check
2025-03-06 21:13:08 +01:00
Kristjan ESPERANTO
a6e84be2df Add spell check to CI
Some checks are pending
test / lint-and-spellcheck (push) Waiting to run
test / unit-tests (18.x) (push) Waiting to run
test / unit-tests (20.x) (push) Waiting to run
test / unit-tests (22.x) (push) Waiting to run
test / integration-tests (18.x) (push) Waiting to run
test / integration-tests (20.x) (push) Waiting to run
test / integration-tests (22.x) (push) Waiting to run
test / e2e-tests (18.x) (push) Blocked by required conditions
2025-03-06 16:13:56 +01:00
Kristjan ESPERANTO
de63bf0a37 Fix typos found with cspell 2025-03-06 16:13:56 +01:00
Kristjan ESPERANTO
040a8f44e4 Add cspell 2025-03-06 16:13:56 +01:00
Traines
6b67a77823 v6.6.0
Some checks failed
test / lint (push) Has been cancelled
test / unit-tests (18.x) (push) Has been cancelled
test / unit-tests (20.x) (push) Has been cancelled
test / unit-tests (22.x) (push) Has been cancelled
test / integration-tests (18.x) (push) Has been cancelled
test / integration-tests (20.x) (push) Has been cancelled
test / integration-tests (22.x) (push) Has been cancelled
test / e2e-tests (18.x) (push) Has been cancelled
2025-03-02 13:39:35 +00:00
Kristjan ESPERANTO
debb45a929
Update dependencies (#21) 2025-03-02 14:32:29 +01:00
Kristjan ESPERANTO
53b385a865
Replace lodash by modern JavaScript functions (#20)
Some checks are pending
test / lint (push) Waiting to run
test / unit-tests (18.x) (push) Waiting to run
test / unit-tests (20.x) (push) Waiting to run
test / unit-tests (22.x) (push) Waiting to run
test / integration-tests (18.x) (push) Waiting to run
test / integration-tests (20.x) (push) Waiting to run
test / integration-tests (22.x) (push) Waiting to run
test / e2e-tests (18.x) (push) Blocked by required conditions
* Replace lodash by built-in functions

* .flatMap -> .flat
2025-03-01 17:30:58 +01:00
Traines
185870db3d cleanup
Some checks failed
test / lint (push) Has been cancelled
test / unit-tests (18.x) (push) Has been cancelled
test / unit-tests (20.x) (push) Has been cancelled
test / unit-tests (22.x) (push) Has been cancelled
test / integration-tests (18.x) (push) Has been cancelled
test / integration-tests (20.x) (push) Has been cancelled
test / integration-tests (22.x) (push) Has been cancelled
test / e2e-tests (18.x) (push) Has been cancelled
2025-02-25 12:56:29 +00:00
Traines
16829f839c add back HTTP_PROXY support 2025-02-25 12:52:50 +00:00
Traines
9fe4972d2b fix includeRelatedStations 2025-02-25 12:23:26 +00:00
McToel
1aeb246622
Browser compatibility (#17)
* Removed Proxy and local address code

* replaced node crypto with web crypto

* Replaced require with static imports

* removed commented out imports

* import db-hafas-stations on demand

* trying to handle undefined envs

* Less optimistic variable handling

* cleanup

* Small browser docs addition

* Linting

* No async in new Promise

* Bumped eslint to v9 and ecmaScript to 2025

* removed duplicated eslint config

* Bumped minimal node version to node 18

* Added node 24

* using math.random instead of webcrypto and reintroduced randomizeUserAgent

* Oh no node 24 is actually not released yet

* removed temp debug file
2025-02-25 13:21:26 +01:00
Kristjan ESPERANTO
6d1d0c626f Upgrade ESLint and fix linting issues
Some checks failed
test / lint (push) Has been cancelled
test / unit-tests (16.x) (push) Has been cancelled
test / unit-tests (18.x) (push) Has been cancelled
test / unit-tests (20.x) (push) Has been cancelled
test / unit-tests (22.x) (push) Has been cancelled
test / integration-tests (16.x) (push) Has been cancelled
test / integration-tests (18.x) (push) Has been cancelled
test / integration-tests (20.x) (push) Has been cancelled
test / integration-tests (22.x) (push) Has been cancelled
test / e2e-tests (18.x) (push) Has been cancelled
2025-02-17 21:41:20 +01:00
Kristjan ESPERANTO
afa99b0742
Review test workflow (#16)
Some checks are pending
test / lint (push) Waiting to run
test / unit-tests (16.x) (push) Waiting to run
test / unit-tests (18.x) (push) Waiting to run
test / unit-tests (20.x) (push) Waiting to run
test / unit-tests (22.x) (push) Waiting to run
test / integration-tests (16.x) (push) Waiting to run
test / integration-tests (18.x) (push) Waiting to run
test / integration-tests (20.x) (push) Waiting to run
test / integration-tests (22.x) (push) Waiting to run
test / e2e-tests (18.x) (push) Blocked by required conditions
* Run linting only once

* Update actions/cache to v4

* Run e2e-tests with the same matrix as the others

* Change cache keys to avoid cache collisions

* Run e2e-tests only once
Since they go against the live DB APIs #16
2025-02-17 19:09:14 +01:00