Files
crosscode-platform/docs/VERSIONS.md
T
2026-11-23 10:22:54 +02:00

171 lines
12 KiB
Markdown

# Versions — the latest release of everything
Last updated: 2026-11-23. Taken from the git tags, which is what a release is here (branch → merge →
tag → push, see [HANDOVER.md](./HANDOVER.md) "Releasing"). **Update this file with every release.**
"Released" means tagged and pushed. Whether a release is **deployed** or rolled out is recorded
separately below; the two often differ.
## Released
| What | Repo | Latest | Tag | Released |
|------|------|--------|-----|----------|
| Cross Events | `crosscode-platform` (`apps/events`) | **3.6.1** | `events@3.6.1` | 2026-11-20 |
| Accounts | `crosscode-platform` (`apps/accounts`) | **1.6.0** | `accounts@1.6.0` | 2026-11-20 |
| Server agent | `crosscode-platform` (`apps/agent`) | **1.5.0** | `agent@1.5.0` | 2026-11-23 |
| Contracts | `crosscode-platform` (`packages/contracts`) | **1.16.0** | `contracts@1.16.0` | 2026-11-23 |
| Cross Code Hub | `events-hub` | **2.13.0** | `v2.13.0` | 2026-11-23 |
| crosscode.co.za | `crosscode-site` | **1.6.0** | `v1.6.0` | 2026-11-19 |
| `crosscode` script | `crosscode-platform` (`scripts/`) | `main` | none | 2026-11-23 (last change: uninstall, export and purge one product of a church) |
The `crosscode` script has no version: every server's copy (`/opt/crosscode/tools`) pulls `main`
on each run, so merging to `main` and pushing releases it. Its changes are listed in
[CHANGELOG.md](../CHANGELOG.md) under "crosscode script".
### Not tagged yet
| What | Where | Version in package.json |
|------|-------|-------------------------|
| `@crosscode/auth-client` | `packages/auth-client` | 1.1.0 (released with Events 3.0.0 and Accounts 1.1.0) |
| `@crosscode/seo` | `packages/seo` | 1.0.0 (released with Events 2.4.0) |
| `@crosscode/ui` | `packages/ui` | 0.1.0 |
| Website | `apps/website` | 0.0.0 (phase 5, being planned) |
| App | `apps/app` | 0.0.0 (not started, phase 6) |
These shared packages ship inside the apps that use them, from the same checkout, so they don't
need their own tags until something outside this repo depends on them.
## What each latest release was for
- **Hub 2.13.0 (2026-11-23):** alerts can be cleared by hand (one, or Clear all); a cleared alert
stays away until its problem is fixed and comes back, and isn't emailed again meanwhile. Billing
invoices, payments and churches, and a customer's invoices and payments, can be sorted by column
(remembered per browser). Fixed a stray scrollbar beside tab rows. Migration
`20261123120000_alert_cleared`.
- **Agent 1.5.0 + contracts 1.16.0 + Hub 2.12.0 + `crosscode` script (2026-11-23):** uninstalling
one product no longer removes the whole church (it removed cross-events-demo's Accounts with its
Events, which the Hub still showed as live). `crosscode uninstall|export|purge <church>
[product …]`; the last product to go removes the church. On the Hub: a second product's
uninstall can join one already planned or get its own time; Accounts goes last; a stale install
(no heartbeat for 24 hours) can be removed from the Hub; customers can be archived; a customer's
email and billing email take several addresses; statements show R0 invoices' amounts. **Update
the agents first** (the Hub refuses a one-product uninstall on an older agent while the church
has other products), then deploy the Hub (migration `20261123090000_customer_archive`).
- **Agent 1.4.0 + contracts 1.15.0 + Hub 2.11.0:** the agent finds frps's / frpc's config wherever
it is (the path set on the Hub, the systemd unit's `-c`, the usual places) and reads TOML too;
each server's Hub page reads and changes that config (secrets stay on the server, `verify`,
backup, restart, put back if frp doesn't start, two-factor); a new install first checks its
ports are free on the central server and the church server (`probe-ports`) and runs on a pair
free on both. Update the agents first (central and church), then deploy the Hub (migration
`20261121110000_server_frp_config`). With older agents the Hub installs as before, with a warning.
- **`crosscode` script (2026-11-20, later):** the database dump made before each Accounts deploy
(`backend/backups/`) no longer stops the next deploy as "added by hand" on Accounts below 1.3.0.
Released by pushing `main`; the next Hub job pulls it.
- **Hub 2.10.0:** every Hub email (job reports, alerts, emails to church admins, notices) laid out
as Events' and Accounts' are. The FastPanel email gives `location ^~ /api/` to paste, and Proxy
done refuses a site whose `/api` files reach the frontend. No migration.
- **Events 3.6.1 (fix):** logo and favicon uploads failed on events-demo: FastPanel's static-file
rule sent every `/api/…` path with a file extension to the frontend. The site now passes those on
to the backend. Also change the FastPanel site (HANDOVER.md, "FastPanel sites"). No migration.
- **Accounts 1.6.0:** a "New sign-in" email (and WhatsApp) after every sign-in, as Cross Events'
own sign-in sends; admins can turn it off. No migration.
- **Events 3.6.0 + Accounts 1.5.0 + contracts 1.14.0:** a nightly people check (Events asks Accounts
about everyone with an account, 500 at a time, `people.check`): out-of-date copies are fixed,
deleted accounts handled as `user.deleted`, and it stops if most people are unknown. Update
Accounts first (Events skips the check with an older one). No migrations; the Hub is unchanged.
- **Events 3.5.0 + contracts 1.13.0 + agent 1.3.1 + Hub 2.9.0:** loading demo data no longer deletes
the Accounts link (on events-demo nobody could sign in); a site in Accounts mode without a link
reconnects at its next heartbeat; the heartbeat says how the site signs in and the last failure,
and the Hub alerts when it isn't linked, is linked wrongly or sign-ins fail. **Agent 1.3.0
reported itself as 1.2.0**, so the Hub refused its .env jobs: install 1.3.1. No migrations.
- **Events 3.4.0 + Accounts 1.4.0 + contracts 1.12.0 + agent 1.3.0 + Hub 2.8.0:** background jobs
switched on and off (and rescheduled) from each site's admin, over the .env (saved in the
database, no migration); Accounts' emails styled as Cross Events'; the Hub shows an install's
.env (secrets only as set or not) and changes plain values with a restart or frontend rebuild
(`env-read` / `env-set` jobs, `crosscode env`; the file is put back if the site doesn't start).
The Hub's .env panel needs agent 1.3.0 on the server. No migrations.
- **Events 3.3.0 + Accounts 1.3.0 + contracts 1.11.0:** Accounts' pages in Cross Events' layout
(sidebar, a page per section), quick links to the church's sites, nightly backups (Admin →
Backups; needs `pg_dump` on the server), a fuller built-in privacy notice, a fixed favicon.
Events: signing out also signs out of Accounts; uploaded logos and favicons are served from the
folder they're saved in (they 404'd when the backend started elsewhere); new demo data removes
the old demo people from Accounts (`people.removeDemo`, needs Accounts 1.3.0). No migrations.
The Hub doesn't need contracts 1.11.0 (only Events and Accounts use the new request).
- **Hub 2.7.1:** a double click can't plan an update twice (buttons are off until the Hub answers,
and a second update for an install with one planned or running is refused). No migration.
- **Hub 2.7.0:** emergency updates "as soon as possible" (the agent's next poll), and a second "yes"
when the church has an event on now (from Events 3.2.0's heartbeat). 2.6.1: the Failed jobs filter
and alert search answered 500. No migration; deploy it.
- **Events 3.2.0 + contracts 1.10.0:** the heartbeat says what's on now (`stats.live`).
- **Events 3.1.0 + Accounts 1.2.0 + contracts 1.9.0:** the move to Accounts needs Accounts' email
(Settings → Sign-in sets it up by copying Events' SMTP / WAWP, tests, then saves); Accounts shows a
message instead of a 500 when a code can't be sent. **Use these instead of 3.0.0 / 1.1.0.**
- **Hub 2.6.0:** paged lists (jobs, audit log and alerts on the server), job filters for every
status, updates for one product at a time with that product's releases, an Events update that
keeps (or updates, or first installs) the church's Accounts explicitly, and installs found on a
server tied to their registration. No migration. **Deploy it** (after 2.5.0, or straight to it).
- **`crosscode` script (2026-11-19, later):** Accounts' own `ecosystem.config.cjs` no longer stops
a deploy as "changed by hand".
- **Events 3.0.0** (phase 4, [EVENTS-3.0-PLAN.md](./EVENTS-3.0-PLAN.md)): sign-in through the
church's Accounts. Needs Accounts 1.1.0 (`requires accounts 1.1.0`). Nothing changes for a
church until an admin moves sign-in (Settings → Sign-in); see `apps/events/MIGRATING-TO-3.md`.
Tested on Postgres 18 (migrations, `test:accounts` on real databases, the e2e suite); **not VM
tested**.
- **Accounts 1.1.0:** takes Events' users with their passwords and authenticator apps, and Events'
`people.*` requests. **Contracts 1.8.0:** `crosscode.identity-request/1`.
- **Hub 2.5.0:** a New install of Events 3.x installs the church's Accounts first. **Deploy it before
any church gets Events 3.0** (it has the vendored contracts 1.8.0; no migration).
- **crosscode.co.za 1.6.0:** Cross Events signs in with the church account. Tagged; deploy it when
the first church is on Events 3.0.
Earlier:
- **Events 2.4.1:** the default logo is the Cross Code logo; the demo script says to run as the
site's user (instead of "client password must be a string") and keeps the site's oldest admin.
2.4.0: protocol v2, Linked products, the event feed, `packages/seo`
([EVENTS-2.4-PLAN.md](./EVENTS-2.4-PLAN.md)). 2.3.1 is the version for churches until 2.4.x's
e2e run on Postgres and VM test are done.
- **Accounts 1.0.1:** `TRUST_PROXY=loopback` (the value behind frp) now turns proxy trust on; it
used to turn it off. 1.0.0 was the church's sign-in (OpenID Connect provider)
([ACCOUNTS-1.0-PLAN.md](./ACCOUNTS-1.0-PLAN.md)). Needs the VM test and a run on real Postgres
before a church gets it.
- **Agent 1.2.0:** runs `seed-demo` jobs (`crosscode demo`). 1.1.1: stats keep going while a job
runs.
- **Contracts 1.7.0:** the `seed-demo` job. 1.6.0: `agent.checkEnvValue` / `invalidValues`,
settings the apps can't start with.
- **Hub 2.4.0:** demo sites: mark an Events install as a demo site and load demo data from its
page (needs agent 1.2.0 on that server). 2.3.3: refuses a server setting the apps can't start with (`TRUST_PROXY=TRUE`) when it's
saved and before a job. 2.3.2: installs no longer get stuck "Uninstalling" when the export fails; a failed
install's record can be removed (and uninstall is refused for it).
- **crosscode.co.za 1.5.0:** lists Accounts.
- **`crosscode` script (2026-11-19):** `crosscode demo <church> --profile …` (backup, demo data,
restart); a value the app can't start with stops an install before the
build (`VALUE_RULES` in `lib/envtpl.cjs`); a failed install prints each PM2 app's last log lines before
removing it, so the Hub's job log shows why the backend didn't start.
## Deployed / rolled out
What actually runs isn't in git, so this table is kept by hand. Fill in a version and date when
you deploy one.
| What | Running | Since | Notes |
|------|---------|-------|-------|
| Hub | 2.13.0 | 2026-11-23 | With migration `20261123120000_alert_cleared` (alerts can be cleared by hand) |
| Agent on church-server1 | 1.5.0 | 2026-11-23 | Uninstalls one product of a church at a time |
| Agent on the central server | 1.5.0 | 2026-11-23 | Reads and changes frps's config from the Hub (no longer read-only; decision 35 superseded) |
| Cross Events (churches) | 3.6.1 | 2026-11-20 | Every install adopted onto the monorepo and signing in through Accounts |
| Accounts (churches) | 1.6.0 | 2026-11-20 | |
| crosscode.co.za | 1.6.0 | 2026-11-20 | |