Open History to see the last commit
1# TanStack DB SSR Release Plan
2
3## Release Goal
4
5Ship TanStack DB SSR as a single coherent story:
6
7- explicit collection-row hydration and live-query result snapshots through
8 `DbClient`
9- React and Svelte provider and descriptor resolution
10- derived live query identity with `queryKey` only when necessary
11- backwards-compatible dependency arrays with dev warnings until 1.0
12- a working TanStack Start demo and E2E proof
13
14## Pre-release Validation
15
16- Run `pnpm --filter @tanstack/db test`.
17- Run `pnpm --filter @tanstack/react-db test`.
18- Run `pnpm --filter @tanstack/svelte-db test`.
19- Run `pnpm --filter @tanstack/react-router-with-db test` (includes type
20 tests).
21- Run `pnpm --filter @tanstack/query-db-collection test`.
22- Run `pnpm --filter @tanstack/db-sqlite-persistence-core test`.
23- Run `pnpm --filter @tanstack/db-example-react-start-ssr-e2e test:e2e`.
24- Run `pnpm --filter @tanstack/db-example-react-next-ssr-e2e test:e2e`.
25- Run `pnpm test:docs`.
26- Run `pnpm test:sherif`.
27- Run `pnpm build`.
28
29## Demo
30
31- Live URL: https://tanstack-db-ssr-demo.netlify.app/ssr-db
32- Deploy `examples/react/start-ssr-e2e` to an SSR-capable host.
33- Verify the deployed `/ssr-db` route serves SSR HTML with hydrated rows.
34- Verify browser hydration succeeds without console/page errors.
35- Verify the streamed collection chunk updates the live query.
36- Verify `/ssr-db-stream` streams a projected result, omits source-only data,
37 and hands off to browser sync.
38- Run `PLAYWRIGHT_BASE_URL=https://tanstack-db-ssr-demo.netlify.app pnpm --filter @tanstack/db-example-react-start-ssr-e2e test:e2e:hosted`.
39- Add the live URL to the PR description and release notes.
40
41## Docs
42
43- Publish the [SSR and Hydration guide](../docs/guides/ssr.md).
44- Link the guide from overview, quick start, live queries, and React overview.
45- Regenerate API reference docs in a dedicated docs-maintenance pass if broad
46 TypeDoc output churn is acceptable.
47- Confirm docs explain when `queryKey` is necessary and when it should be
48 omitted.
49- Confirm docs say dependency arrays warn now and are removed in 1.0.
50
51## Migration Messaging
52
53- Lead with: explicit collection preloads transport normalized rows; live-query
54 preloads transport only their result snapshot.
55- Emphasize that existing apps keep working.
56- State that `createCollection(...)` remains available, but SSR apps should use
57 `collectionOptions(...)` plus `DbClient`.
58- Explain that React dependency arrays are deprecated with a 1.0 removal path.
59- Show `queryKey` only for opaque functional query logic or hot render paths.
60
61## Announcement Checklist
62
63- PR description includes high-level summary, migration cheat sheet, and test
64 commands.
65- Release notes include a "No removals in this release" compatibility section.
66- Discord announcement links the SSR guide and live demo.
67- Example migration diff is available from the Start SSR demo.
68- Follow-up issues are filed for the remaining framework adapters and API
69 reference generation if they are not part of the shipping PR.