chore: bump @sveltejs/kit to 2.70.3, release 1.3.1

The old 2.20.x range carried high-severity npm audit advisories
(CSRF, dev-mode 404 XSS, handle-hook DoS), which pushed users toward
npm audit fix --force — a command that downgrades kit to a 2021
pre-release and breaks the install (issue #38). Bumping within the
major plus the safe audit fixes leaves only 3 low-severity transitives,
all requiring major downgrades. Recovery steps for affected users are
in the changelog.
This commit is contained in:
Benjiyaya
2026-08-31 18:33:20 +08:00
parent ec6496a69e
commit 40934eb5f5
5 changed files with 46 additions and 22 deletions
+23
View File
@@ -0,0 +1,23 @@
# 2026-08-31 — Calliope 1.3.1 (patch)
Dependency hygiene fix prompted by [#38](https://github.com/benjiyaya/Calliope/issues/38).
## What changed
- `@sveltejs/kit` bumped `2.20.x` → `^2.70.3`. The older range was flagged by `npm audit` with several high-severity advisories (CSRF protection, dev-mode 404 XSS, handle-hook DoS, unescaped error messages), which pushed users toward `npm audit fix --force` — a command that downgrades kit to a 2021 pre-release (`0.0.30`) and wrecks the install (missing adapter, `svelte.config.js` load failure).
- Safe non-breaking audit fixes applied (`brace-expansion`, `js-yaml`, `nanoid`, `postcss` transitives). Remaining findings are 3 low-severity transitives only resolvable via SemVer-major downgrades — do **not** run `npm audit fix --force`.
- Version bumped to 1.3.1 (web + backend). No feature changes.
## For anyone who hit the broken-install state (#38)
Your repo files are fine — the committed `package.json` / `package-lock.json` / `tsconfig.json` are correct, and `.svelte-kit/` is generated output that appears after the first sync. Recover with:
```powershell
cd calliope-web
git checkout -- package.json package-lock.json
Remove-Item -Recurse -Force node_modules
npm ci
npm run dev
```
The `Cannot find base config file "./.svelte-kit/tsconfig.json"` line alone is a harmless first-run warning; the real error was `config.kit.adapter should be an object with an "adapt" method`, caused by `--force` downgrading SvelteKit.
+1
View File
@@ -2,6 +2,7 @@
Dated notes for GitHub releases. Newest first.
- [2026-08-31 patch](./2026-08-31-patch.md) — SvelteKit security bump so `npm audit fix --force` is never needed (1.3.1)
- [2026-08-31](./2026-08-31.md) — Prompt review gate, ComfyUI error surfacing, saved scene setups (1.3.0)
- [2026-08-29](./2026-08-29.md) — Model per agent + clip-native export fps + video-extend continue (1.2.3)
- [2026-08-24](./2026-08-24.md) — Agent + Assets Management (1.2.1)