Repository navigation
Releases
v2.1.7
v2.1.6
v2.1.5
v2.1.4
v2.1.3
v2.1.2
v2.1.1
v2.1.0
No action required. This merges into your status page by itself.
Added
day_degraded_belowdoes for amber whatday_down_belowdoes for red: a
day's bar is amber only when the share of its checks that passed in time —
not failed, not slower thandegraded_ms— falls below it. The default,
100, keeps today's colours. Setday_degraded_below: 99.5and a day with
one slow response or one stray failure out of 1,440 stays green, while a
day with a real slowdown still turns amber. The event history follows the
colours, so a day left green lists nothing.- The README shows the page.
Fixed
- A new status page no longer reports five high-severity vulnerabilities on
npm install. They came from the local-development tooling in wrangler
4.119.0 and never reached the deployed Worker; wrangler is now 4.145.0.
Releases now fail if a fresh install has any high-severity advisory. - A release that stops partway through publishing can be finished by
re-running it.
v2.0.0
uptime is now an npm package, @joshghent/uptime, instead of a repository you
fork. A status page is a repository of its own with four files in it —
status.yaml, a three-line worker.js, wrangler.jsonc and a workflow — and
updates reach it as Dependabot pull requests that prove themselves against your
config and merge themselves. No token, no secret, no merging upstream.
Action required if you run a fork. Move it onto the package once; after
that there is nothing to do for minor and patch releases. It keeps the same
Worker, the same database and the same history, and the same repository, so
Cloudflare Workers Builds stays connected. In your fork:
git switch -c move-to-package
# Keep your monitors, drop everything else.
git rm -rq . && git checkout HEAD -- status.yaml
# Bring in the template, then put your status.yaml back over its example.
npm create uptime@2 ../uptime-template
cp -r ../uptime-template/. . && rm -rf ../uptime-template
git checkout HEAD -- status.yamlThen copy three things from your old wrangler.jsonc (git show HEAD:wrangler.jsonc) into the new one: your database_id, your routes if
you set one, and your name if you changed it from uptime. A different name
deploys a different Worker.
npm install
npm run check # your config, the build, and the Worker booted locally
git add -A && git commit -m "Move onto @joshghent/uptime"Open that as a pull request and merge it; Workers Builds deploys it as usual.
- If you set the Workers Builds deploy command to
pnpm run deployfor 1.1.0,
set it back to the default,npx wrangler deploy. Migrations no longer run
there. - The database needs nothing. Its
d1_migrationstable already lists both
migrations, and the Worker reads the same table. - Delete the
SYNC_TOKENsecret and the token behind it, and theupstream
remote if you added one.
Added
createWorker(source), the whole Worker around the text of astatus.yaml.- The Worker applies its own migrations, on the first request or cron run in
each isolate, into wrangler's ownd1_migrationstable. A release that adds
a migration needs nothing from you. status.yamltakes aversion:(missing means 1). A release that changes
the shape of the file upgrades older ones in memory, so an update never needs
your config edited.- The
uptimecommand:uptime lint,uptime check(lint, a dry-run build,
then the Worker booted against an empty local database and its page and
/healthloaded) anduptime init.npm create uptimerunsuptime init. - A template deployment with a Dependabot config and a workflow that runs
uptime checkon every pull request and merges minor and patch updates of
the package when it passes. - Releases publish both packages to npm, with provenance.
Changed
/healthanswers503when the Worker could not bring the database up to
date, rather than when a migration was not run by hand.status.example.yamlis nowtemplate/status.yaml, andpnpm lint:config
in a status page isnpm run lint.
Removed
- The upstream sync workflow and its
SYNC_TOKEN, the Actions deploy job and
DEPLOY_VIA_ACTIONS, and thedeployanddb:*scripts.wrangler d1 migrations applystill works against a deployment's database, but nothing
needs it.
v1.1.1
Action required if you use the sync workflow. It now needs a SYNC_TOKEN
secret — a fine-grained PAT scoped to your fork with Contents, Pull requests and
Workflows set to read and write. Without one it cannot carry an update that
changes a workflow file, which this release does.
Fixed
- The sync workflow could not push any update that touched
.github/workflows/. GitHub refuses that push from the built-in Actions
token, and nopermissions:scope grants it, so every release that changed a
workflow would have failed on every fork. It usesSYNC_TOKENwhen present
and explains itself when the push is refused. Merging by hand was never
affected:git fetch upstream && git merge upstream/main.