diff --git a/package.json b/package.json index c5628b8..e6ff0ef 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,9 @@ "name": "postguard-website", "version": "1.7.0", "private": true, + "engines": { + "node": ">=20" + }, "scripts": { "dev": "vite dev", "build": "vite build", diff --git a/src/lib/components/filesharing/SendButton.svelte b/src/lib/components/filesharing/SendButton.svelte index 4e3db81..ad31a42 100644 --- a/src/lib/components/filesharing/SendButton.svelte +++ b/src/lib/components/filesharing/SendButton.svelte @@ -304,6 +304,12 @@ let buttonRef: HTMLButtonElement | null = $state(null) let dialogRef: HTMLDialogElement | null = $state(null) + // Computed here as a script-level $derived rather than inline in the template + // via {@const} to dodge an upstream prettier-plugin-svelte crash on ternaries + // with a BinaryExpression test inside {@const} + // (https://github.com/sveltejs/prettier-plugin-svelte/issues/528). The pinned + // ^4.0.1 already includes the #528 fix, so this can move back inline as a + // {@const} ternary once verified with `prettier --check` on 4.0.1. let totalProgress = $derived( encryptState.percentages.length > 0 ? Math.round(