feat: release 1.5.3 - fix the SSR localStorage crash on Node 22+

Patch the app-breaking regression 1.5.2 shipped: every server render threw
`localStorage.getItem is not a function`, so the UI only appeared behind a Vite
error overlay.

Node 22+ exposes a `localStorage` global that is not a Storage when no valid
`--localstorage-file` is set, which defeats the `typeof localStorage` guard the
language layer used. The code fix landed in 3363620; this commit cuts it as a
release and adds `npm test`, which fails if the unsafe idiom reappears.

Docs: docs/changelogs/2026-09-16-ssr-storage-fix.md
This commit is contained in:
Benjiyaya
2026-09-16 04:22:07 +08:00
parent 33636200f3
commit bf557d8d5e
6 changed files with 243 additions and 4 deletions
+1 -1
View File
@@ -4,4 +4,4 @@
# reads this; pyproject.toml is kept in sync for the build (hatchling dynamic
# version reads this file). PR #47: hard-coded literals drifted twice
# (1.3.2 shipped reporting 1.2.1; 1.4.1's /api/health still said 1.4.0).
__version__ = "1.5.2"
__version__ = "1.5.3"