diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1b40a59..12faec9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: ['16'] + node-version: ['16', '18'] steps: - name: checkout diff --git a/build/convert.js b/build/convert.js index 82e396c..49f7d18 100644 --- a/build/convert.js +++ b/build/convert.js @@ -98,6 +98,7 @@ const fetchWeightsOfLines = async () => { const parsed = parse(line.route_short_name) if (parsed.type === 'bus' && (parsed.express || parsed.express)) weight += .05 + // todo: RE vs RB const id = line.route_id if (!data[id + '']) data[id + ''] = 0 diff --git a/build/download.sh b/build/download.sh index 8909606..515681b 100755 --- a/build/download.sh +++ b/build/download.sh @@ -5,6 +5,7 @@ set -e cd $(dirname $0) base_url='https://vbb-gtfs.jannisr.de/latest/' +# todo: use https://gist.github.com/derhuerst/745cf09fe5f3ea2569948dd215bbfe1a ? download () { curl -L --compressed --etag-compare "$1.etag" --etag-save "$1.etag" "$base_url$1" -o "$1" } diff --git a/package.json b/package.json index 6b03d6e..2c955ba 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vbb-stations", "description": "A list of VBB stations.", - "version": "8.2.0", + "version": "8.3.1", "main": "index.js", "files": [ "index.js",