Commit graph

300 commits

Author SHA1 Message Date
Henrik Fehlauer
eeb1c5bde3
Emit console warning when using an unsupported BRouter version
abrensch/brouter@c9ae7c8681 changed indexing of voice hint ids, because
some new hints were inserted in the middle instead of strictly at the
end, changing the numbering of existing ids. For example, now id `12`
was sent to indicate a right u-turn, while we still assume the old
meaning of `12`, i.e. "off route". This clearly was an API break.

This leads us to abort exporting with the Gpsies turn instructions
style, since `OFFR` has an `undefined` symbol assigned, as well as
emitting wrong voice hints for ids after `9`. Another unwelcome side
effect is showing negative exit numbers for roundabouts.

This breakage in the GeoJSON HTTP API has been shipping in BRouter 1.7.0
and 1.7.1 and finally got fixed with abrensch/brouter@82fecf9 contained
in BRouter 1.7.2 or later. Earlier releases like 1.6.3 are also
unaffected. To avoid emitting incorrect voice hints in BRouter-Web,
running with broken versions of BRouter should be avoided.

By checking the "Creator" field after receiving the first response from
BRouter, we can now emit a warning if the version of BRouter used is
unsupported. The warning mostly targets administrators and power users,
i.e. those responsible for choosing the software versions used, and it
is also only shown once per session.

Note that the version check is compatible with the common "SemVer"
scheme, so the check should continue working and even support more
complex version compatibility scenarios as long as BRouter stays
SemVer-compliant.

Ref #751

Test Plan:
  - Run with BRouter 1.6.3 and 1.7.2, no warnings shown.
  - Run with BRouter 1.7.0 and 1.7.1, warnings shown only for the first
  segment.
