tinybase 6.0.0-beta.1 → 6.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/_internal/queries/with-schemas/index.d.cts +6 -6
- package/@types/_internal/queries/with-schemas/index.d.ts +6 -6
- package/@types/_internal/store/with-schemas/index.d.cts +1 -1
- package/@types/_internal/store/with-schemas/index.d.ts +1 -1
- package/@types/_internal/ui-react/with-schemas/index.d.cts +13 -13
- package/@types/_internal/ui-react/with-schemas/index.d.ts +13 -13
- package/@types/checkpoints/index.d.cts +0 -1
- package/@types/checkpoints/index.d.ts +0 -1
- package/@types/checkpoints/with-schemas/index.d.cts +0 -1
- package/@types/checkpoints/with-schemas/index.d.ts +0 -1
- package/@types/indexes/index.d.cts +1 -2
- package/@types/indexes/index.d.ts +1 -2
- package/@types/indexes/with-schemas/index.d.cts +6 -7
- package/@types/indexes/with-schemas/index.d.ts +6 -7
- package/@types/mergeable-store/index.d.cts +1 -2
- package/@types/mergeable-store/index.d.ts +1 -2
- package/@types/mergeable-store/with-schemas/index.d.cts +1 -2
- package/@types/mergeable-store/with-schemas/index.d.ts +1 -2
- package/@types/metrics/index.d.cts +1 -2
- package/@types/metrics/index.d.ts +1 -2
- package/@types/metrics/with-schemas/index.d.cts +1 -2
- package/@types/metrics/with-schemas/index.d.ts +1 -2
- package/@types/persisters/index.d.cts +22 -23
- package/@types/persisters/index.d.ts +22 -23
- package/@types/persisters/persister-automerge/index.d.cts +6 -7
- package/@types/persisters/persister-automerge/index.d.ts +6 -7
- package/@types/persisters/persister-automerge/with-schemas/index.d.cts +5 -6
- package/@types/persisters/persister-automerge/with-schemas/index.d.ts +5 -6
- package/@types/persisters/persister-browser/index.d.cts +5 -6
- package/@types/persisters/persister-browser/index.d.ts +5 -6
- package/@types/persisters/persister-browser/with-schemas/index.d.cts +5 -6
- package/@types/persisters/persister-browser/with-schemas/index.d.ts +5 -6
- package/@types/persisters/persister-cr-sqlite-wasm/index.d.cts +7 -8
- package/@types/persisters/persister-cr-sqlite-wasm/index.d.ts +7 -8
- package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.cts +10 -11
- package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.ts +10 -11
- package/@types/persisters/persister-durable-object-storage/index.d.cts +5 -6
- package/@types/persisters/persister-durable-object-storage/index.d.ts +5 -6
- package/@types/persisters/persister-durable-object-storage/with-schemas/index.d.cts +5 -6
- package/@types/persisters/persister-durable-object-storage/with-schemas/index.d.ts +5 -6
- package/@types/persisters/persister-electric-sql/index.d.cts +7 -8
- package/@types/persisters/persister-electric-sql/index.d.ts +7 -8
- package/@types/persisters/persister-electric-sql/with-schemas/index.d.cts +10 -11
- package/@types/persisters/persister-electric-sql/with-schemas/index.d.ts +10 -11
- package/@types/persisters/persister-expo-sqlite/index.d.cts +8 -9
- package/@types/persisters/persister-expo-sqlite/index.d.ts +8 -9
- package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.cts +11 -12
- package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.ts +11 -12
- package/@types/persisters/persister-file/index.d.cts +3 -4
- package/@types/persisters/persister-file/index.d.ts +3 -4
- package/@types/persisters/persister-file/with-schemas/index.d.cts +3 -4
- package/@types/persisters/persister-file/with-schemas/index.d.ts +3 -4
- package/@types/persisters/persister-indexed-db/index.d.cts +3 -4
- package/@types/persisters/persister-indexed-db/index.d.ts +3 -4
- package/@types/persisters/persister-indexed-db/with-schemas/index.d.cts +2 -3
- package/@types/persisters/persister-indexed-db/with-schemas/index.d.ts +2 -3
- package/@types/persisters/persister-libsql/index.d.cts +4 -5
- package/@types/persisters/persister-libsql/index.d.ts +4 -5
- package/@types/persisters/persister-libsql/with-schemas/index.d.cts +7 -8
- package/@types/persisters/persister-libsql/with-schemas/index.d.ts +7 -8
- package/@types/persisters/persister-partykit-client/index.d.cts +4 -5
- package/@types/persisters/persister-partykit-client/index.d.ts +4 -5
- package/@types/persisters/persister-partykit-client/with-schemas/index.d.cts +3 -4
- package/@types/persisters/persister-partykit-client/with-schemas/index.d.ts +3 -4
- package/@types/persisters/persister-partykit-server/index.d.cts +1 -2
- package/@types/persisters/persister-partykit-server/index.d.ts +1 -2
- package/@types/persisters/persister-partykit-server/with-schemas/index.d.cts +1 -2
- package/@types/persisters/persister-partykit-server/with-schemas/index.d.ts +1 -2
- package/@types/persisters/persister-pglite/index.d.cts +5 -6
- package/@types/persisters/persister-pglite/index.d.ts +5 -6
- package/@types/persisters/persister-pglite/with-schemas/index.d.cts +8 -9
- package/@types/persisters/persister-pglite/with-schemas/index.d.ts +8 -9
- package/@types/persisters/persister-postgres/index.d.cts +8 -9
- package/@types/persisters/persister-postgres/index.d.ts +8 -9
- package/@types/persisters/persister-postgres/with-schemas/index.d.cts +11 -12
- package/@types/persisters/persister-postgres/with-schemas/index.d.ts +11 -12
- package/@types/persisters/persister-powersync/index.d.cts +7 -8
- package/@types/persisters/persister-powersync/index.d.ts +7 -8
- package/@types/persisters/persister-powersync/with-schemas/index.d.cts +10 -11
- package/@types/persisters/persister-powersync/with-schemas/index.d.ts +10 -11
- package/@types/persisters/persister-remote/index.d.cts +3 -4
- package/@types/persisters/persister-remote/index.d.ts +3 -4
- package/@types/persisters/persister-remote/with-schemas/index.d.cts +2 -3
- package/@types/persisters/persister-remote/with-schemas/index.d.ts +2 -3
- package/@types/persisters/persister-sqlite-wasm/index.d.cts +7 -8
- package/@types/persisters/persister-sqlite-wasm/index.d.ts +7 -8
- package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.cts +11 -12
- package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.ts +11 -12
- package/@types/persisters/persister-sqlite3/index.d.cts +5 -6
- package/@types/persisters/persister-sqlite3/index.d.ts +5 -6
- package/@types/persisters/persister-sqlite3/with-schemas/index.d.cts +8 -9
- package/@types/persisters/persister-sqlite3/with-schemas/index.d.ts +8 -9
- package/@types/persisters/persister-yjs/index.d.cts +4 -5
- package/@types/persisters/persister-yjs/index.d.ts +4 -5
- package/@types/persisters/persister-yjs/with-schemas/index.d.cts +3 -4
- package/@types/persisters/persister-yjs/with-schemas/index.d.ts +3 -4
- package/@types/persisters/with-schemas/index.d.cts +26 -27
- package/@types/persisters/with-schemas/index.d.ts +26 -27
- package/@types/queries/index.d.cts +1 -2
- package/@types/queries/index.d.ts +1 -2
- package/@types/queries/with-schemas/index.d.cts +10 -11
- package/@types/queries/with-schemas/index.d.ts +10 -11
- package/@types/relationships/index.d.cts +25 -2
- package/@types/relationships/index.d.ts +25 -2
- package/@types/relationships/with-schemas/index.d.cts +25 -2
- package/@types/relationships/with-schemas/index.d.ts +25 -2
- package/@types/store/index.d.cts +1 -2
- package/@types/store/index.d.ts +1 -2
- package/@types/store/with-schemas/index.d.cts +0 -1
- package/@types/store/with-schemas/index.d.ts +0 -1
- package/@types/synchronizers/index.d.cts +6 -7
- package/@types/synchronizers/index.d.ts +6 -7
- package/@types/synchronizers/synchronizer-broadcast-channel/index.d.cts +3 -4
- package/@types/synchronizers/synchronizer-broadcast-channel/index.d.ts +3 -4
- package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.cts +3 -4
- package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.ts +3 -4
- package/@types/synchronizers/synchronizer-local/index.d.cts +2 -3
- package/@types/synchronizers/synchronizer-local/index.d.ts +2 -3
- package/@types/synchronizers/synchronizer-local/with-schemas/index.d.cts +2 -3
- package/@types/synchronizers/synchronizer-local/with-schemas/index.d.ts +2 -3
- package/@types/synchronizers/synchronizer-ws-client/index.d.cts +5 -6
- package/@types/synchronizers/synchronizer-ws-client/index.d.ts +5 -6
- package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.cts +5 -6
- package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.ts +5 -6
- package/@types/synchronizers/synchronizer-ws-server/index.d.cts +30 -32
- package/@types/synchronizers/synchronizer-ws-server/index.d.ts +30 -32
- package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.cts +34 -36
- package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.ts +34 -36
- package/@types/synchronizers/synchronizer-ws-server-durable-object/index.d.cts +2 -3
- package/@types/synchronizers/synchronizer-ws-server-durable-object/index.d.ts +2 -3
- package/@types/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.d.cts +6 -7
- package/@types/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.d.ts +6 -7
- package/@types/synchronizers/synchronizer-ws-server-simple/index.d.cts +4 -5
- package/@types/synchronizers/synchronizer-ws-server-simple/index.d.ts +4 -5
- package/@types/synchronizers/synchronizer-ws-server-simple/with-schemas/index.d.cts +4 -5
- package/@types/synchronizers/synchronizer-ws-server-simple/with-schemas/index.d.ts +4 -5
- package/@types/synchronizers/with-schemas/index.d.cts +10 -11
- package/@types/synchronizers/with-schemas/index.d.ts +10 -11
- package/@types/ui-react/index.d.cts +489 -490
- package/@types/ui-react/index.d.ts +489 -490
- package/@types/ui-react/with-schemas/index.d.cts +494 -495
- package/@types/ui-react/with-schemas/index.d.ts +494 -495
- package/@types/ui-react-dom/index.d.cts +39 -40
- package/@types/ui-react-dom/index.d.ts +39 -40
- package/@types/ui-react-dom/with-schemas/index.d.cts +39 -40
- package/@types/ui-react-dom/with-schemas/index.d.ts +39 -40
- package/@types/ui-react-inspector/index.d.cts +2 -3
- package/@types/ui-react-inspector/index.d.ts +2 -3
- package/@types/ui-react-inspector/with-schemas/index.d.cts +41 -42
- package/@types/ui-react-inspector/with-schemas/index.d.ts +41 -42
- package/checkpoints/index.js +9 -9
- package/checkpoints/with-schemas/index.js +9 -9
- package/index.js +110 -110
- package/indexes/index.js +3 -3
- package/indexes/with-schemas/index.js +3 -3
- package/mergeable-store/index.js +150 -150
- package/mergeable-store/with-schemas/index.js +150 -150
- package/metrics/index.js +3 -3
- package/metrics/with-schemas/index.js +3 -3
- package/min/checkpoints/index.js +1 -1
- package/min/checkpoints/index.js.gz +0 -0
- package/min/checkpoints/with-schemas/index.js +1 -1
- package/min/checkpoints/with-schemas/index.js.gz +0 -0
- package/min/index.js +1 -1
- package/min/index.js.gz +0 -0
- package/min/indexes/index.js +1 -1
- package/min/indexes/index.js.gz +0 -0
- package/min/indexes/with-schemas/index.js +1 -1
- package/min/indexes/with-schemas/index.js.gz +0 -0
- package/min/mergeable-store/index.js +1 -1
- package/min/mergeable-store/index.js.gz +0 -0
- package/min/mergeable-store/with-schemas/index.js +1 -1
- package/min/mergeable-store/with-schemas/index.js.gz +0 -0
- package/min/metrics/index.js +1 -1
- package/min/metrics/index.js.gz +0 -0
- package/min/metrics/with-schemas/index.js +1 -1
- package/min/metrics/with-schemas/index.js.gz +0 -0
- package/min/persisters/index.js +1 -1
- package/min/persisters/index.js.gz +0 -0
- package/min/persisters/persister-automerge/index.js +1 -1
- package/min/persisters/persister-automerge/index.js.gz +0 -0
- package/min/persisters/persister-automerge/with-schemas/index.js +1 -1
- package/min/persisters/persister-automerge/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-browser/index.js +1 -1
- package/min/persisters/persister-browser/index.js.gz +0 -0
- package/min/persisters/persister-browser/with-schemas/index.js +1 -1
- package/min/persisters/persister-browser/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-cr-sqlite-wasm/index.js +1 -1
- package/min/persisters/persister-cr-sqlite-wasm/index.js.gz +0 -0
- package/min/persisters/persister-cr-sqlite-wasm/with-schemas/index.js +1 -1
- package/min/persisters/persister-cr-sqlite-wasm/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-durable-object-storage/index.js +1 -1
- package/min/persisters/persister-durable-object-storage/index.js.gz +0 -0
- package/min/persisters/persister-durable-object-storage/with-schemas/index.js +1 -1
- package/min/persisters/persister-durable-object-storage/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-electric-sql/index.js +1 -1
- package/min/persisters/persister-electric-sql/index.js.gz +0 -0
- package/min/persisters/persister-electric-sql/with-schemas/index.js +1 -1
- package/min/persisters/persister-electric-sql/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-expo-sqlite/index.js +1 -1
- package/min/persisters/persister-expo-sqlite/index.js.gz +0 -0
- package/min/persisters/persister-expo-sqlite/with-schemas/index.js +1 -1
- package/min/persisters/persister-expo-sqlite/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-file/index.js +1 -1
- package/min/persisters/persister-file/index.js.gz +0 -0
- package/min/persisters/persister-file/with-schemas/index.js +1 -1
- package/min/persisters/persister-file/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-indexed-db/index.js +1 -1
- package/min/persisters/persister-indexed-db/index.js.gz +0 -0
- package/min/persisters/persister-indexed-db/with-schemas/index.js +1 -1
- package/min/persisters/persister-indexed-db/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-libsql/index.js +1 -1
- package/min/persisters/persister-libsql/index.js.gz +0 -0
- package/min/persisters/persister-libsql/with-schemas/index.js +1 -1
- package/min/persisters/persister-libsql/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-partykit-client/index.js +1 -1
- package/min/persisters/persister-partykit-client/index.js.gz +0 -0
- package/min/persisters/persister-partykit-client/with-schemas/index.js +1 -1
- package/min/persisters/persister-partykit-client/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-partykit-server/index.js +1 -1
- package/min/persisters/persister-partykit-server/index.js.gz +0 -0
- package/min/persisters/persister-partykit-server/with-schemas/index.js +1 -1
- package/min/persisters/persister-partykit-server/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-pglite/index.js +1 -1
- package/min/persisters/persister-pglite/index.js.gz +0 -0
- package/min/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-postgres/index.js +1 -1
- package/min/persisters/persister-postgres/index.js.gz +0 -0
- package/min/persisters/persister-postgres/with-schemas/index.js +1 -1
- package/min/persisters/persister-postgres/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-powersync/index.js +1 -1
- package/min/persisters/persister-powersync/index.js.gz +0 -0
- package/min/persisters/persister-powersync/with-schemas/index.js +1 -1
- package/min/persisters/persister-powersync/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-remote/index.js +1 -1
- package/min/persisters/persister-remote/index.js.gz +0 -0
- package/min/persisters/persister-remote/with-schemas/index.js +1 -1
- package/min/persisters/persister-remote/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-sqlite-wasm/index.js +1 -1
- package/min/persisters/persister-sqlite-wasm/index.js.gz +0 -0
- package/min/persisters/persister-sqlite-wasm/with-schemas/index.js +1 -1
- package/min/persisters/persister-sqlite-wasm/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-sqlite3/index.js +1 -1
- package/min/persisters/persister-sqlite3/index.js.gz +0 -0
- package/min/persisters/persister-sqlite3/with-schemas/index.js +1 -1
- package/min/persisters/persister-sqlite3/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-yjs/index.js +1 -1
- package/min/persisters/persister-yjs/index.js.gz +0 -0
- package/min/persisters/persister-yjs/with-schemas/index.js +1 -1
- package/min/persisters/persister-yjs/with-schemas/index.js.gz +0 -0
- package/min/persisters/with-schemas/index.js +1 -1
- package/min/persisters/with-schemas/index.js.gz +0 -0
- package/min/queries/index.js +1 -1
- package/min/queries/index.js.gz +0 -0
- package/min/queries/with-schemas/index.js +1 -1
- package/min/queries/with-schemas/index.js.gz +0 -0
- package/min/relationships/index.js +1 -1
- package/min/relationships/index.js.gz +0 -0
- package/min/relationships/with-schemas/index.js +1 -1
- package/min/relationships/with-schemas/index.js.gz +0 -0
- package/min/store/index.js +1 -1
- package/min/store/index.js.gz +0 -0
- package/min/store/with-schemas/index.js +1 -1
- package/min/store/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/index.js +1 -1
- package/min/synchronizers/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
- package/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-local/index.js +1 -1
- package/min/synchronizers/synchronizer-local/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-local/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server-durable-object/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server-durable-object/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server-simple/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server-simple/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server-simple/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server-simple/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/with-schemas/index.js +1 -1
- package/min/synchronizers/with-schemas/index.js.gz +0 -0
- package/min/ui-react/index.js +1 -1
- package/min/ui-react/index.js.gz +0 -0
- package/min/ui-react/with-schemas/index.js +1 -1
- package/min/ui-react/with-schemas/index.js.gz +0 -0
- package/min/ui-react-dom/index.js +1 -1
- package/min/ui-react-dom/index.js.gz +0 -0
- package/min/ui-react-dom/with-schemas/index.js +1 -1
- package/min/ui-react-dom/with-schemas/index.js.gz +0 -0
- package/min/ui-react-inspector/index.js +1 -1
- package/min/ui-react-inspector/index.js.gz +0 -0
- package/min/ui-react-inspector/with-schemas/index.js +1 -1
- package/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
- package/min/with-schemas/index.js +1 -1
- package/min/with-schemas/index.js.gz +0 -0
- package/package.json +4 -44
- package/persisters/index.js +120 -120
- package/persisters/persister-automerge/index.js +8 -8
- package/persisters/persister-automerge/with-schemas/index.js +8 -8
- package/persisters/persister-browser/index.js +8 -8
- package/persisters/persister-browser/with-schemas/index.js +8 -8
- package/persisters/persister-cr-sqlite-wasm/index.js +119 -119
- package/persisters/persister-cr-sqlite-wasm/with-schemas/index.js +119 -119
- package/persisters/persister-durable-object-storage/index.js +12 -12
- package/persisters/persister-durable-object-storage/with-schemas/index.js +12 -12
- package/persisters/persister-electric-sql/index.js +119 -119
- package/persisters/persister-electric-sql/with-schemas/index.js +119 -119
- package/persisters/persister-expo-sqlite/index.js +119 -119
- package/persisters/persister-expo-sqlite/with-schemas/index.js +119 -119
- package/persisters/persister-file/index.js +10 -10
- package/persisters/persister-file/with-schemas/index.js +10 -10
- package/persisters/persister-indexed-db/index.js +8 -8
- package/persisters/persister-indexed-db/with-schemas/index.js +8 -8
- package/persisters/persister-libsql/index.js +119 -119
- package/persisters/persister-libsql/with-schemas/index.js +119 -119
- package/persisters/persister-partykit-client/index.js +23 -23
- package/persisters/persister-partykit-client/with-schemas/index.js +23 -23
- package/persisters/persister-partykit-server/index.js +13 -9
- package/persisters/persister-partykit-server/with-schemas/index.js +13 -9
- package/persisters/persister-pglite/index.js +128 -128
- package/persisters/persister-pglite/with-schemas/index.js +128 -128
- package/persisters/persister-postgres/index.js +128 -128
- package/persisters/persister-postgres/with-schemas/index.js +128 -128
- package/persisters/persister-powersync/index.js +119 -119
- package/persisters/persister-powersync/with-schemas/index.js +119 -119
- package/persisters/persister-remote/index.js +8 -8
- package/persisters/persister-remote/with-schemas/index.js +8 -8
- package/persisters/persister-sqlite-wasm/index.js +119 -119
- package/persisters/persister-sqlite-wasm/with-schemas/index.js +119 -119
- package/persisters/persister-sqlite3/index.js +119 -119
- package/persisters/persister-sqlite3/with-schemas/index.js +119 -119
- package/persisters/persister-yjs/index.js +14 -14
- package/persisters/persister-yjs/with-schemas/index.js +14 -14
- package/persisters/with-schemas/index.js +120 -120
- package/queries/index.js +16 -16
- package/queries/with-schemas/index.js +16 -16
- package/readme.md +3 -22
- package/relationships/index.js +3 -3
- package/relationships/with-schemas/index.js +3 -3
- package/releases.md +6 -6
- package/store/index.js +43 -43
- package/store/with-schemas/index.js +43 -43
- package/synchronizers/index.js +31 -31
- package/synchronizers/synchronizer-broadcast-channel/index.js +31 -31
- package/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +31 -31
- package/synchronizers/synchronizer-local/index.js +31 -31
- package/synchronizers/synchronizer-local/with-schemas/index.js +31 -31
- package/synchronizers/synchronizer-ws-client/index.js +25 -25
- package/synchronizers/synchronizer-ws-client/with-schemas/index.js +25 -25
- package/synchronizers/synchronizer-ws-server/index.js +65 -65
- package/synchronizers/synchronizer-ws-server/with-schemas/index.js +65 -65
- package/synchronizers/synchronizer-ws-server-durable-object/index.js +25 -25
- package/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js +25 -25
- package/synchronizers/synchronizer-ws-server-simple/index.js +3 -3
- package/synchronizers/synchronizer-ws-server-simple/with-schemas/index.js +3 -3
- package/synchronizers/with-schemas/index.js +31 -31
- package/ui-react/index.js +31 -34
- package/ui-react/with-schemas/index.js +31 -34
- package/ui-react-dom/index.js +24 -24
- package/ui-react-dom/with-schemas/index.js +24 -24
- package/ui-react-inspector/index.js +3066 -3067
- package/ui-react-inspector/with-schemas/index.js +3066 -3067
- package/with-schemas/index.js +110 -110
- package/@types/tools/index.d.cts +0 -588
- package/@types/tools/index.d.ts +0 -588
- package/@types/tools/with-schemas/index.d.cts +0 -599
- package/@types/tools/with-schemas/index.d.ts +0 -599
- package/cli/index.js +0 -93
- package/min/tools/index.js +0 -1
- package/min/tools/index.js.gz +0 -0
- package/min/tools/with-schemas/index.js +0 -1
- package/min/tools/with-schemas/index.js.gz +0 -0
- package/tools/index.js +0 -3301
- package/tools/with-schemas/index.js +0 -3301
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
TableIdFromSchema,
|
|
4
|
-
} from '../../store/with-schemas/index.d.cts';
|
|
1
|
+
import type {Id} from '../../../common/with-schemas/index.d.cts';
|
|
2
|
+
import type {ResultCell} from '../../../queries/with-schemas/index.d.cts';
|
|
5
3
|
import type {
|
|
6
4
|
NoTablesSchema,
|
|
7
5
|
OptionalTablesSchema,
|
|
8
6
|
} from '../../../store/with-schemas/index.d.cts';
|
|
9
|
-
import type {
|
|
10
|
-
|
|
7
|
+
import type {
|
|
8
|
+
CellIdFromSchema,
|
|
9
|
+
TableIdFromSchema,
|
|
10
|
+
} from '../../store/with-schemas/index.d.cts';
|
|
11
11
|
|
|
12
12
|
export type JoinedCellIdOrId<
|
|
13
13
|
Schema extends OptionalTablesSchema = NoTablesSchema,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
TableIdFromSchema,
|
|
4
|
-
} from '../../store/with-schemas/index.d.ts';
|
|
1
|
+
import type {Id} from '../../../common/with-schemas/index.d.ts';
|
|
2
|
+
import type {ResultCell} from '../../../queries/with-schemas/index.d.ts';
|
|
5
3
|
import type {
|
|
6
4
|
NoTablesSchema,
|
|
7
5
|
OptionalTablesSchema,
|
|
8
6
|
} from '../../../store/with-schemas/index.d.ts';
|
|
9
|
-
import type {
|
|
10
|
-
|
|
7
|
+
import type {
|
|
8
|
+
CellIdFromSchema,
|
|
9
|
+
TableIdFromSchema,
|
|
10
|
+
} from '../../store/with-schemas/index.d.ts';
|
|
11
11
|
|
|
12
12
|
export type JoinedCellIdOrId<
|
|
13
13
|
Schema extends OptionalTablesSchema = NoTablesSchema,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type {Id} from '../../../common/with-schemas/index.d.cts';
|
|
1
2
|
import type {
|
|
2
3
|
Cell,
|
|
3
4
|
OptionalSchemas,
|
|
@@ -6,7 +7,6 @@ import type {
|
|
|
6
7
|
Store,
|
|
7
8
|
Value,
|
|
8
9
|
} from '../../../store/with-schemas/index.d.cts';
|
|
9
|
-
import type {Id} from '../../../common/with-schemas/index.d.cts';
|
|
10
10
|
|
|
11
11
|
export type TableIdFromSchema<Schema extends OptionalTablesSchema> = AsId<
|
|
12
12
|
keyof Schema
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type {Id} from '../../../common/with-schemas/index.d.ts';
|
|
1
2
|
import type {
|
|
2
3
|
Cell,
|
|
3
4
|
OptionalSchemas,
|
|
@@ -6,7 +7,6 @@ import type {
|
|
|
6
7
|
Store,
|
|
7
8
|
Value,
|
|
8
9
|
} from '../../../store/with-schemas/index.d.ts';
|
|
9
|
-
import type {Id} from '../../../common/with-schemas/index.d.ts';
|
|
10
10
|
|
|
11
11
|
export type TableIdFromSchema<Schema extends OptionalTablesSchema> = AsId<
|
|
12
12
|
keyof Schema
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
+
import type {Checkpoints} from '../../../checkpoints/with-schemas/index.d.cts';
|
|
1
2
|
import type {Callback, Id} from '../../../common/with-schemas/index.d.cts';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
TableIdFromSchema,
|
|
5
|
-
ValueIdFromSchema,
|
|
6
|
-
} from '../../store/with-schemas/index.d.cts';
|
|
7
|
-
import type {ComponentType, ReactElement} from 'react';
|
|
8
|
-
import type {
|
|
9
|
-
OptionalSchemas,
|
|
10
|
-
Store,
|
|
11
|
-
} from '../../../store/with-schemas/index.d.cts';
|
|
3
|
+
import type {Indexes} from '../../../indexes/with-schemas/index.d.cts';
|
|
4
|
+
import type {Metrics} from '../../../metrics/with-schemas/index.d.cts';
|
|
12
5
|
import type {
|
|
13
6
|
Persister,
|
|
14
7
|
Persists,
|
|
15
8
|
} from '../../../persisters/with-schemas/index.d.cts';
|
|
16
|
-
import type {Checkpoints} from '../../../checkpoints/with-schemas/index.d.cts';
|
|
17
|
-
import type {Indexes} from '../../../indexes/with-schemas/index.d.cts';
|
|
18
|
-
import type {Metrics} from '../../../metrics/with-schemas/index.d.cts';
|
|
19
9
|
import type {Queries} from '../../../queries/with-schemas/index.d.cts';
|
|
20
10
|
import type {Relationships} from '../../../relationships/with-schemas/index.d.cts';
|
|
11
|
+
import type {
|
|
12
|
+
OptionalSchemas,
|
|
13
|
+
Store,
|
|
14
|
+
} from '../../../store/with-schemas/index.d.cts';
|
|
21
15
|
import type {Synchronizer} from '../../../synchronizers/with-schemas/index.d.cts';
|
|
16
|
+
import type {
|
|
17
|
+
CellIdFromSchema,
|
|
18
|
+
TableIdFromSchema,
|
|
19
|
+
ValueIdFromSchema,
|
|
20
|
+
} from '../../store/with-schemas/index.d.cts';
|
|
21
|
+
import type {ComponentType, ReactElement} from 'react';
|
|
22
22
|
|
|
23
23
|
type StoreOrStoreId<Schemas extends OptionalSchemas> = Store<Schemas> | Id;
|
|
24
24
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
+
import type {Checkpoints} from '../../../checkpoints/with-schemas/index.d.ts';
|
|
1
2
|
import type {Callback, Id} from '../../../common/with-schemas/index.d.ts';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
TableIdFromSchema,
|
|
5
|
-
ValueIdFromSchema,
|
|
6
|
-
} from '../../store/with-schemas/index.d.ts';
|
|
7
|
-
import type {ComponentType, ReactElement} from 'react';
|
|
8
|
-
import type {
|
|
9
|
-
OptionalSchemas,
|
|
10
|
-
Store,
|
|
11
|
-
} from '../../../store/with-schemas/index.d.ts';
|
|
3
|
+
import type {Indexes} from '../../../indexes/with-schemas/index.d.ts';
|
|
4
|
+
import type {Metrics} from '../../../metrics/with-schemas/index.d.ts';
|
|
12
5
|
import type {
|
|
13
6
|
Persister,
|
|
14
7
|
Persists,
|
|
15
8
|
} from '../../../persisters/with-schemas/index.d.ts';
|
|
16
|
-
import type {Checkpoints} from '../../../checkpoints/with-schemas/index.d.ts';
|
|
17
|
-
import type {Indexes} from '../../../indexes/with-schemas/index.d.ts';
|
|
18
|
-
import type {Metrics} from '../../../metrics/with-schemas/index.d.ts';
|
|
19
9
|
import type {Queries} from '../../../queries/with-schemas/index.d.ts';
|
|
20
10
|
import type {Relationships} from '../../../relationships/with-schemas/index.d.ts';
|
|
11
|
+
import type {
|
|
12
|
+
OptionalSchemas,
|
|
13
|
+
Store,
|
|
14
|
+
} from '../../../store/with-schemas/index.d.ts';
|
|
21
15
|
import type {Synchronizer} from '../../../synchronizers/with-schemas/index.d.ts';
|
|
16
|
+
import type {
|
|
17
|
+
CellIdFromSchema,
|
|
18
|
+
TableIdFromSchema,
|
|
19
|
+
ValueIdFromSchema,
|
|
20
|
+
} from '../../store/with-schemas/index.d.ts';
|
|
21
|
+
import type {ComponentType, ReactElement} from 'react';
|
|
22
22
|
|
|
23
23
|
type StoreOrStoreId<Schemas extends OptionalSchemas> = Store<Schemas> | Id;
|
|
24
24
|
|
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
* @module indexes
|
|
11
11
|
* @since v1.0.0
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
import type {GetCell, RowCallback, Store} from '../store/index.d.cts';
|
|
15
13
|
import type {Id, IdOrNull, Ids, SortKey} from '../common/index.d.cts';
|
|
14
|
+
import type {GetCell, RowCallback, Store} from '../store/index.d.cts';
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* The Index type represents the concept of a map of Slice objects, keyed by Id.
|
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
* @module indexes
|
|
11
11
|
* @since v1.0.0
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
import type {GetCell, RowCallback, Store} from '../store/index.d.ts';
|
|
15
13
|
import type {Id, IdOrNull, Ids, SortKey} from '../common/index.d.ts';
|
|
14
|
+
import type {GetCell, RowCallback, Store} from '../store/index.d.ts';
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* The Index type represents the concept of a map of Slice objects, keyed by Id.
|
|
@@ -10,11 +10,16 @@
|
|
|
10
10
|
* @module indexes
|
|
11
11
|
* @since v1.0.0
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
13
|
import type {
|
|
15
14
|
CellIdFromSchema,
|
|
16
15
|
TableIdFromSchema,
|
|
17
16
|
} from '../../_internal/store/with-schemas/index.d.cts';
|
|
17
|
+
import type {
|
|
18
|
+
Id,
|
|
19
|
+
IdOrNull,
|
|
20
|
+
Ids,
|
|
21
|
+
SortKey,
|
|
22
|
+
} from '../../common/with-schemas/index.d.cts';
|
|
18
23
|
import type {
|
|
19
24
|
GetCell,
|
|
20
25
|
OptionalSchemas,
|
|
@@ -22,12 +27,6 @@ import type {
|
|
|
22
27
|
RowCallback,
|
|
23
28
|
Store,
|
|
24
29
|
} from '../../store/with-schemas/index.d.cts';
|
|
25
|
-
import type {
|
|
26
|
-
Id,
|
|
27
|
-
IdOrNull,
|
|
28
|
-
Ids,
|
|
29
|
-
SortKey,
|
|
30
|
-
} from '../../common/with-schemas/index.d.cts';
|
|
31
30
|
|
|
32
31
|
/**
|
|
33
32
|
* The Index type represents the concept of a map of Slice objects, keyed by Id.
|
|
@@ -10,11 +10,16 @@
|
|
|
10
10
|
* @module indexes
|
|
11
11
|
* @since v1.0.0
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
13
|
import type {
|
|
15
14
|
CellIdFromSchema,
|
|
16
15
|
TableIdFromSchema,
|
|
17
16
|
} from '../../_internal/store/with-schemas/index.d.ts';
|
|
17
|
+
import type {
|
|
18
|
+
Id,
|
|
19
|
+
IdOrNull,
|
|
20
|
+
Ids,
|
|
21
|
+
SortKey,
|
|
22
|
+
} from '../../common/with-schemas/index.d.ts';
|
|
18
23
|
import type {
|
|
19
24
|
GetCell,
|
|
20
25
|
OptionalSchemas,
|
|
@@ -22,12 +27,6 @@ import type {
|
|
|
22
27
|
RowCallback,
|
|
23
28
|
Store,
|
|
24
29
|
} from '../../store/with-schemas/index.d.ts';
|
|
25
|
-
import type {
|
|
26
|
-
Id,
|
|
27
|
-
IdOrNull,
|
|
28
|
-
Ids,
|
|
29
|
-
SortKey,
|
|
30
|
-
} from '../../common/with-schemas/index.d.ts';
|
|
31
30
|
|
|
32
31
|
/**
|
|
33
32
|
* The Index type represents the concept of a map of Slice objects, keyed by Id.
|
|
@@ -19,14 +19,13 @@
|
|
|
19
19
|
* @module mergeable-store
|
|
20
20
|
* @since v5.0.0
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
import type {Id} from '../common/index.d.cts';
|
|
23
23
|
import type {
|
|
24
24
|
CellOrUndefined,
|
|
25
25
|
Content,
|
|
26
26
|
Store,
|
|
27
27
|
ValueOrUndefined,
|
|
28
28
|
} from '../store/index.d.cts';
|
|
29
|
-
import type {Id} from '../common/index.d.cts';
|
|
30
29
|
|
|
31
30
|
/**
|
|
32
31
|
* The Hash type is used within the mergeable-store module to quickly compare
|
|
@@ -19,14 +19,13 @@
|
|
|
19
19
|
* @module mergeable-store
|
|
20
20
|
* @since v5.0.0
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
import type {Id} from '../common/index.d.ts';
|
|
23
23
|
import type {
|
|
24
24
|
CellOrUndefined,
|
|
25
25
|
Content,
|
|
26
26
|
Store,
|
|
27
27
|
ValueOrUndefined,
|
|
28
28
|
} from '../store/index.d.ts';
|
|
29
|
-
import type {Id} from '../common/index.d.ts';
|
|
30
29
|
|
|
31
30
|
/**
|
|
32
31
|
* The Hash type is used within the mergeable-store module to quickly compare
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
* @module mergeable-store
|
|
20
20
|
* @since v5.0.0
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
22
|
import type {
|
|
24
23
|
CellIdFromSchema,
|
|
25
24
|
TableIdFromSchema,
|
|
26
25
|
ValueIdFromSchema,
|
|
27
26
|
} from '../../_internal/store/with-schemas/index.d.cts';
|
|
27
|
+
import type {Id} from '../../common/with-schemas/index.d.cts';
|
|
28
28
|
import type {
|
|
29
29
|
CellOrUndefined,
|
|
30
30
|
Content,
|
|
@@ -39,7 +39,6 @@ import type {
|
|
|
39
39
|
ValueOrUndefined,
|
|
40
40
|
ValuesSchema,
|
|
41
41
|
} from '../../store/with-schemas/index.d.cts';
|
|
42
|
-
import type {Id} from '../../common/with-schemas/index.d.cts';
|
|
43
42
|
|
|
44
43
|
/**
|
|
45
44
|
* The Hash type is used within the mergeable-store module to quickly compare
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
* @module mergeable-store
|
|
20
20
|
* @since v5.0.0
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
22
|
import type {
|
|
24
23
|
CellIdFromSchema,
|
|
25
24
|
TableIdFromSchema,
|
|
26
25
|
ValueIdFromSchema,
|
|
27
26
|
} from '../../_internal/store/with-schemas/index.d.ts';
|
|
27
|
+
import type {Id} from '../../common/with-schemas/index.d.ts';
|
|
28
28
|
import type {
|
|
29
29
|
CellOrUndefined,
|
|
30
30
|
Content,
|
|
@@ -39,7 +39,6 @@ import type {
|
|
|
39
39
|
ValueOrUndefined,
|
|
40
40
|
ValuesSchema,
|
|
41
41
|
} from '../../store/with-schemas/index.d.ts';
|
|
42
|
-
import type {Id} from '../../common/with-schemas/index.d.ts';
|
|
43
42
|
|
|
44
43
|
/**
|
|
45
44
|
* The Hash type is used within the mergeable-store module to quickly compare
|
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
* @module metrics
|
|
11
11
|
* @since v1.0.0
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
import type {GetCell, Store} from '../store/index.d.cts';
|
|
15
13
|
import type {Id, IdOrNull, Ids} from '../common/index.d.cts';
|
|
14
|
+
import type {GetCell, Store} from '../store/index.d.cts';
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* The Metric type is simply an alias, but represents a number formed by
|
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
* @module metrics
|
|
11
11
|
* @since v1.0.0
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
import type {GetCell, Store} from '../store/index.d.ts';
|
|
15
13
|
import type {Id, IdOrNull, Ids} from '../common/index.d.ts';
|
|
14
|
+
import type {GetCell, Store} from '../store/index.d.ts';
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* The Metric type is simply an alias, but represents a number formed by
|
|
@@ -10,17 +10,16 @@
|
|
|
10
10
|
* @module metrics
|
|
11
11
|
* @since v1.0.0
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
13
|
import type {
|
|
15
14
|
CellIdFromSchema,
|
|
16
15
|
TableIdFromSchema,
|
|
17
16
|
} from '../../_internal/store/with-schemas/index.d.cts';
|
|
17
|
+
import type {Id, IdOrNull, Ids} from '../../common/with-schemas/index.d.cts';
|
|
18
18
|
import type {
|
|
19
19
|
GetCell,
|
|
20
20
|
OptionalSchemas,
|
|
21
21
|
Store,
|
|
22
22
|
} from '../../store/with-schemas/index.d.cts';
|
|
23
|
-
import type {Id, IdOrNull, Ids} from '../../common/with-schemas/index.d.cts';
|
|
24
23
|
|
|
25
24
|
/**
|
|
26
25
|
* The Metric type is simply an alias, but represents a number formed by
|
|
@@ -10,17 +10,16 @@
|
|
|
10
10
|
* @module metrics
|
|
11
11
|
* @since v1.0.0
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
13
|
import type {
|
|
15
14
|
CellIdFromSchema,
|
|
16
15
|
TableIdFromSchema,
|
|
17
16
|
} from '../../_internal/store/with-schemas/index.d.ts';
|
|
17
|
+
import type {Id, IdOrNull, Ids} from '../../common/with-schemas/index.d.ts';
|
|
18
18
|
import type {
|
|
19
19
|
GetCell,
|
|
20
20
|
OptionalSchemas,
|
|
21
21
|
Store,
|
|
22
22
|
} from '../../store/with-schemas/index.d.ts';
|
|
23
|
-
import type {Id, IdOrNull, Ids} from '../../common/with-schemas/index.d.ts';
|
|
24
23
|
|
|
25
24
|
/**
|
|
26
25
|
* The Metric type is simply an alias, but represents a number formed by
|
|
@@ -49,14 +49,13 @@
|
|
|
49
49
|
* @module persisters
|
|
50
50
|
* @since v1.0.0
|
|
51
51
|
*/
|
|
52
|
-
|
|
53
|
-
import type {Changes, Content, Store} from '../store/index.d.cts';
|
|
52
|
+
import type {Id} from '../common/index.d.cts';
|
|
54
53
|
import type {
|
|
55
54
|
MergeableChanges,
|
|
56
55
|
MergeableContent,
|
|
57
56
|
MergeableStore,
|
|
58
57
|
} from '../mergeable-store/index.d.cts';
|
|
59
|
-
import type {
|
|
58
|
+
import type {Changes, Content, Store} from '../store/index.d.cts';
|
|
60
59
|
|
|
61
60
|
/**
|
|
62
61
|
* The Status enum is used to indicate whether a Persister is idle, or loading or
|
|
@@ -865,8 +864,8 @@ export type DpcTabularValues = {
|
|
|
865
864
|
* finally destroys the Persister again.
|
|
866
865
|
*
|
|
867
866
|
* ```js
|
|
868
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
869
867
|
* import {createStore} from 'tinybase';
|
|
868
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
870
869
|
*
|
|
871
870
|
* const store = createStore().setTables({pets: {fido: {species: 'dog'}}});
|
|
872
871
|
* const persister = createSessionPersister(store, 'pets');
|
|
@@ -889,8 +888,8 @@ export type DpcTabularValues = {
|
|
|
889
888
|
* persisted data (implicitly firing a StorageEvent), are reflected accordingly.
|
|
890
889
|
*
|
|
891
890
|
* ```js
|
|
892
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
893
891
|
* import {createStore} from 'tinybase';
|
|
892
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
894
893
|
*
|
|
895
894
|
* const store = createStore();
|
|
896
895
|
* const persister = createSessionPersister(store, 'pets');
|
|
@@ -944,8 +943,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
944
943
|
* previously populated.
|
|
945
944
|
*
|
|
946
945
|
* ```js
|
|
947
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
948
946
|
* import {createStore} from 'tinybase';
|
|
947
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
949
948
|
*
|
|
950
949
|
* sessionStorage.setItem('pets', '[{"pets":{"fido":{"species":"dog"}}},{}]');
|
|
951
950
|
*
|
|
@@ -965,8 +964,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
965
964
|
* previously been persisted and instead, that is loaded.
|
|
966
965
|
*
|
|
967
966
|
* ```js
|
|
968
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
969
967
|
* import {createStore} from 'tinybase';
|
|
968
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
970
969
|
*
|
|
971
970
|
* const store = createStore();
|
|
972
971
|
* const persister = createSessionPersister(store, 'pets');
|
|
@@ -1020,8 +1019,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
1020
1019
|
* from session storage changes made in another browser tab).
|
|
1021
1020
|
*
|
|
1022
1021
|
* ```js
|
|
1023
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1024
1022
|
* import {createStore} from 'tinybase';
|
|
1023
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1025
1024
|
*
|
|
1026
1025
|
* const store = createStore();
|
|
1027
1026
|
* const persister = createSessionPersister(store, 'pets');
|
|
@@ -1059,8 +1058,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
1059
1058
|
* stopped, subsequent changes are not reflected in the Store.
|
|
1060
1059
|
*
|
|
1061
1060
|
* ```js
|
|
1062
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1063
1061
|
* import {createStore} from 'tinybase';
|
|
1062
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1064
1063
|
*
|
|
1065
1064
|
* const store = createStore();
|
|
1066
1065
|
* const persister = createSessionPersister(store, 'pets');
|
|
@@ -1103,8 +1102,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
1103
1102
|
* This example creates a Persister and queries whether it is autoLoading.
|
|
1104
1103
|
*
|
|
1105
1104
|
* ```js
|
|
1106
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1107
1105
|
* import {createStore} from 'tinybase';
|
|
1106
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1108
1107
|
*
|
|
1109
1108
|
* const persister = createSessionPersister(createStore(), 'pets');
|
|
1110
1109
|
*
|
|
@@ -1138,8 +1137,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
1138
1137
|
* session storage.
|
|
1139
1138
|
*
|
|
1140
1139
|
* ```js
|
|
1141
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1142
1140
|
* import {createStore} from 'tinybase';
|
|
1141
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1143
1142
|
*
|
|
1144
1143
|
* const store = createStore().setTables({pets: {fido: {species: 'dog'}}});
|
|
1145
1144
|
* const persister = createSessionPersister(store, 'pets');
|
|
@@ -1175,8 +1174,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
1175
1174
|
* saved to the underlying storage.
|
|
1176
1175
|
*
|
|
1177
1176
|
* ```js
|
|
1178
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1179
1177
|
* import {createStore} from 'tinybase';
|
|
1178
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1180
1179
|
*
|
|
1181
1180
|
* const store = createStore().setTables({pets: {fido: {species: 'dog'}}});
|
|
1182
1181
|
* const persister = createSessionPersister(store, 'pets');
|
|
@@ -1211,8 +1210,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
1211
1210
|
* stopped, subsequent changes are not reflected.
|
|
1212
1211
|
*
|
|
1213
1212
|
* ```js
|
|
1214
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1215
1213
|
* import {createStore} from 'tinybase';
|
|
1214
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1216
1215
|
*
|
|
1217
1216
|
* const store = createStore().setTables({pets: {fido: {species: 'dog'}}});
|
|
1218
1217
|
* const persister = createSessionPersister(store, 'pets');
|
|
@@ -1247,8 +1246,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
1247
1246
|
* This example creates a Persister and queries whether it is autoSaving.
|
|
1248
1247
|
*
|
|
1249
1248
|
* ```js
|
|
1250
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1251
1249
|
* import {createStore} from 'tinybase';
|
|
1250
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1252
1251
|
*
|
|
1253
1252
|
* const persister = createSessionPersister(createStore(), 'pets');
|
|
1254
1253
|
*
|
|
@@ -1286,8 +1285,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
1286
1285
|
* This example creates a Persister and queries its status.
|
|
1287
1286
|
*
|
|
1288
1287
|
* ```js
|
|
1289
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1290
1288
|
* import {createStore} from 'tinybase';
|
|
1289
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1291
1290
|
*
|
|
1292
1291
|
* const persister = createSessionPersister(createStore(), 'pets');
|
|
1293
1292
|
*
|
|
@@ -1315,8 +1314,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
1315
1314
|
* the Persister.
|
|
1316
1315
|
*
|
|
1317
1316
|
* ```js
|
|
1318
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1319
1317
|
* import {createStore} from 'tinybase';
|
|
1318
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1320
1319
|
*
|
|
1321
1320
|
* const persister = createSessionPersister(createStore(), 'pets');
|
|
1322
1321
|
*
|
|
@@ -1352,8 +1351,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
1352
1351
|
* This example registers a listener and then removes it.
|
|
1353
1352
|
*
|
|
1354
1353
|
* ```js
|
|
1355
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1356
1354
|
* import {createStore} from 'tinybase';
|
|
1355
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1357
1356
|
*
|
|
1358
1357
|
* const persister = createSessionPersister(createStore(), 'pets');
|
|
1359
1358
|
*
|
|
@@ -1403,8 +1402,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
1403
1402
|
* getDataFromRemoteSystem,
|
|
1404
1403
|
* sendDataToRemoteSystem,
|
|
1405
1404
|
* } from 'custom-remote-handlers';
|
|
1406
|
-
* import {createCustomPersister} from 'tinybase/persisters';
|
|
1407
1405
|
* import {createStore} from 'tinybase';
|
|
1406
|
+
* import {createCustomPersister} from 'tinybase/persisters';
|
|
1408
1407
|
*
|
|
1409
1408
|
* const store = createStore();
|
|
1410
1409
|
* const persister = createCustomPersister(
|
|
@@ -1438,8 +1437,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
1438
1437
|
* then gets its reference in order to update its data.
|
|
1439
1438
|
*
|
|
1440
1439
|
* ```js
|
|
1441
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1442
1440
|
* import {createStore} from 'tinybase';
|
|
1441
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1443
1442
|
*
|
|
1444
1443
|
* const persister = createSessionPersister(createStore(), 'pets');
|
|
1445
1444
|
* await persister.startAutoSave();
|
|
@@ -1471,8 +1470,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
1471
1470
|
* again, removing the listener.
|
|
1472
1471
|
*
|
|
1473
1472
|
* ```js
|
|
1474
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1475
1473
|
* import {createStore} from 'tinybase';
|
|
1474
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1476
1475
|
*
|
|
1477
1476
|
* const store = createStore();
|
|
1478
1477
|
* const persister = createSessionPersister(store, 'pets');
|
|
@@ -1510,8 +1509,8 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
|
|
|
1510
1509
|
* invoked by changes to the Store and to the underlying storage.
|
|
1511
1510
|
*
|
|
1512
1511
|
* ```js
|
|
1513
|
-
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1514
1512
|
* import {createStore} from 'tinybase';
|
|
1513
|
+
* import {createSessionPersister} from 'tinybase/persisters/persister-browser';
|
|
1515
1514
|
*
|
|
1516
1515
|
* const store = createStore();
|
|
1517
1516
|
* const persister = createSessionPersister(store, 'pets');
|
|
@@ -1642,8 +1641,8 @@ export type DatabaseChangeListener = (tableName: string) => void;
|
|
|
1642
1641
|
* Store.
|
|
1643
1642
|
*
|
|
1644
1643
|
* ```js
|
|
1645
|
-
* import {createCustomPersister} from 'tinybase/persisters';
|
|
1646
1644
|
* import {createStore} from 'tinybase';
|
|
1645
|
+
* import {createCustomPersister} from 'tinybase/persisters';
|
|
1647
1646
|
*
|
|
1648
1647
|
* const store = createStore().setTables({pets: {fido: {species: 'dog'}}});
|
|
1649
1648
|
* let persistedJson;
|
|
@@ -1682,8 +1681,8 @@ export type DatabaseChangeListener = (tableName: string) => void;
|
|
|
1682
1681
|
* MergeableStore.
|
|
1683
1682
|
*
|
|
1684
1683
|
* ```js
|
|
1685
|
-
* import {Persists, createCustomPersister} from 'tinybase/persisters';
|
|
1686
1684
|
* import {createMergeableStore, createStore} from 'tinybase';
|
|
1685
|
+
* import {Persists, createCustomPersister} from 'tinybase/persisters';
|
|
1687
1686
|
*
|
|
1688
1687
|
* let persistedJson;
|
|
1689
1688
|
* const createJsonPersister = (storeOrMergeableStore) =>
|