Maintainer Guide¶
This guide is for maintainers who manage the project's dependencies, toolchain, and release process. It covers how to upgrade key components and how to handle deprecations.
Release procedure¶
The checklist lives in RELEASING.md: release commit, tag, then bump main to the next -rc. main always carries the next -rc version between releases.
Upgrading frontend dependencies¶
Svelte¶
Svelte 5 introduced runes (signals-based reactivity). This project currently uses Svelte 5 with legacy writable stores — not runes. Migrating to runes is tracked but not yet done.
To upgrade within Svelte 5:
Run make dev, open the app, and verify:
- Map renders and loads playgrounds
- Filter panel works
- PlaygroundPanel opens on click
- Hub mode works (set appMode: 'hub' in public/config.js)
Run make test to confirm E2E tests pass.
For a major version upgrade (Svelte 5 → 6), check the Svelte migration guide first. The migration is likely to involve changes to StandaloneApp.svelte, HubApp.svelte, and all store subscriptions.
OpenLayers¶
OpenLayers has a history of breaking API changes between minor versions. After upgrading, verify:
- Map tiles load
- Cluster rings render correctly (clusterStyle.js uses the OL canvas renderer API)
- Equipment and polygon layers render
- Click handling on playground polygons works
- Map.svelte imports — OL occasionally moves modules between paths
Tailwind CSS¶
Tailwind 4 uses a PostCSS plugin (no tailwind.config.js). To upgrade:
Check that utility classes still apply by opening the app. Tailwind 4's @theme syntax differs from Tailwind 3 — if you see the @ directives breaking, check the Tailwind v4 upgrade guide.
Upgrading infrastructure components¶
PostgreSQL¶
A PostgreSQL major version (e.g. 16 → 17) cannot read the previous version's data directory, so bumping the image tag is a breaking change for every operator.
- Update the PostgreSQL image tag in
compose.ymlandcompose.prod.yml. - Label the PR
requires-compose-updateandrequires-reimport, and say in the release notes that thepgdatavolume must be recreated. - Test it on a local stack the way operators will do it: Upgrading → PostgreSQL major version.
PostgREST¶
After upgrading PostgREST:
- Run make db-apply — some PostgREST versions change how they interpret SECURITY DEFINER or search_path settings
- Verify all /api/rpc/* endpoints work: curl http://localhost:8080/api/rpc/get_meta
- Check the PostgREST changelog for breaking changes to the HTTP API or JWT handling
osm2pgsql + osmium-tool¶
These are installed in the importer Docker image (importer/Dockerfile). To upgrade:
- Update the
apt installversions (or thedebian:bookworm-slimbase) inimporter/Dockerfile - Run
make import, which rebuilds the importer image (--build) and imports with it
The importer uses osm2pgsql in default pgsql mode (--slim --drop --hstore) — no Lua script. Check the osm2pgsql changelog for breaking changes to the pgsql output schema or CLI flags when upgrading.
Docker base images¶
The app image (oci/app/Dockerfile) builds the frontend on node:20-alpine and serves it from nginx:alpine. The importer image (importer/Dockerfile) is debian:bookworm-slim with osm2pgsql and osmium-tool from apt.
Update a base image by changing its FROM line and rebuilding:
make docker-build # rebuilds and restarts the app container only
make import # rebuilds the importer image and runs an import with it
Then run the tests. The E2E suite builds and serves the frontend itself and stubs the API, so it needs no running stack:
Handling deprecations¶
The codebase currently has one deprecated API: fetchPlaygrounds (region-scoped, replaced by fetchPlaygroundsBbox).
Deprecation process:
1. Add a console.warn in the deprecated function (already done)
2. Add a COMMENT ON FUNCTION in api.sql flagging it for removal
3. Document the planned removal version in the function's JSDoc @deprecated tag
4. Remove in the release after next (one release grace period)
5. Update docs/reference/api.md to mark the function as removed
Architecture Decision Records (ADRs)¶
When making a significant architectural choice — a new external dependency, a change to the API contract, a new deployment mode — write an ADR in docs/adr/.
File naming: NNNN-short-title.md (e.g. 0002-add-hub-mode.md).
Suggested structure:
# ADR-NNNN: Title
- **Status:** Proposed | Accepted | Rejected | Superseded
- **Date:** YYYY-MM-DD
- **Deciders:** @username
## Context
What problem are we solving? What are the constraints?
## Decision
What did we decide?
## Alternatives considered
What else did we evaluate and why did we reject it?
## Consequences
What are the positive and negative effects of this decision?
See ADR-0001 for an example. Add the new file to the Develop → Maintain section of nav: in mkdocs.yml, or it does not appear on the site.
Dependency audit¶
Check for outdated or vulnerable packages periodically:
GitHub Dependabot is configured in .github/dependabot.yml and will open PRs for dependency updates automatically.
See also¶
- RELEASING.md — full release checklist
- Local Development — local dev setup
- Tech Stack — component versions