Files
aigc-home/docs/changelogs/2026-08-31-patch.md
T
Benjiyaya 40934eb5f5 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.
2026-08-31 18:33:20 +08:00

24 lines
1.5 KiB
Markdown

# 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.