…maplibre-gl 6.2.0 (#439)
* chore(frontend): migrate eslint to oxlint, bump typescript 7.0.2 and maplibre-gl 6.2.0
typescript-eslint hard-refuses to run on TypeScript 7.x (dependabot PR #215
was blocked on this), so lint moves to oxlint, which has its own
TS/JSX parser independent of the installed typescript version. The
.oxlintrc.json reproduces the old eslint.config.js rule set 1:1
(react-hooks, react-refresh's only-export-components, jsx-a11y) and
explicitly disables oxlint's extra default-on rule categories (an
experimental React-Compiler-style rule set, plus extra jsx-a11y/unicorn
rules) that aren't part of prior CI behavior.
maplibre-gl 6.x (dependabot PR #346) ships ESM-only with a strict
exports map, which breaks `import maplibregl from "maplibre-gl"` per
the v5-to-v6 migration guide; switched FlightMap.tsx and WeatherMap.tsx
to `import * as maplibregl from "maplibre-gl"`.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* chore(deps): close open Dependabot alerts (brace-expansion, immutable)
Removing eslint (and its glob/minimatch chain) already dropped
brace-expansion out of the tree entirely, but the repo's override floor
(>=5.0.6) predates the later 5.0.7/5.0.8/5.0.9 patches — bump it so a
future transitive reintroduction can't land a vulnerable version again.
immutable is pulled in transitively via sass-embedded (5.1.5, vulnerable
to two DoS advisories); add an override forcing >=5.1.8, same pattern
already used here for brace-expansion/undici/js-yaml/esbuild/@babel-core.
Resolves to 5.1.9.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* fix(frontend): wire maplibre-gl 6.x worker URL explicitly for Vite
Reported after push: Flight Tracker's map failed to load in the browser
with maplibre-gl-worker.mjs 404s. maplibre-gl 6.x self-locates its
worker script off its own import.meta.url at runtime; Vite's dev-server
dependency optimizer pre-bundles maplibre-gl.mjs into node_modules/.vite/
deps/ without the worker file alongside it, so the default resolution
404s and the map silently falls back to slower main-thread tile parsing
(this is why it wasn't caught by the earlier browser check — the map
still rendered, just without vector-tile worker offload).
Fix is MapLibre's own documented Vite integration: import the worker
script via Vite's `?worker&url` suffix and hand it to setWorkerUrl()
before constructing any Map. Verified via network trace that the worker
now resolves (200) in dev and gets emitted as its own asset on build.
Test mocks for "maplibre-gl" needed a setWorkerUrl stub added since the
module now calls it at import time.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
---------
Co-authored-by: Robbie Byrd <robbie.byrd@level.co>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Bumps maplibre-gl from 5.24.0 to 6.2.0.
Release notes
Sourced from maplibre-gl's releases.
... (truncated)
Changelog
Sourced from maplibre-gl's changelog.
... (truncated)
Commits
5bba02dBump js version to 6.2.0 (#8110)0bb5a5fchore: enable@vitest/eslint-pluginrules and fix what they found (#8105)6c0935adocs: add nested GeoJSON properties to v5-to-v6 migration guide (#8104)0dee187chore(deps-dev): bump jsdom from 29.1.1 to 30.0.1 (#8080)bb28a54chore(deps-dev): bump undici from 7.28.0 to 7.29.0 (#8099)66316c4chore(deps-dev): bump svgo from 4.0.1 to 4.0.2 (#8101)d05352echore(deps-dev): bump brace-expansion from 1.1.15 to 1.1.18 (#8100)a54b1fbchore(deps-dev): bump devtools-protocol from 0.0.1670834 to 0.0.1672245 (#8097)5ec810eperf: cache terrain elevation sampling (#8025)8364005Remove remaining rollup dependencies (#8093)