Skip to content

Commit 2376b47

Browse files
KyleAMathewsclaudeautofix-ci[bot]samwillis
authored
refactor: rename persistence packages to follow naming convention (#1404)
* refactor: rename persistence packages to follow {variant}-db-{subsystem} convention Aligns SQLite persistence package names with the existing naming scheme used by other packages (e.g. electric-db-collection, react-db). Renames: - db-sqlite-persisted-collection-core → db-persistence-core - db-tauri-sqlite-persisted-collection → tauri-db-persistence - db-expo-sqlite-persisted-collection → expo-db-persistence - db-node-sqlite-persisted-collection → node-db-persistence - db-electron-sqlite-persisted-collection → electron-db-persistence - db-cloudflare-do-sqlite-persisted-collection → cloudflare-durable-objects-db-persistence - db-capacitor-sqlite-persisted-collection → capacitor-db-persistence - db-browser-wa-sqlite-persisted-collection → browser-db-persistence - db-react-native-sqlite-persisted-collection → react-native-db-persistence Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * ci: apply automated fixes * refactor: rename persistence packages to sqlite-persistence Update all persistence package names to include sqlite qualifier, e.g. @tanstack/tauri-db-persistence → @tanstack/tauri-db-sqlite-persistence Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * refactor: update remaining old persisted-collection package names to sqlite-persistence Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix deps * fix: restore RN example runtime compatibility Pin the Expo React Native examples back to React 19.0.0, keep the missing expo-router runtime dependency explicit, and retain the Metro singleton resolution fix so the mobile apps boot cleanly again after the package renames. Made-with: Cursor * chore: remove old persistence planning docs Drop the outdated persistence plan documents that were deleted on this branch so the repo history matches the current package direction. Made-with: Cursor --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Sam Willis <sam.willis@gmail.com>
1 parent 3274a29 commit 2376b47

File tree

244 files changed

+627
-3082
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

244 files changed

+627
-3082
lines changed

.changeset/persisted-metadata-followups.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
'@tanstack/db': patch
3-
'@tanstack/db-sqlite-persisted-collection-core': patch
3+
'@tanstack/db-sqlite-persistence-core': patch
44
'@tanstack/electric-db-collection': patch
55
---
66

.changeset/sqlite-persistence.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
11
---
22
'@tanstack/db': patch
3-
'@tanstack/db-sqlite-persisted-collection-core': patch
4-
'@tanstack/db-browser-wa-sqlite-persisted-collection': patch
5-
'@tanstack/db-cloudflare-do-sqlite-persisted-collection': patch
6-
'@tanstack/db-node-sqlite-persisted-collection': patch
7-
'@tanstack/db-electron-sqlite-persisted-collection': patch
8-
'@tanstack/db-expo-sqlite-persisted-collection': patch
9-
'@tanstack/db-react-native-sqlite-persisted-collection': patch
10-
'@tanstack/db-capacitor-sqlite-persisted-collection': patch
11-
'@tanstack/db-tauri-sqlite-persisted-collection': patch
3+
'@tanstack/db-sqlite-persistence-core': patch
4+
'@tanstack/browser-db-sqlite-persistence': patch
5+
'@tanstack/cloudflare-durable-objects-db-sqlite-persistence': patch
6+
'@tanstack/node-db-sqlite-persistence': patch
7+
'@tanstack/electron-db-sqlite-persistence': patch
8+
'@tanstack/expo-db-sqlite-persistence': patch
9+
'@tanstack/react-native-db-sqlite-persistence': patch
10+
'@tanstack/capacitor-db-sqlite-persistence': patch
11+
'@tanstack/tauri-db-sqlite-persistence': patch
1212
---
1313

1414
feat(persistence): add SQLite-based offline persistence for collections
1515

1616
Adds a new persistence layer that durably stores collection data in SQLite, enabling applications to survive page reloads and app restarts across browser, Node, mobile, desktop, and edge runtimes.
1717

18-
**Core persistence (`@tanstack/db-sqlite-persisted-collection-core`)**
18+
**Core persistence (`@tanstack/db-sqlite-persistence-core`)**
1919

2020
- New package providing the shared SQLite persistence runtime: hydration, streaming, transaction tracking, and applied-tx pruning
2121
- SQLite core adapter with full query compilation, index management, and schema migration support
2222
- Portable conformance test contracts for runtime-specific adapters
2323

24-
**Browser (`@tanstack/db-browser-wa-sqlite-persisted-collection`)**
24+
**Browser (`@tanstack/browser-db-sqlite-persistence`)**
2525

2626
- New package for browser persistence via wa-sqlite backed by OPFS
2727
- Single-tab persistence with OPFS-based SQLite storage
2828
- `BrowserCollectionCoordinator` for multi-tab leader-election and cross-tab sync
2929

30-
**Cloudflare Durable Objects (`@tanstack/db-cloudflare-do-sqlite-persisted-collection`)**
30+
**Cloudflare Durable Objects (`@tanstack/cloudflare-durable-objects-db-sqlite-persistence`)**
3131

3232
- New package for SQLite persistence in Cloudflare Durable Objects runtimes
3333

34-
**Node (`@tanstack/db-node-sqlite-persisted-collection`)**
34+
**Node (`@tanstack/node-db-sqlite-persistence`)**
3535

3636
- New package for Node persistence via SQLite
3737

38-
**Electron (`@tanstack/db-electron-sqlite-persisted-collection`)**
38+
**Electron (`@tanstack/electron-db-sqlite-persistence`)**
3939

4040
- New package providing Electron main and renderer persistence bridge helpers
4141

42-
**Expo (`@tanstack/db-expo-sqlite-persisted-collection`)**
42+
**Expo (`@tanstack/expo-db-sqlite-persistence`)**
4343

4444
- New package for Expo persistence via `expo-sqlite`
4545

46-
**React Native (`@tanstack/db-react-native-sqlite-persisted-collection`)**
46+
**React Native (`@tanstack/react-native-db-sqlite-persistence`)**
4747

4848
- New package for React Native persistence via op-sqlite
4949
- Adapter with transaction deadlock prevention and runtime parity coverage
5050

51-
**Capacitor (`@tanstack/db-capacitor-sqlite-persisted-collection`)**
51+
**Capacitor (`@tanstack/capacitor-db-sqlite-persistence`)**
5252

5353
- New package for Capacitor persistence via `@capacitor-community/sqlite`
5454

55-
**Tauri (`@tanstack/db-tauri-sqlite-persisted-collection`)**
55+
**Tauri (`@tanstack/tauri-db-sqlite-persistence`)**
5656

5757
- New package for Tauri persistence via `@tauri-apps/plugin-sql`

.github/workflows/e2e-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,22 @@ jobs:
6565

6666
- name: Run Node SQLite persisted collection E2E tests
6767
run: |
68-
cd packages/db-node-sqlite-persisted-collection
68+
cd packages/node-db-sqlite-persistence
6969
pnpm test:e2e
7070
7171
- name: Run Electron SQLite persisted collection E2E tests
7272
run: |
73-
cd packages/db-electron-sqlite-persisted-collection
73+
cd packages/electron-db-sqlite-persistence
7474
pnpm test:e2e
7575
7676
- name: Run Cloudflare Durable Object persisted collection E2E tests
7777
run: |
78-
cd packages/db-cloudflare-do-sqlite-persisted-collection
78+
cd packages/cloudflare-durable-objects-db-sqlite-persistence
7979
pnpm test:e2e
8080
8181
- name: Run React Native/Expo persisted collection E2E tests
8282
run: |
83-
cd packages/db-react-native-sqlite-persisted-collection
83+
cd packages/react-native-db-sqlite-persistence
8484
pnpm test:e2e
8585
8686
- name: Run React Native/Expo runtime E2E lane
@@ -108,7 +108,7 @@ jobs:
108108
exit 0
109109
fi
110110
111-
cd packages/db-react-native-sqlite-persisted-collection
111+
cd packages/react-native-db-sqlite-persistence
112112
pnpm test:e2e:runtime
113113
env:
114114
TANSTACK_DB_MOBILE_SQLITE_FACTORY_MODULE: ${{ vars.TANSTACK_DB_MOBILE_SQLITE_FACTORY_MODULE }}

0 commit comments

Comments
 (0)