Skip to content

docs: maplibre v6 migration research#1

Open
garyo wants to merge 1 commit into
mainfrom
research/maplibre-v6
Open

docs: maplibre v6 migration research#1
garyo wants to merge 1 commit into
mainfrom
research/maplibre-v6

Conversation

@garyo

@garyo garyo commented May 3, 2026

Copy link
Copy Markdown
Owner

Summary

Research doc covering the impact of upgrading from maplibre-gl@5.24.0 to v6.x (currently at pre-release 6.0.0-6; stable has not shipped yet).

Risk level: Medium — no show-stoppers. Key findings:

  • WebGL 2 required (6.0.0-2): Zero exposure — Android WebView has supported WebGL 2 since API 26, which is already our minimum.
  • ESM-only distribution (6.0.0-5): Zero exposure — Vite already consumes ESM.
  • GeoJSONSource.setData second param removed (6.0.0-3): Zero exposure — none of our 35+ call sites pass a second argument.
  • {get,set}PaintProperty / {get,set}LayoutProperty type narrowing (6.0.0-1): Small effort — run bun run typecheck after bump; expect ≤5 trivial fixes (primarily "visibility" string typing).
  • @maplibre/maplibre-gl-style-spec pin (24.8.1): The main motivation for upgrading. Once on v6, all style-spec types are re-exported from maplibre-gl itself and the separate pinned dependency can be dropped. 12 files need a one-line import-source change.
  • pmtiles 4.x: No changes needed — addProtocol API is stable across v5→v6.

See docs/maplibre-v6-migration.md for the full breaking-changes table, file:line touch-point list, open questions, and suggested upgrade order.

https://claude.ai/code/session_01DLvs7r6qNfKdqmuzQF4EKr


Generated by Claude Code

Adds docs/maplibre-v6-migration.md — full impact analysis of upgrading
from maplibre-gl 5.24.0 to 6.x, covering all pre-release breaking changes,
codebase touch points with file:line references, and a suggested upgrade order.

https://claude.ai/code/session_01DLvs7r6qNfKdqmuzQF4EKr
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
pelorus-nav 1d13051 Commit Preview URL

Branch Preview URL
May 03 2026, 01:06 AM

garyo added a commit that referenced this pull request Jul 10, 2026
The root URL is now a static marketing page (public/landing.html — sail-dart
branding, live chart screenshots, feature overview, email signup); the app
lives at /app. Groundwork for the pre-launch email list (planning doc 08:
"the #1 asset").

- worker.ts rewrites "/" to the landing page and adds POST /api/subscribe
  (honeypot + validation, stored in the SUBSCRIBERS KV namespace keyed by
  lowercased email so repeats are idempotent)
- wrangler.toml: run_worker_first for "/" and /api/* — asset matches
  otherwise bypass the worker entirely; new KV binding
- PWA: start_url /app; SW navigation denylist for /, /landing.html, /api/*;
  landing assets excluded from the app precache
- Vite dev server still serves the app at / (worker not involved); the
  landing page is previewable at /landing.html
- Capacitor/native builds unaffected

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants