Skip to content

Commit e7ca15f

Browse files
chore: add changeset for PowerSync add-on (#448)
chore: add changeset for PowerSync add-on (#407) Minor bump for @tanstack/cli and @tanstack/create to release the React PowerSync scaffolding add-on merged in 8f24af5.
1 parent fbcbf6e commit e7ca15f

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.changeset/powersync-addon.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
'@tanstack/cli': minor
3+
'@tanstack/create': minor
4+
---
5+
6+
feat(create): add React PowerSync scaffolding add-on
7+
8+
`tanstack add powersync` (or `--add-ons powersync` on `tanstack create`)
9+
wires the PowerSync Web SDK into a React TanStack Start app:
10+
11+
- `@powersync/web` + `@powersync/react` + `@journeyapps/wa-sqlite`
12+
dependencies and a Vite plugin that excludes `@powersync/web` from
13+
`optimizeDeps` and emits ES-module workers (required for the
14+
WA-SQLite VFS).
15+
- A `PowerSyncProvider` integration that opens a WA-SQLite database
16+
and connects with `disableSSRWarning` so SSR doesn't warn.
17+
- A sample `AppSchema` (todos table) and `BackendConnector` with
18+
`fetchCredentials` reading `VITE_POWERSYNC_URL` / `VITE_POWERSYNC_TOKEN`
19+
from `.env.local` and a stubbed `uploadData()` ready for the user's
20+
upstream write logic.
21+
- A `/demo/powersync` route that inserts rows locally and renders
22+
live `useQuery` results plus connection status, so the scaffold
23+
works zero-config and shows the SDK is wired up before any
24+
PowerSync instance is configured.

0 commit comments

Comments
 (0)