rocicorp / replicache

Realtime Sync for Any Backend Stack
https://doc.replicache.dev
1.05k stars 37 forks source link

feat!: Include versions in IDB name #741

Closed arv closed 2 years ago

arv commented 2 years ago

For Simplified Dueling Dags we need to ensure that different tabs running different versions of Replicache do not interact with IDB data it does not know how to read/write.

To achieve this the name if the IDB database now contains the REPLICACHE_FORMAT_VERSION (which is currently at 3).

The IDB name also contains the schemaVersion som if the schema changes a fresh IDB database is used. The motivation is the same. Multiple tabs with different schemaVersions should not interact with the same IDB database.

BREAKING CHANGE

Towards #671

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/rocicorp/replicache/Fyukp7EdZq3J72biaBqXg3B8DE5R
✅ Preview: https://replicache-git-fork-arv-idb-name-rocicorp.vercel.app

grgbkr commented 2 years ago

LGTM