8000 Tags · KingPin/Garrul · GitHub
[go: up one dir, main page]

Skip to content

Tags

Tags

v2.50.0

Toggle v2.50.0's commit message
v2.50.0 — opt-in comment image uploads from your own R2 bucket

Highlights:
- feat: opt-in comment image uploads. Signed-in commenters attach up to 4 images (2 MiB each; JPEG, PNG, WebP, GIF). Files live in an R2 bucket you own and load straight from its custom domain; the Worker never proxies them. Off by default. Setup: docs/images.md.
- feat: two panel settings, both off by default: "Image uploads" (Features) and "Hold image comments" (Moderation). Admins are exempt from the hold.
- perf: embed.js is about 0.4 KB smaller gzipped, and comment timestamps reuse their Intl formatters.

Notes for operators:
- Two migrations: 0034_uploads (the uploads ledger) and 0035_uploads_release_on_delete (a trigger that frees a comment's files when it is deleted). `npm run upgrade` applies them; otherwise run `npm run migrate -- --remote`.
- New optional var IMAGE_PUBLIC_URL and optional R2 binding IMAGES. Uploads need both plus the panel setting. Without them nothing changes.
- If you serve embed.js from the release page, also serve the attached embed-upload.js from the same origin. If your host CSP pins /embed.js, allow /embed-upload.js too, and add your image domain to img-src.
- chore: codeql-action 4.39.5.

v2.49.0

Toggle v2.49.0's commit message
Highlights:

- feat: syntax highlighting for fenced code blocks that carry a language tag. The widget lazy-loads a second bundle, `/embed-highlight.js` (~34 KB gzipped), only when a comment has a tagged block. Untagged and unknown-language blocks stay plain.
- feat: new panel-only setting `code_highlight_enabled` (Admin → Settings → Features → "Code highlighting"). Default **on**; no env var. Turn it off to never load the extra bundle.
- feat: eight optional `--garrul-code-*` theme tokens for syntax colors; defaults meet WCAG AA in light and dark.

Notes for operators:
- If you serve `embed.js` from the release page, also serve `embed-highlight.js` from the same origin (it is attached to this release). Without it, tagged code stays plain.
- If your host CSP pins the exact `/embed.js` path, allow `/embed-highlight.js` too.
- chore: dependency bumps (hono 4.13.22, marked 18.3.0, wrangler 4.168.0). No new env vars, no migrations.

v2.48.0

Toggle v2.48.0's commit message
Highlights:

- feat: the upgrade and setup scripts run on Windows. wrangler and npm start without a shell, and upgrade preflight stops before any change when npm cannot run.
- feat: `npm run upgrade -- --from vX.Y.Z` names the version the Worker runs, for a checkout already pulled past it. The plan uses that release's manifest from GitHub.
- feat: upgrade deploys carry the release as a Worker version tag (`workers/tag`), so a later upgrade can read what is live.
- fix: a subprocess killed by a signal now fails the upgrade step instead of counting as success.

Notes for operators:
- Drop-in: no migration, no new env vars. `npm run upgrade` and deploy.
- This upgrade still runs the upgrade script of the version you are on, so the v2.48.0 deploy is not tagged yet. Tags start with the next upgrade.
- Windows: the v2.47.0 and earlier scripts fail upgrade preflight with "wrangler not found". Upgrade once by hand (INSTALL.md, "step through manually"); `npm run upgrade` works after that.
- "already on X.Y.Z; nothing to do" after a `git pull`: re-run with `--from v<deployed version>`. After a failed deploy, retry with `npm run deploy -- --tag vX.Y.Z`.

v2.47.0

Toggle v2.47.0's commit message
Highlights:

- feat: edit and delete update the comment in place instead of reloading the thread. Open reply forms, focus and drafts survive, and an abandoned edit is kept as a draft.
- feat: a failed load keeps the thread on screen and offers Retry. A failed post, vote, reaction or delete says why, in the site's language.
- feat: Unsubscribe gets the same 5-second Undo as Report. A blocked sign-in popup shows a notice instead of navigating away.
- fix: one post per submit, drafts flushed on every teardown, a form token that stays fresh across a suspended tab, and Turnstile recovery after a network drop.
- fix: 44px touch targets, no iOS input zoom, an RTL collapse glyph, and keyboard focus kept after every action.

Notes for operators:
- Drop-in: no migration, no new env vars. `npm run upgrade` and deploy.
- API: `PATCH`/`DELETE /api/v1/comments/:id` and `GET /api/v1/comments/:id/source` now answer a caller with no session `401` (was `403`). `DELETE` also returns the re-rendered thread (`root_id`, `thread`), and a signed-out post without a name carries `code: "name_required"`. Both are additive.
- A `PUBLIC_BASE_URL` with a trailing slash no longer puts `//` into email, digest and bot links.
- Iframe embeds: recopy the host script from `examples/iframe/` (or AGENTS.md §6). It forwards comment permalinks into the frame and loads a lazy frame when one is followed.

v2.46.0

Toggle v2.46.0's commit message
Highlights:

- feat: Report now waits 5 seconds with an Undo before it is sent. Leaving the page during that window sends it at once. Action buttons are 44px tall on touch screens.
- fix: comment permalinks reach comments past the first page or inside collapsed replies, and follow hash changes.
- fix: cancelling a reply (Cancel or Escape) keeps its draft; only a successful post clears it.

Notes for operators:
- Drop-in: no migration, no new env vars, no API change. `npm run upgrade` and deploy.
- If you copied the lazy-load or click-to-load snippet, add the one-line `#garrul-comment-` hash check from `examples/lazy-load/` so the widget mounts at once on a permalink.
- chore: hono 4.13.19, marked 18.2.1, wrangler 4.164.0.

Thanks to @ChmaraX for the reader feedback behind these fixes.

v2.45.0

Toggle v2.45.0's commit message
Highlights:

- feat: site-wide recent-comments feed at `GET /feed` — Atom by default, JSON Feed 1.1 with `?format=json`. Add `?site=<origin>` to limit it to one `ALLOWED_ORIGINS` entry (anything else is a 400). 50 items, 5-minute edge cache, dropped on every comment change. Recipes for Astro, Hugo and Jekyll are in `examples/`.
- fix: per-post feed (`/feed/:slug`) links now point at the post's own page with a working comment anchor, and only when the page URL is on `ALLOWED_ORIGINS`.

Notes for operators:
- Drop-in: no migration, no new env vars. `npm run upgrade` and deploy.
- The JSON Feed is served with `Access-Control-Allow-Origin: *` so static sites can fetch it from the browser.
- chore: hono 4.13.18, wrangler 4.161.0.

v2.44.0

Toggle v2.44.0's commit message
v2.44.0 — Discord moderation bot and richer Telegram moderation

Highlights:
- feat: Discord moderation bot. Approve, spam, delete, ban (with reason), reply with saved replies, and walk the pending queue from Discord alert cards and slash commands. Optional daily digest to a channel. Setup: `docs/discord.md` and `/admin/discord`.
- feat: Telegram bot gains ban with reason, `/unban`, ban state in `/user`, in-place queue review, and replies (saved or custom text).
- feat: imports report `existing_comments` — comments an earlier run already imported.

Notes for operators:
- Run `npm run migrate` (migration 0033 adds `discord_links`).
- New optional env: `DISCORD_BOT_TOKEN` (secret) and `DISCORD_PUBLIC_KEY` (var). Discord stays off until both are set. New endpoint: `POST /discord/interactions`.
- fix: Discord webhook 429s now honor `retry_after` and no longer auto-disable the endpoint.

v2.43.0

Toggle v2.43.0's commit message
v2.43.0 — the widget remembers anonymous commenters

Highlights:
- feat(widget): after an accepted post, the widget saves an anonymous reader's name (and their notify email, only when "notify me" was ticked) in the browser and fills it in on the next visit. The notify box is never pre-ticked.
- feat(widget): a "Not you? Clear saved details" link under a prefilled name deletes the saved details.
- feat(widget): set data-remember="off" on the #garrul element to turn this off; the widget then also deletes details an earlier version saved. Script embed only.

Notes:
- Drop-in upgrade: no migrations, no new env vars. Nothing new is sent to the server.
- If you publish a privacy policy, add a line about the saved name and email; docs/privacy-policy.template.md has the wording.

v2.42.0

Toggle v2.42.0's commit message
Highlights:

- feat(spam): new **Settings → Moderation → Run the spam classifier** switch pauses the configured `SPAM_PROVIDER` without a redeploy, and turns it back on. It cannot pick a different provider. While paused, heuristics still run and the dashboard shows the provider as `paused`.

Notes:
- Drop-in upgrade: no migrations, no new env vars. The switch defaults on, so spam checks behave as before.
- chore(deps): hono 4.13.14, marked 18.1.2, wrangler 4.158.0, CodeQL action v4.39.3, action-gh-release v3.0.4.
- docs: AGENTS guides now list migrations 0027–0032 and the `--garrul-notice` theme variable.

v2.41.0

Toggle v2.41.0's commit message
Highlights:

- feat(spam): new `spam_ai_model` setting (admin Settings page or env) picks `clef-flash` (default, unchanged) or full `clef` for `SPAM_PROVIDER=workers-ai`.
- feat(spam): new `SPAM_PROVIDER=decisions` sends the spam question to any OpenAI-style `/decisions` endpoint with your own key (OpenRouter's alpha route by default). New env vars: `SPAM_DECISIONS_API_KEY` (secret), `SPAM_DECISIONS_URL` (optional, must be `https://`), `SPAM_DECISIONS_MODEL` (also the `spam_decisions_model` admin setting). It shares `spam_ai_threshold` with workers-ai.
- feat(admin): the dashboard spam summary flags a decisions provider with no key.

Notes:
- Drop-in upgrade: no migrations. All new env vars are optional; existing providers behave as before.
- With `decisions`, comment text leaves Cloudflare (no email, IP or user agent). Update your privacy policy; see `docs/compliance/subprocessors.md` and `docs/ANTISPAM.md`.
0