v0.1.0
Core
-
Breaking: Updated storage format version to 2 (will create new database files)
-
Breaking: Changed
schema.keytostoreId#175// before const schema = makeSchema({ tables, mutations, key: 'my-app-id' }) // ... <LiveStoreProvider schema={schema} storeId="my-app-id"> // after const schema = makeSchema({ tables, mutations }) // ... <LiveStoreProvider schema={schema} storeId="my-app-id">
-
Breaking: Removed
useLocalId/getLocalIdin favour ofstore.sessionId/SessionIdSymbol -
Upgraded dependencies
- If you're using
effectin your project, make sure to install version3.10.x- Note the new version of
effectnow includesSchemadirectly, so@effect/schemais no longer needed as a separate dependency. (See Effect blog post.)
- Note the new version of
- If you're using
-
Breaking: Moved
effect-db-schemato@livestore/db-schema(mostly an internal change unless you're using the package directly) -
Breaking: Adjusted
bootsignature when creating a store to now pass in aStoreinstead of a helper database object<LiveStoreProvider schema={schema} boot={(store) => store.mutate(mutations.addTodo({ id: cuid(), text: 'Make coffee' }))} adapter={adapter} batchUpdates={batchUpdates} > // ... </LiveStoreProvider>
-
Prepared the foundations for the upcoming rebase sync protocol
- Implementation detail: New event id strategy (uses a global event id integer sequence number and each event also keeps a reference to its parent event id)
React integration
-
Breaking: The React integration has been moved into a new separate package:
@livestore/react(before:@livestore/livestore/react) -
Breaking: Renamed
useTemporaryQuerytouseScopedQuery
Web adapter
-
Devtools address is now automatically logged during development making connecting easier.
-
Breaking: Changed syncing adapter interface:
const adapter = makeAdapter({ storage: { type: 'opfs' }, worker: LiveStoreWorker, sharedWorker: LiveStoreSharedWorker, syncBackend: { type: 'cf', url: import.meta.env.VITE_LIVESTORE_SYNC_URL, roomId: `todomvc_${appId}`, }, })
Expo adapter
-
Updated to Expo SDK 52 (
52.0.0-preview.23) -
Fix: Crash in release builds #206
-
Fix: Disable devtools in release builds #205
Devtools
-
Fix: Databrowser no longer crashes when removing tables #189
-
Breaking (in combination with web adapter): Removed
_devtools.htmlin favour of@livestore/devtools-vite. #192-
Replace
@livestore/devtools-reactwith@livestore/devtools-vitein yourpackage.json -
Delete
_devtools.htmlif it exists -
Add the following to your
vite.config.ts:import { livestoreDevtoolsPlugin } from '@livestore/devtools-vite' export default defineConfig({ // ... plugins: [ // ... livestoreDevtoolsPlugin({ schemaPath: './src/db/schema/index.ts' }), // ... ], })
-

