Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split parseLine into parseProduct & parseLine #275

Draft
wants to merge 49 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
4506ebb
Node 16+ 💥💚
derhuerst Dec 29, 2021
7b6de4e
docs: .then/.catch -> await 📝
derhuerst Dec 29, 2021
d05cfb0
parseWarning: {from,to}Loc -> {from,to}Location 💥✅
derhuerst Dec 29, 2021
5e9444c
add profile.randomizeUserAgent flag 📝
derhuerst Dec 29, 2021
ddf63d5
departures{GetPasslist,StbFltrEquiv}: default to false 💥
derhuerst Dec 29, 2021
ea162ff
BVG: remove vbb-parse-line 💥✅
derhuerst Apr 28, 2022
6d6929b
BVG: don't convert IDs 💥✅
derhuerst Apr 28, 2022
d72bad8
BVG: remove vbb-stations 💥✅
derhuerst Apr 28, 2022
7067b7b
BVG: don't shorten names 💥✅
derhuerst Apr 28, 2022
dc6d88f
VBB: don't convert 7/9 <-> 12 digit IDs 💥✅
derhuerst Dec 29, 2021
64bd8c2
VBB: don't shorten stop/station names 💥✅
derhuerst Dec 29, 2021
db59b58
VBB: remove vbb-parse-ticket, adapt to new response format 💥
derhuerst Dec 29, 2021
0f5ff62
VBB: remove vbb-parse-line 💥✅
derhuerst Dec 29, 2021
85f98e8
VBB/BVG E2E/integration tests: refactor shared test utils ✅
derhuerst Apr 27, 2022
e5435e1
VBB E2E/integration tests: update mocked when & fixtures ✅
derhuerst Apr 28, 2022
b883a98
reachableFrom: don't retry 💥
derhuerst Dec 29, 2021
6fb58b7
use more async/await 💥✅
derhuerst Dec 29, 2021
271096d
lib/request: use async/await, simplify error handling
derhuerst May 3, 2022
220c2e7
fetch-ponyfill & pinkie-promise -> cross-fetch 💥
derhuerst Oct 24, 2022
205207b
rework error handling 💥✅📝
derhuerst May 3, 2022
51f1b82
handle METHOD_NA/NO_MATCH/PARAMETER errors ✅
derhuerst May 6, 2022
73f1baa
arrivals/departures: return obj with realtimeDataUpdatedAt & results 💥✅📝
derhuerst Dec 29, 2021
00d30db
journeys/refreshJourney/journeysFromTrip: realtimeDataFrom -> realtim…
derhuerst Dec 29, 2021
9986096
refreshJourney: return journey as field 💥✅📝
derhuerst Apr 28, 2022
387767f
trip/tripsByName: realtimeDataFrom -> separate realtimeDataUpdatedAt …
derhuerst Dec 29, 2021
13c9cff
DB E2E test: cleanup ✅
derhuerst Apr 28, 2022
883366c
radar: realtimeDataFrom -> realtimeDataUpdatedAt 💥✅📝
derhuerst Dec 29, 2021
c19d124
reachableFrom: realtimeDataFrom -> realtimeDataUpdatedAt 💥✅📝
derhuerst Dec 29, 2021
ebca65e
remarks: realtimeDataFrom -> realtimeDataUpdatedAt 💥✅📝
derhuerst Dec 29, 2021
434efae
lines: realtimeDataFrom -> realtimeDataUpdatedAt 💥✅📝
derhuerst Dec 29, 2021
61edc00
serverInfo: fix realtimeDataUpdatedAt parsing 🐛
derhuerst Jun 18, 2022
d25711b
integration tests: update mocked when & fixtures ✅
derhuerst May 3, 2022
0dc88c9
trip: remove lineName parameter, update integration test fixtures 💥✅📝
derhuerst Dec 29, 2021
32a3899
parseTrip: remove trip.reachable 💥✅
derhuerst Jan 4, 2022
8c46d59
parseLine: don't trim adminCode 💥✅
derhuerst Jan 4, 2022
0aeca0c
request: pass whole req body into transformReqBody 🐛✅
derhuerst Jan 4, 2022
12426f7
luxon@2, p-retry@5, p-throttle@5
derhuerst May 9, 2022
965bad7
eslint@8, tap@16
derhuerst May 9, 2022
4d3d26b
convert to ESM 💥📝
derhuerst May 7, 2022
d40cd9b
DB: rename regionalExp product to regionalExpress 💥✅
derhuerst May 21, 2022
be4996e
DB: use `REALTIME` routing mode
derhuerst Jun 1, 2022
bae477c
add "migrating to hafas-client@6" guide 📝
derhuerst Apr 27, 2022
727301b
minor docs fixes 📝
derhuerst Jun 18, 2022
f2e38a4
remove integration test fixtures ✅
derhuerst Jun 18, 2022
0dcb05f
integration test mocking: replayer -> Polly.js ✅
derhuerst Jun 18, 2022
47f170d
integration tests: update mocked when & re-add fixtures ✅
derhuerst Jun 18, 2022
f295529
remove SBB profile 💥
derhuerst Aug 23, 2021
1521198
parseProduct [wip]
derhuerst Jun 29, 2022
2b664a7
WIP: pid
derhuerst Oct 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"env": {
"commonjs": true,
"es6": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
Expand All @@ -11,7 +10,8 @@
},
"ignorePatterns": ["node_modules", "*example.js"],
"parserOptions": {
"ecmaVersion": 2018
"ecmaVersion": 2021,
"sourceType": "module"
},
"rules": {
"no-unused-vars": [
Expand Down
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x, 18.x]
node-version: [16.x, 18.x]
steps:
- name: checkout
uses: actions/checkout@v2
Expand All @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x, 18.x]
node-version: [16.x, 18.x]
steps:
- name: checkout
uses: actions/checkout@v2
Expand All @@ -43,7 +43,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
node-version: [16.x]
steps:
- name: checkout
uses: actions/checkout@v2
Expand Down
Loading