Commit graph

1407 commits

Author SHA1 Message Date
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
Kristjan ESPERANTO
229dbac93e
Update copyright information (#15)
Some checks failed
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 (16.x) (push) Has been cancelled
2025-02-14 22:33:50 +01:00
Traines
7a1e513fa2 6.5.0
Some checks are pending
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 (16.x) (push) Blocked by required conditions
2025-02-13 23:34:39 +00:00
Traines
f1302b0a7b docs 2025-02-13 23:33:45 +00:00
Traines
177a3cab3f migrate and update loyaltyCard parsing from db-rest 2025-02-13 23:32:01 +00:00
Traines
71d1a4f1a9 refactor enrichStations, only load on first request 2025-02-13 22:16:22 +00:00
Traines
6ff406ea79 artificially filter for includeRelatedStations and direction 2025-02-13 21:53:49 +00:00
Traines
2a23e1ad9b make dbweb selectable in docker img 2025-02-13 19:41:46 +00:00
Traines
9314e59053 6.4.0
Some checks failed
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 (16.x) (push) Has been cancelled
2025-02-11 21:20:33 +00:00
Traines
69c098744a update docs 2025-02-11 21:16:23 +00:00
dabund24
c671e995cb
bahn.de boards (#12)
* parse bahn.de boards

* add optional chaining in line.js

* unit tests for bahn.de boards

* fix product check in line.js for bahn.de boards

* add integration tests for bahn.de boards

* allow letting hafas decide the amount of vias

* split dbweb and dbregioguide profiles; add db profile

* commit location-filter.js (forgot that in the last commit)

* simplify how db profile works

* remove `ezGleis` from coalesce for scheduled platform

* un-break parsing of remarks

* determine fahrtNr by removing all non-digits

* employ enrichStations for board stop property

* prevent timeouts in dbweb e2e test from calling `end()` twice

* use promises in dbweb e2e tests when waiting for enrichStations to work

* replace vias option with stopovers option for dbweb profile; enrich stations when only name is known

* change dbweb-departures test covering enrichStation feature for stop and stopovers

* remove check for not existing option

* move verkehrsmittel.name in front of verkehrsmittel.langText when parsing name in line.js
2025-02-09 00:46:21 +01:00
Traines
1e7977a8bb linting... 2025-01-20 20:32:38 +00:00
Traines
ff559c83dd version bump, docs 2025-01-20 20:30:58 +00:00
Traines
76d6121f88 trim returned HAFAS journey ids (for better compat with hafas-client/raw HAFAS API) 2025-01-20 20:06:29 +00:00
Traines
206e709e6a adapt openapi.yaml
[skip ci]
2025-01-15 02:19:10 +00:00
Traines
7d10f409ef fix links
[skip ci]
2025-01-15 02:07:13 +00:00
Traines
179ada6f08 openapi spec
[skip ci]
2025-01-15 02:04:20 +00:00
Traines
4c8c503e48 version bump
[skip ci]
2025-01-14 22:36:03 +00:00
Traines
3c7227635a docs fixes
[skip ci]
2025-01-14 22:35:19 +00:00
Traines
22c839847f updat fixture for db poly endpoint 2025-01-14 22:24:53 +00:00
Traines
1b0858a253 update docs 2025-01-14 22:16:09 +00:00
Traines
a59a3d78dc add back hafas-client docs 2025-01-14 21:15:30 +00:00
Traines
911a6d371e db: support for polylines 2025-01-14 21:12:23 +00:00
Traines
2b55f7148f support db regio-guide trip id/endpoint 2025-01-14 21:07:23 +00:00
Traines
715541f060 refactor 2025-01-14 18:13:58 +00:00
Traines
70f4cdb2b0 linting 2025-01-11 23:38:00 +00:00
Traines
bb692f4bc9 use proper correlation id 2025-01-11 23:37:07 +00:00
Traines
977da80885 cleanup 2025-01-11 21:14:50 +00:00
Traines
01b95e74f4 add back cli 2025-01-11 20:55:46 +00:00
Traines
911ac17510 add priority where available as int (dbnav) 2025-01-11 19:08:52 +00:00
Traines
32792507ba pretty-print fixtures 2025-01-11 19:08:29 +00:00
Traines
60656b0119 db: create fake walking leg for intra-station transfer 2025-01-11 18:39:32 +00:00
Traines
232893f2dc dumps 2025-01-11 18:15:13 +00:00
Traines
41feb41b5a version bump 2025-01-10 18:59:32 +00:00
Traines
63bc542b1c improve line details (fahrtNr, name, id), add tests 2025-01-10 18:55:14 +00:00
Traines
a624e62172 disable enrichStations for tests 2025-01-10 18:52:16 +00:00