2023-07-06 09:46:47 +00:00
renovate[bot]
47672b890c
Update dependency @fortawesome/fontawesome-free to v6.4.0 (#741) 2023-06-22 10:06:14 +02:00
renovate[bot]
f91898b2a9
Update dependency leaflet-geometryutil to v0.10.2 (#740) 2023-06-22 10:05:00 +02:00
renovate[bot]
4aa9d20f31
Update dependency i18next-browser-languagedetector to v7.0.2 (#739) 2023-06-22 10:03:26 +02:00
renovate[bot]
b02af01acd
Update dependency codemirror to v5.65.13 (#737) 2023-06-22 10:02:43 +02:00
renovate[bot]
60500c01b8
Update dependency eslint to v8.43.0 (#721) 2023-06-22 10:02:18 +02:00
renovate[bot]
da7fda9ba5
Update dependency browser-sync to v2.29.3 (#720) 2023-06-22 10:01:18 +02:00
renovate[bot]
8ab909d326
Update babel monorepo to v7.22.5 (#719) 2023-06-22 10:00:12 +02:00
renovate[bot]
94541f61b0
Update dependency postcss to v8.4.24 (#718) 2023-06-22 09:59:25 +02:00
Marcus Jaschen
3b3357c473
Share Dialog with QR Code (#729) 2023-05-16 11:31:32 +02:00
Norbert Renner
32107759e2 Re-add fetch polyfill (#727)
Removed in #367, but core-js does not include fetch, and eslint-plugin-compat just doesn't seem to complain when inside an if block.
2023-05-08 17:15:58 +02:00
renovate[bot]
1ceb5ce247
Update dependency i18next-scanner to v4.2.0 (#710) 2023-03-20 12:43:02 +01:00
renovate[bot]
d7a5d46a6b
Update dependency core-js-bundle to v3.29.1 (#711) 2023-03-20 12:42:07 +01:00
renovate[bot]
13988d07db
Update dependency jquery to v3.6.4 (#712) 2023-03-20 12:40:59 +01:00
renovate[bot]
f7293a3a6d
Update dependency autoprefixer to v10.4.14 (#713) 2023-03-20 12:39:30 +01:00
renovate[bot]
66d1ff89e1
Update dependency husky to v8.0.3 (#709) 2023-03-06 18:49:39 +01:00
renovate[bot]
f37ae0e56e
Update dependency gulp-replace to v1.1.4 (#708) 2023-03-06 18:49:14 +01:00
renovate[bot]
4b1ed7d1c9
Update dependency browser-sync to v2.28.3 (#707) 2023-03-06 18:48:53 +01:00
renovate[bot]
488130a0a4
Update dependency overpass-layer to v3.4.0 (#705) 2023-02-24 09:26:58 +01:00
renovate[bot]
a6ae2fb077
Update dependency @fortawesome/fontawesome-free to v6.3.0 (#704) 2023-02-24 09:26:17 +01:00
renovate[bot]
802293d0c2
Update dependency jquery to v3.6.3 (#702) 2023-02-23 10:28:28 +01:00
renovate[bot]
539ac60d58
Update dependency codemirror to v5.65.12 (#701) 2023-02-23 09:38:44 +01:00
renovate[bot]
fcf600f4bc
Update dependency leaflet.locatecontrol to v0.79.0 (#691) 2023-02-22 18:58:21 +01:00
renovate[bot]
6cfcfa57da
Update dependency @mapbox/maki to v8.0.1 (#689) 2023-02-22 18:46:49 +01:00
renovate[bot]
e73fb46d0d
Update dependency @maplibre/maplibre-gl-leaflet to v0.0.19 (#687) 2023-02-22 18:11:59 +01:00
renovate[bot]
a51cea3b0f
Update dependency regenerator-runtime to v0.13.11 (#684) 2023-02-21 12:42:52 +01:00
renovate[bot]
5e1d83c726
Update dependency core-js-bundle to v3.28.0 (#683) 2023-02-21 12:40:20 +01:00
Norbert Renner
b1ea2c6dc7 Update leaflet-routing 2023-02-06 09:31:39 +01:00
renovate[bot]
ff6fcfb6b8
Update dependency codemirror to v5.65.10 (#682) 2022-11-25 10:31:56 +01:00
renovate[bot]
e59627d659
Update dependency @fortawesome/fontawesome-free to v6.2.1 (#681) 2022-11-25 10:31:14 +01:00
renovate[bot]
cc6b60c77b
Update babel monorepo to v7.20.2 (#674) 2022-11-25 10:29:03 +01:00
renovate[bot]
abd963577d
Update dependency eslint to v8.28.0 (#675) 2022-11-25 10:21:40 +01:00
renovate[bot]
ce63bcde7d
Update dependency autoprefixer to v10.4.13 (#673) 2022-11-25 10:20:08 +01:00
renovate[bot]
3312d4d2c7
Update dependency @ideditor/temaki to v5.2.0 (#670) 2022-11-25 10:19:40 +01:00
renovate[bot]
53874da31e
Update dependency leaflet.locatecontrol to v0.78.0 (#668) 2022-11-25 10:19:04 +01:00
renovate[bot]
c0c56b0405
Update dependency i18next-browser-languagedetector to v7 (#667) 2022-11-25 10:18:02 +01:00
renovate[bot]
9dc6813c5a
Update dependency i18next-scanner to v4.1.0 (#665) 2022-11-25 10:14:58 +01:00
Norbert Renner
b3e788eec4
Merge pull request #621 from tbsmark86/road-quality
Road surface as quality color + highlight matching row when hovering route on map
2022-11-03 11:55:22 +01:00
renovate[bot]
7929a770c6
Update dependency eslint to v8.26.0 (#664) 2022-10-28 17:53:01 +02:00
renovate[bot]
d7df62b2ac
Update dependency postcss to v8.4.18 (#663) 2022-10-28 17:52:27 +02:00
renovate[bot]
21071b7731
Update dependency @babel/core to v7.19.6 (#662) 2022-10-28 17:52:08 +02:00
renovate[bot]
2e06b65410
Update dependency core-js-bundle to v3.26.0 (#661) 2022-10-28 17:51:36 +02:00
renovate[bot]
c699ee85c5
Update dependency regenerator-runtime to v0.13.10 (#658) 2022-10-28 17:48:00 +02:00
renovate[bot]
eb3ba8ac54
Update dependency overpass-layer to v3.3.1 (#657) 2022-10-28 17:47:33 +02:00
Norbert Renner
dd0715076a Undo Leaflet update for now, causes errors
with NogoAreas because of removed Tap class and probably API changes
2022-10-10 20:45:33 +02:00
renovate[bot]
8053f4095a
Update dependency @babel/preset-env to v7.19.4 (#656) 2022-10-10 19:55:00 +02:00
renovate[bot]
8de3a4ecf3
Update dependency eslint to v8.25.0 (#655) 2022-10-10 19:54:26 +02:00
renovate[bot]
b6367b7a5e
Update dependency postcss to v8.4.17 (#654) 2022-10-10 19:54:02 +02:00
renovate[bot]
36cbda62ae
Update dependency abortcontroller-polyfill to v1.7.5 (#653) 2022-10-10 19:53:41 +02:00
renovate[bot]
d2691d7d0f
Update dependency i18next-browser-languagedetector to v6.1.8 (#652) 2022-10-10 19:53:19 +02:00