mirror of
https://github.com/yellowcooln/meshcore-mqtt-live-map.git
synced 2026-04-20 23:23:36 +00:00
1.6 KiB
1.6 KiB
Changes
v1.5.0 (2026-03-07)
- Expanded test coverage from 24 to 44 passing tests.
- Added MQTT online behavior tests:
statustopics mark nodes online even without map coordinates.- non-online topics (like
packets) do not mark MQTT online. - existing mapped devices emit
device_seenwebsocket updates. - forced-online name behavior in
_device_payloadis covered.
- Added websocket auth matrix tests for
PROD_MODE:- query token, access token, bearer header, and
x-tokenpaths. - unauthorized websocket connection closes with code
1008.
- query token, access token, bearer header, and
- Added mixed prefix routing tests:
- unknown hops are skipped while known hops continue.
- exact 2-byte (
ABCD) hops are preferred correctly.
- Added neighbor graph tests:
- manual override edges survive prune while stale observed edges are removed.
- manual edges retain manual priority after observed updates.
- neighbor selection priority is validated (
manual > auto > observed).
- Added persistence robustness tests:
- corrupt
state.jsondoes not crash_load_state. - malformed/stale history lines are skipped and compact flag is set.
- corrupt
- Added weather config injection tests to verify HTML receives env flags for radar/wind combinations.
- Hardened
/coverageendpoint handling so non-listkeyspayloads now safely return[]. - Weather layer preference persistence: browser now remembers
RadarandWindon/off states per user via local storage across sessions. - Replaced deprecated FastAPI startup/shutdown event decorators with a lifespan handler to remove deprecation warnings and keep background task lifecycle clean.