Compare commits

...
Author SHA1 Message Date
ajnart 221df8ae94 fix: address coderabbit review on #6219 2026-07-06 18:12:41 +02:00
ajnart 1fe07f8d79 fix(query-cache): guard against undefined result from superjson.parse on legacy cache entries
Fixes #6219

superjson.parse returns undefined when given plain JSON (stored by older
versions before the superjson serializer was introduced). Without the null
guard, accessing .buster on undefined throws "Cannot read properties of
undefined (reading 'buster')", which is caught and logged as
"Failed to hydrate query cache" — contributing to instability on upgrade.

Also remove now-redundant optional chaining on persisted.clientState since
persisted is guaranteed non-null at that point.
2026-07-06 18:07:52 +02:00
homarr-renovate[bot] 24188ce51f chore(deps): update dependency posthog-node to ^5.39.2 (#6226)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-07-06 14:37:51 +00:00
homarr-renovate[bot] e31f60fdec chore(deps): update dependency cookie to v2.0.1 (#6223)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-07-06 14:36:14 +00:00
homarr-renovate[bot] 6bb547f3c5 chore(deps): update dependency conventional-changelog-conventionalcommits to ^10.2.0 (#6222)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-07-06 10:32:35 +00:00
Thomas b07cc14d0e Merge pull request #6221 from homarr-labs/feat/fix-build
fix(deps): revert typescript from 7.0.1-rc to ^6.0.3
2026-07-06 12:16:11 +02:00
3 changed files with 14 additions and 14 deletions

No files matched your search

@@ -123,9 +123,9 @@ async function QueryCacheHydration({ userId, boardId }: { userId: string; boardI
const serialized = await getQueryCacheAsync(userId, boardId);
if (!serialized) return null;
const persisted = superjson.parse<PersistedClient>(serialized);
if (persisted.buster !== queryCacheBuster) return null;
if (!persisted?.clientState?.queries?.length) return null;
const persisted = superjson.parse<PersistedClient | undefined>(serialized);
if (!persisted || persisted.buster !== queryCacheBuster) return null;
if (!persisted.clientState?.queries?.length) return null;
return <HydrationBoundary state={persisted.clientState} />;
} catch (error) {
+8 -8
View File
@@ -307,11 +307,11 @@ catalogs:
specifier: ^10.0.3
version: 10.0.3
conventional-changelog-conventionalcommits:
specifier: ^10.0.0
specifier: ^10.2.0
version: 10.2.0
cookie:
specifier: 2.0.0
version: 2.0.0
specifier: 2.0.1
version: 2.0.1
cookies:
specifier: ^0.9.1
version: 0.9.1
@@ -445,7 +445,7 @@ catalogs:
specifier: ^1.396.3
version: 1.396.5
posthog-node:
specifier: ^5.39.1
specifier: ^5.39.2
version: 5.39.4
prismjs:
specifier: ^1.30.0
@@ -1482,7 +1482,7 @@ importers:
version: 3.3.0
cookie:
specifier: 'catalog:'
version: 2.0.0
version: 2.0.1
dayjs:
specifier: 'catalog:'
version: 1.11.21
@@ -9133,8 +9133,8 @@ packages:
resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==}
engines: {node: '>=18'}
cookie@2.0.0:
resolution: {integrity: sha512-hRSFuKJ6SYHrFVNltQdagQFMk7e0Q/VrORTGqZGyUAmmhA3EwPeldHCTg0HqUaDodQOfQDe7qXuOtpf4lwCsaA==}
cookie@2.0.1:
resolution: {integrity: sha512-yuToqVvRrj6pfDXREyQAAv8SkAEk/8GS3jQRTiUMm66TVtBYmqQeoEjL2Lmq8Rpo6271vH76InTChTitEAm65w==}
engines: {node: '>=22'}
cookies@0.9.1:
@@ -22931,7 +22931,7 @@ snapshots:
cookie@1.1.1: {}
cookie@2.0.0: {}
cookie@2.0.1: {}
cookies@0.9.1:
dependencies:
+3 -3
View File
@@ -94,7 +94,7 @@ catalog:
"@types/ws": ^8.18.1
"@types/xml2js": ^0.4.14
posthog-js: ^1.396.3
posthog-node: ^5.39.1
posthog-node: ^5.39.2
"@vitejs/plugin-react": ^6.0.3
"@vitest/coverage-v8": ^4.1.9
"@vitest/ui": ^4.1.9
@@ -110,8 +110,8 @@ catalog:
chroma-js: ^3.2.0
clsx: ^2.1.1
concurrently: ^10.0.3
conventional-changelog-conventionalcommits: ^10.0.0
cookie: 2.0.0
conventional-changelog-conventionalcommits: ^10.2.0
cookie: 2.0.1
cookies: ^0.9.1
croner: 10.0.1
cross-env: ^10.1.0