tinybase 5.0.0-beta.27 → 5.0.0-beta.28
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/ui-react/with-schemas/index.d.cts +274 -0
- package/@types/_internal/ui-react/with-schemas/index.d.ts +274 -0
- package/@types/checkpoints/index.d.cts +30 -1
- package/@types/checkpoints/index.d.ts +30 -1
- package/@types/checkpoints/with-schemas/index.d.cts +30 -1
- package/@types/checkpoints/with-schemas/index.d.ts +30 -1
- package/@types/common/index.d.cts +9 -0
- package/@types/common/index.d.ts +9 -0
- package/@types/common/with-schemas/index.d.cts +9 -0
- package/@types/common/with-schemas/index.d.ts +9 -0
- package/@types/index.d.cts +1 -0
- package/@types/index.d.ts +1 -0
- package/@types/indexes/index.d.cts +32 -1
- package/@types/indexes/index.d.ts +32 -1
- package/@types/indexes/with-schemas/index.d.cts +32 -1
- package/@types/indexes/with-schemas/index.d.ts +32 -1
- package/@types/mergeable-store/index.d.cts +0 -2
- package/@types/mergeable-store/index.d.ts +0 -2
- package/@types/mergeable-store/with-schemas/index.d.cts +2 -2
- package/@types/mergeable-store/with-schemas/index.d.ts +2 -2
- package/@types/metrics/index.d.cts +30 -4
- package/@types/metrics/index.d.ts +30 -4
- package/@types/metrics/with-schemas/index.d.cts +30 -4
- package/@types/metrics/with-schemas/index.d.ts +30 -4
- package/@types/persisters/index.d.cts +87 -25
- package/@types/persisters/index.d.ts +87 -25
- package/@types/persisters/persister-automerge/index.d.cts +4 -4
- package/@types/persisters/persister-automerge/index.d.ts +4 -4
- package/@types/persisters/persister-automerge/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-automerge/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-browser/index.d.cts +7 -4
- package/@types/persisters/persister-browser/index.d.ts +7 -4
- package/@types/persisters/persister-browser/with-schemas/index.d.cts +7 -4
- package/@types/persisters/persister-browser/with-schemas/index.d.ts +7 -4
- package/@types/persisters/persister-cr-sqlite-wasm/index.d.cts +4 -4
- package/@types/persisters/persister-cr-sqlite-wasm/index.d.ts +4 -4
- package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-electric-sql/index.d.cts +4 -4
- package/@types/persisters/persister-electric-sql/index.d.ts +4 -4
- package/@types/persisters/persister-electric-sql/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-electric-sql/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-expo-sqlite/index.d.cts +4 -4
- package/@types/persisters/persister-expo-sqlite/index.d.ts +4 -4
- package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-file/index.d.cts +6 -4
- package/@types/persisters/persister-file/index.d.ts +6 -4
- package/@types/persisters/persister-file/with-schemas/index.d.cts +6 -4
- package/@types/persisters/persister-file/with-schemas/index.d.ts +6 -4
- package/@types/persisters/persister-indexed-db/index.d.cts +5 -4
- package/@types/persisters/persister-indexed-db/index.d.ts +5 -4
- package/@types/persisters/persister-indexed-db/with-schemas/index.d.cts +5 -4
- package/@types/persisters/persister-indexed-db/with-schemas/index.d.ts +5 -4
- package/@types/persisters/persister-libsql/index.d.cts +5 -4
- package/@types/persisters/persister-libsql/index.d.ts +5 -4
- package/@types/persisters/persister-libsql/with-schemas/index.d.cts +5 -4
- package/@types/persisters/persister-libsql/with-schemas/index.d.ts +5 -4
- package/@types/persisters/persister-partykit-client/index.d.cts +12 -6
- package/@types/persisters/persister-partykit-client/index.d.ts +12 -6
- package/@types/persisters/persister-partykit-client/with-schemas/index.d.cts +12 -6
- package/@types/persisters/persister-partykit-client/with-schemas/index.d.ts +12 -6
- package/@types/persisters/persister-partykit-server/index.d.cts +11 -3
- package/@types/persisters/persister-partykit-server/index.d.ts +11 -3
- package/@types/persisters/persister-partykit-server/with-schemas/index.d.cts +11 -3
- package/@types/persisters/persister-partykit-server/with-schemas/index.d.ts +11 -3
- package/@types/persisters/persister-powersync/index.d.cts +5 -4
- package/@types/persisters/persister-powersync/index.d.ts +5 -4
- package/@types/persisters/persister-powersync/with-schemas/index.d.cts +5 -4
- package/@types/persisters/persister-powersync/with-schemas/index.d.ts +5 -4
- package/@types/persisters/persister-remote/index.d.cts +6 -4
- package/@types/persisters/persister-remote/index.d.ts +6 -4
- package/@types/persisters/persister-remote/with-schemas/index.d.cts +6 -4
- package/@types/persisters/persister-remote/with-schemas/index.d.ts +6 -4
- package/@types/persisters/persister-sqlite-wasm/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite-wasm/index.d.ts +4 -4
- package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-sqlite3/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite3/index.d.ts +4 -4
- package/@types/persisters/persister-sqlite3/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite3/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-yjs/index.d.cts +4 -4
- package/@types/persisters/persister-yjs/index.d.ts +4 -4
- package/@types/persisters/persister-yjs/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-yjs/with-schemas/index.d.ts +4 -4
- package/@types/persisters/with-schemas/index.d.cts +87 -25
- package/@types/persisters/with-schemas/index.d.ts +87 -25
- package/@types/queries/index.d.cts +64 -4
- package/@types/queries/index.d.ts +64 -4
- package/@types/queries/with-schemas/index.d.cts +64 -4
- package/@types/queries/with-schemas/index.d.ts +64 -4
- package/@types/relationships/index.d.cts +34 -1
- package/@types/relationships/index.d.ts +34 -1
- package/@types/relationships/with-schemas/index.d.cts +34 -1
- package/@types/relationships/with-schemas/index.d.ts +34 -1
- package/@types/store/index.d.cts +125 -0
- package/@types/store/index.d.ts +125 -0
- package/@types/store/with-schemas/index.d.cts +125 -0
- package/@types/store/with-schemas/index.d.ts +125 -0
- package/@types/synchronizers/index.d.cts +32 -10
- package/@types/synchronizers/index.d.ts +32 -10
- package/@types/synchronizers/synchronizer-broadcast-channel/index.d.cts +114 -0
- package/@types/synchronizers/synchronizer-broadcast-channel/index.d.ts +114 -0
- package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.cts +128 -0
- package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.ts +128 -0
- package/@types/synchronizers/synchronizer-local/index.d.cts +16 -17
- package/@types/synchronizers/synchronizer-local/index.d.ts +16 -17
- package/@types/synchronizers/synchronizer-local/with-schemas/index.d.cts +16 -17
- package/@types/synchronizers/synchronizer-local/with-schemas/index.d.ts +16 -17
- package/@types/synchronizers/synchronizer-ws-client/index.d.cts +66 -6
- package/@types/synchronizers/synchronizer-ws-client/index.d.ts +66 -6
- package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.cts +77 -6
- package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.ts +77 -6
- package/@types/synchronizers/synchronizer-ws-server/index.d.cts +486 -7
- package/@types/synchronizers/synchronizer-ws-server/index.d.ts +486 -7
- package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.cts +486 -7
- package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.ts +486 -7
- package/@types/synchronizers/with-schemas/index.d.cts +29 -11
- package/@types/synchronizers/with-schemas/index.d.ts +29 -11
- package/@types/tools/index.d.cts +22 -0
- package/@types/tools/index.d.ts +22 -0
- package/@types/tools/with-schemas/index.d.cts +22 -0
- package/@types/tools/with-schemas/index.d.ts +22 -0
- package/@types/ui-react/index.d.cts +375 -1
- package/@types/ui-react/index.d.ts +375 -1
- package/@types/ui-react/with-schemas/index.d.cts +100 -1
- package/@types/ui-react/with-schemas/index.d.ts +100 -1
- package/@types/ui-react-dom/index.d.cts +112 -0
- package/@types/ui-react-dom/index.d.ts +112 -0
- package/@types/ui-react-dom/with-schemas/index.d.cts +112 -0
- package/@types/ui-react-dom/with-schemas/index.d.ts +112 -0
- package/@types/ui-react-inspector/index.d.cts +6 -2
- package/@types/ui-react-inspector/index.d.ts +6 -2
- package/@types/ui-react-inspector/with-schemas/index.d.cts +118 -2
- package/@types/ui-react-inspector/with-schemas/index.d.ts +118 -2
- package/@types/with-schemas/index.d.cts +1 -0
- package/@types/with-schemas/index.d.ts +1 -0
- package/cjs/es6/index.cjs +2 -2
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/synchronizers/index.cjs +2 -2
- package/cjs/es6/synchronizers/synchronizer-broadcast-channel/index.cjs +628 -0
- package/cjs/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +628 -0
- package/cjs/es6/synchronizers/synchronizer-local/index.cjs +4 -4
- package/cjs/es6/synchronizers/synchronizer-local/with-schemas/index.cjs +4 -4
- package/cjs/es6/synchronizers/synchronizer-ws-client/index.cjs +15 -21
- package/cjs/es6/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +15 -21
- package/cjs/es6/synchronizers/with-schemas/index.cjs +2 -2
- package/cjs/es6/with-schemas/index.cjs +2 -2
- package/cjs/index.cjs +2 -2
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
- package/cjs/synchronizers/index.cjs +2 -2
- package/cjs/synchronizers/synchronizer-broadcast-channel/index.cjs +500 -0
- package/cjs/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +500 -0
- package/cjs/synchronizers/synchronizer-local/index.cjs +4 -4
- package/cjs/synchronizers/synchronizer-local/with-schemas/index.cjs +4 -4
- package/cjs/synchronizers/synchronizer-ws-client/index.cjs +15 -21
- package/cjs/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +15 -21
- package/cjs/synchronizers/with-schemas/index.cjs +2 -2
- package/cjs/with-schemas/index.cjs +2 -2
- package/es6/index.js +2 -2
- package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/es6/synchronizers/index.js +2 -2
- package/es6/synchronizers/synchronizer-broadcast-channel/index.js +626 -0
- package/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +626 -0
- package/es6/synchronizers/synchronizer-local/index.js +4 -4
- package/es6/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/es6/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/es6/synchronizers/with-schemas/index.js +2 -2
- package/es6/with-schemas/index.js +2 -2
- package/index.js +2 -2
- package/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/min/synchronizers/synchronizer-broadcast-channel/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/package.json +105 -1
- package/readme.md +9 -9
- package/releases.md +4 -4
- package/synchronizers/index.js +2 -2
- package/synchronizers/synchronizer-broadcast-channel/index.js +498 -0
- package/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +498 -0
- package/synchronizers/synchronizer-local/index.js +4 -4
- package/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/synchronizers/with-schemas/index.js +2 -2
- package/umd/es6/index.js +2 -2
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/umd/es6/synchronizers/index.js +2 -2
- package/umd/es6/synchronizers/synchronizer-broadcast-channel/index.js +654 -0
- package/umd/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +654 -0
- package/umd/es6/synchronizers/synchronizer-local/index.js +4 -4
- package/umd/es6/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/umd/es6/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/umd/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/umd/es6/synchronizers/with-schemas/index.js +2 -2
- package/umd/es6/with-schemas/index.js +2 -2
- package/umd/index.js +2 -2
- package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/umd/synchronizers/index.js +2 -2
- package/umd/synchronizers/synchronizer-broadcast-channel/index.js +516 -0
- package/umd/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +516 -0
- package/umd/synchronizers/synchronizer-local/index.js +4 -4
- package/umd/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/umd/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/umd/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/umd/synchronizers/with-schemas/index.js +2 -2
- package/umd/with-schemas/index.js +2 -2
- package/with-schemas/index.js +2 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The persister-file module of the TinyBase project lets you save and load
|
|
3
3
|
* Store data to and from a local file system (in an appropriate environment).
|
|
4
|
-
* @see
|
|
4
|
+
* @see Persistence guides
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
* @module persister-file
|
|
7
|
+
* @since v1.0.0
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
10
|
import type {
|
|
@@ -17,12 +18,12 @@ import type {MergeableStore} from '../../../mergeable-store/with-schemas/index.d
|
|
|
17
18
|
* The FilePersister interface represents a Persister that lets you save and
|
|
18
19
|
* load Store data to and from a local file system.
|
|
19
20
|
*
|
|
21
|
+
* You should use the createFilePersister function to create a FilePersister
|
|
22
|
+
* object.
|
|
23
|
+
*
|
|
20
24
|
* It is a minor extension to the Persister interface and simply provides an
|
|
21
25
|
* extra getFilePath method for accessing the location of the local file the
|
|
22
26
|
* Store is being persisted to.
|
|
23
|
-
*
|
|
24
|
-
* You should use the createFilePersister function to create a FilePersister
|
|
25
|
-
* object.
|
|
26
27
|
* @category Persister
|
|
27
28
|
* @since v4.3.14
|
|
28
29
|
*/
|
|
@@ -98,6 +99,7 @@ export interface FilePersister<Schemas extends OptionalSchemas>
|
|
|
98
99
|
* persister.destroy();
|
|
99
100
|
* ```
|
|
100
101
|
* @category Creation
|
|
102
|
+
* @since v1.0.0
|
|
101
103
|
*/
|
|
102
104
|
export function createFilePersister<Schemas extends OptionalSchemas>(
|
|
103
105
|
store: Store<Schemas> | MergeableStore<Schemas>,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The persister-file module of the TinyBase project lets you save and load
|
|
3
3
|
* Store data to and from a local file system (in an appropriate environment).
|
|
4
|
-
* @see
|
|
4
|
+
* @see Persistence guides
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
* @module persister-file
|
|
7
|
+
* @since v1.0.0
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
10
|
import type {
|
|
@@ -17,12 +18,12 @@ import type {MergeableStore} from '../../../mergeable-store/with-schemas/index.d
|
|
|
17
18
|
* The FilePersister interface represents a Persister that lets you save and
|
|
18
19
|
* load Store data to and from a local file system.
|
|
19
20
|
*
|
|
21
|
+
* You should use the createFilePersister function to create a FilePersister
|
|
22
|
+
* object.
|
|
23
|
+
*
|
|
20
24
|
* It is a minor extension to the Persister interface and simply provides an
|
|
21
25
|
* extra getFilePath method for accessing the location of the local file the
|
|
22
26
|
* Store is being persisted to.
|
|
23
|
-
*
|
|
24
|
-
* You should use the createFilePersister function to create a FilePersister
|
|
25
|
-
* object.
|
|
26
27
|
* @category Persister
|
|
27
28
|
* @since v4.3.14
|
|
28
29
|
*/
|
|
@@ -98,6 +99,7 @@ export interface FilePersister<Schemas extends OptionalSchemas>
|
|
|
98
99
|
* persister.destroy();
|
|
99
100
|
* ```
|
|
100
101
|
* @category Creation
|
|
102
|
+
* @since v1.0.0
|
|
101
103
|
*/
|
|
102
104
|
export function createFilePersister<Schemas extends OptionalSchemas>(
|
|
103
105
|
store: Store<Schemas> | MergeableStore<Schemas>,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The persister-indexed-db module of the TinyBase project lets you save and
|
|
3
3
|
* load Store data to and from browser IndexedDB storage.
|
|
4
|
-
* @see
|
|
4
|
+
* @see Persistence guides
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
* @module persister-indexed-db
|
|
7
|
+
* @since v4.2.0
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
10
|
import type {Persister} from '../index.d.cts';
|
|
@@ -13,12 +14,12 @@ import type {Store} from '../../store/index.d.cts';
|
|
|
13
14
|
* The IndexedDbPersister interface represents a Persister that lets you save
|
|
14
15
|
* and load Store data to and from browser IndexedDB storage.
|
|
15
16
|
*
|
|
17
|
+
* You should use the createIndexedDbPersister function to create an
|
|
18
|
+
* IndexedDbPersister object.
|
|
19
|
+
*
|
|
16
20
|
* It is a minor extension to the Persister interface and simply provides an
|
|
17
21
|
* extra getDbName method for accessing the unique key of the IndexedDB the
|
|
18
22
|
* Store is being persisted to.
|
|
19
|
-
*
|
|
20
|
-
* You should use the createIndexedDbPersister function to create an
|
|
21
|
-
* IndexedDbPersister object.
|
|
22
23
|
* @category Persister
|
|
23
24
|
* @since v4.3.14
|
|
24
25
|
*/
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The persister-indexed-db module of the TinyBase project lets you save and
|
|
3
3
|
* load Store data to and from browser IndexedDB storage.
|
|
4
|
-
* @see
|
|
4
|
+
* @see Persistence guides
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
* @module persister-indexed-db
|
|
7
|
+
* @since v4.2.0
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
10
|
import type {Persister} from '../index.d.ts';
|
|
@@ -13,12 +14,12 @@ import type {Store} from '../../store/index.d.ts';
|
|
|
13
14
|
* The IndexedDbPersister interface represents a Persister that lets you save
|
|
14
15
|
* and load Store data to and from browser IndexedDB storage.
|
|
15
16
|
*
|
|
17
|
+
* You should use the createIndexedDbPersister function to create an
|
|
18
|
+
* IndexedDbPersister object.
|
|
19
|
+
*
|
|
16
20
|
* It is a minor extension to the Persister interface and simply provides an
|
|
17
21
|
* extra getDbName method for accessing the unique key of the IndexedDB the
|
|
18
22
|
* Store is being persisted to.
|
|
19
|
-
*
|
|
20
|
-
* You should use the createIndexedDbPersister function to create an
|
|
21
|
-
* IndexedDbPersister object.
|
|
22
23
|
* @category Persister
|
|
23
24
|
* @since v4.3.14
|
|
24
25
|
*/
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The persister-indexed-db module of the TinyBase project lets you save and
|
|
3
3
|
* load Store data to and from browser IndexedDB storage.
|
|
4
|
-
* @see
|
|
4
|
+
* @see Persistence guides
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
* @module persister-indexed-db
|
|
7
|
+
* @since v4.2.0
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
10
|
import type {
|
|
@@ -16,12 +17,12 @@ import type {Persister} from '../../with-schemas/index.d.cts';
|
|
|
16
17
|
* The IndexedDbPersister interface represents a Persister that lets you save
|
|
17
18
|
* and load Store data to and from browser IndexedDB storage.
|
|
18
19
|
*
|
|
20
|
+
* You should use the createIndexedDbPersister function to create an
|
|
21
|
+
* IndexedDbPersister object.
|
|
22
|
+
*
|
|
19
23
|
* It is a minor extension to the Persister interface and simply provides an
|
|
20
24
|
* extra getDbName method for accessing the unique key of the IndexedDB the
|
|
21
25
|
* Store is being persisted to.
|
|
22
|
-
*
|
|
23
|
-
* You should use the createIndexedDbPersister function to create an
|
|
24
|
-
* IndexedDbPersister object.
|
|
25
26
|
* @category Persister
|
|
26
27
|
* @since v4.3.14
|
|
27
28
|
*/
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The persister-indexed-db module of the TinyBase project lets you save and
|
|
3
3
|
* load Store data to and from browser IndexedDB storage.
|
|
4
|
-
* @see
|
|
4
|
+
* @see Persistence guides
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
* @module persister-indexed-db
|
|
7
|
+
* @since v4.2.0
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
10
|
import type {
|
|
@@ -16,12 +17,12 @@ import type {Persister} from '../../with-schemas/index.d.ts';
|
|
|
16
17
|
* The IndexedDbPersister interface represents a Persister that lets you save
|
|
17
18
|
* and load Store data to and from browser IndexedDB storage.
|
|
18
19
|
*
|
|
20
|
+
* You should use the createIndexedDbPersister function to create an
|
|
21
|
+
* IndexedDbPersister object.
|
|
22
|
+
*
|
|
19
23
|
* It is a minor extension to the Persister interface and simply provides an
|
|
20
24
|
* extra getDbName method for accessing the unique key of the IndexedDB the
|
|
21
25
|
* Store is being persisted to.
|
|
22
|
-
*
|
|
23
|
-
* You should use the createIndexedDbPersister function to create an
|
|
24
|
-
* IndexedDbPersister object.
|
|
25
26
|
* @category Persister
|
|
26
27
|
* @since v4.3.14
|
|
27
28
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The persister-libsql module of the TinyBase project lets you save and load
|
|
3
3
|
* Store data to and from a local LibSQL database (in an appropriate
|
|
4
4
|
* environment).
|
|
5
|
-
* @see
|
|
5
|
+
* @see Database Persistence guide
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
* @module persister-libsql
|
|
8
8
|
* @since v4.7.0
|
|
@@ -16,12 +16,13 @@ import type {Store} from '../../store/index.d.cts';
|
|
|
16
16
|
* The LibSqlPersister interface represents a Persister that lets you save and
|
|
17
17
|
* load Store data to and from a local LibSQL database.
|
|
18
18
|
*
|
|
19
|
+
* You should use the createLibSqlPersister function to create a LibSqlPersister
|
|
20
|
+
* object.
|
|
21
|
+
*
|
|
19
22
|
* It is a minor extension to the Persister interface and simply provides an
|
|
20
23
|
* extra getClient method for accessing a reference to the database client the
|
|
21
24
|
* Store is being persisted to.
|
|
22
|
-
*
|
|
23
|
-
* You should use the createLibSqlPersister function to create a LibSqlPersister
|
|
24
|
-
* object.
|
|
25
|
+
* @category Persister
|
|
25
26
|
* @since v4.7.0
|
|
26
27
|
*/
|
|
27
28
|
export interface LibSqlPersister extends Persister {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The persister-libsql module of the TinyBase project lets you save and load
|
|
3
3
|
* Store data to and from a local LibSQL database (in an appropriate
|
|
4
4
|
* environment).
|
|
5
|
-
* @see
|
|
5
|
+
* @see Database Persistence guide
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
* @module persister-libsql
|
|
8
8
|
* @since v4.7.0
|
|
@@ -16,12 +16,13 @@ import type {Store} from '../../store/index.d.ts';
|
|
|
16
16
|
* The LibSqlPersister interface represents a Persister that lets you save and
|
|
17
17
|
* load Store data to and from a local LibSQL database.
|
|
18
18
|
*
|
|
19
|
+
* You should use the createLibSqlPersister function to create a LibSqlPersister
|
|
20
|
+
* object.
|
|
21
|
+
*
|
|
19
22
|
* It is a minor extension to the Persister interface and simply provides an
|
|
20
23
|
* extra getClient method for accessing a reference to the database client the
|
|
21
24
|
* Store is being persisted to.
|
|
22
|
-
*
|
|
23
|
-
* You should use the createLibSqlPersister function to create a LibSqlPersister
|
|
24
|
-
* object.
|
|
25
|
+
* @category Persister
|
|
25
26
|
* @since v4.7.0
|
|
26
27
|
*/
|
|
27
28
|
export interface LibSqlPersister extends Persister {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The persister-libsql module of the TinyBase project lets you save and load
|
|
3
3
|
* Store data to and from a local LibSQL database (in an appropriate
|
|
4
4
|
* environment).
|
|
5
|
-
* @see
|
|
5
|
+
* @see Database Persistence guide
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
* @module persister-libsql
|
|
8
8
|
* @since v4.7.0
|
|
@@ -22,12 +22,13 @@ import type {Client} from '@libsql/client';
|
|
|
22
22
|
* The LibSqlPersister interface represents a Persister that lets you save and
|
|
23
23
|
* load Store data to and from a local LibSQL database.
|
|
24
24
|
*
|
|
25
|
+
* You should use the createLibSqlPersister function to create a LibSqlPersister
|
|
26
|
+
* object.
|
|
27
|
+
*
|
|
25
28
|
* It is a minor extension to the Persister interface and simply provides an
|
|
26
29
|
* extra getClient method for accessing a reference to the database client the
|
|
27
30
|
* Store is being persisted to.
|
|
28
|
-
*
|
|
29
|
-
* You should use the createLibSqlPersister function to create a LibSqlPersister
|
|
30
|
-
* object.
|
|
31
|
+
* @category Persister
|
|
31
32
|
* @since v4.7.0
|
|
32
33
|
*/
|
|
33
34
|
export interface LibSqlPersister<Schemas extends OptionalSchemas>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The persister-libsql module of the TinyBase project lets you save and load
|
|
3
3
|
* Store data to and from a local LibSQL database (in an appropriate
|
|
4
4
|
* environment).
|
|
5
|
-
* @see
|
|
5
|
+
* @see Database Persistence guide
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
* @module persister-libsql
|
|
8
8
|
* @since v4.7.0
|
|
@@ -22,12 +22,13 @@ import type {Client} from '@libsql/client';
|
|
|
22
22
|
* The LibSqlPersister interface represents a Persister that lets you save and
|
|
23
23
|
* load Store data to and from a local LibSQL database.
|
|
24
24
|
*
|
|
25
|
+
* You should use the createLibSqlPersister function to create a LibSqlPersister
|
|
26
|
+
* object.
|
|
27
|
+
*
|
|
25
28
|
* It is a minor extension to the Persister interface and simply provides an
|
|
26
29
|
* extra getClient method for accessing a reference to the database client the
|
|
27
30
|
* Store is being persisted to.
|
|
28
|
-
*
|
|
29
|
-
* You should use the createLibSqlPersister function to create a LibSqlPersister
|
|
30
|
-
* object.
|
|
31
|
+
* @category Persister
|
|
31
32
|
* @since v4.7.0
|
|
32
33
|
*/
|
|
33
34
|
export interface LibSqlPersister<Schemas extends OptionalSchemas>
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
*
|
|
13
13
|
* Note that both the client and server parts of this Persister are currently
|
|
14
14
|
* experimental as PartyKit is new and still maturing.
|
|
15
|
-
* @see
|
|
15
|
+
* @see Persistence guides
|
|
16
16
|
* @packageDocumentation
|
|
17
17
|
* @module persister-partykit-client
|
|
18
|
-
* @since
|
|
18
|
+
* @since v4.3.0
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
import type {PartySocket} from 'partysocket';
|
|
@@ -27,12 +27,12 @@ import type {Store} from '../../store/index.d.cts';
|
|
|
27
27
|
* load Store data from the client to the durable PartyKit cloud storage of a
|
|
28
28
|
* server.
|
|
29
29
|
*
|
|
30
|
+
* You should use the createPartyKitPersister function to create a
|
|
31
|
+
* PartyKitPersister object.
|
|
32
|
+
*
|
|
30
33
|
* It is a minor extension to the Persister interface and simply provides an
|
|
31
34
|
* extra getConnection method for accessing the PartySocket the Store is being
|
|
32
35
|
* persisted to.
|
|
33
|
-
*
|
|
34
|
-
* You should use the createPartyKitPersister function to create a
|
|
35
|
-
* PartyKitPersister object.
|
|
36
36
|
* @category Persister
|
|
37
37
|
* @since v4.3.14
|
|
38
38
|
*/
|
|
@@ -97,12 +97,16 @@ export type PartyKitPersisterConfig = {
|
|
|
97
97
|
* The HTTP protocol to use (in addition to the websocket channel). This
|
|
98
98
|
* defaults to 'https' but you may wish to use 'http' for local PartyKit
|
|
99
99
|
* development.
|
|
100
|
+
* @category Configuration
|
|
101
|
+
* @since v4.3.0
|
|
100
102
|
*/
|
|
101
103
|
storeProtocol?: 'http' | 'https';
|
|
102
104
|
/**
|
|
103
105
|
* The path used to set and get the whole Store over HTTP(S) on the server.
|
|
104
106
|
* This must match the storePath property of the TinyBasePartyKitServerConfig
|
|
105
107
|
* object used on the server. Both default to '/store'.
|
|
108
|
+
* @category Configuration
|
|
109
|
+
* @since v4.3.0
|
|
106
110
|
*/
|
|
107
111
|
storePath?: string;
|
|
108
112
|
/**
|
|
@@ -112,6 +116,8 @@ export type PartyKitPersisterConfig = {
|
|
|
112
116
|
* This must match the messagePrefix property of the
|
|
113
117
|
* TinyBasePartyKitServerConfig object used on the server. Both default to an
|
|
114
118
|
* empty string.
|
|
119
|
+
* @category Configuration
|
|
120
|
+
* @since v4.3.0
|
|
115
121
|
*/
|
|
116
122
|
messagePrefix?: string;
|
|
117
123
|
};
|
|
@@ -180,7 +186,7 @@ export type PartyKitPersisterConfig = {
|
|
|
180
186
|
* persister.destroy();
|
|
181
187
|
* ```
|
|
182
188
|
* @category Creation
|
|
183
|
-
* @since
|
|
189
|
+
* @since v4.3.0
|
|
184
190
|
*/
|
|
185
191
|
export function createPartyKitPersister(
|
|
186
192
|
store: Store,
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
*
|
|
13
13
|
* Note that both the client and server parts of this Persister are currently
|
|
14
14
|
* experimental as PartyKit is new and still maturing.
|
|
15
|
-
* @see
|
|
15
|
+
* @see Persistence guides
|
|
16
16
|
* @packageDocumentation
|
|
17
17
|
* @module persister-partykit-client
|
|
18
|
-
* @since
|
|
18
|
+
* @since v4.3.0
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
import type {PartySocket} from 'partysocket';
|
|
@@ -27,12 +27,12 @@ import type {Store} from '../../store/index.d.ts';
|
|
|
27
27
|
* load Store data from the client to the durable PartyKit cloud storage of a
|
|
28
28
|
* server.
|
|
29
29
|
*
|
|
30
|
+
* You should use the createPartyKitPersister function to create a
|
|
31
|
+
* PartyKitPersister object.
|
|
32
|
+
*
|
|
30
33
|
* It is a minor extension to the Persister interface and simply provides an
|
|
31
34
|
* extra getConnection method for accessing the PartySocket the Store is being
|
|
32
35
|
* persisted to.
|
|
33
|
-
*
|
|
34
|
-
* You should use the createPartyKitPersister function to create a
|
|
35
|
-
* PartyKitPersister object.
|
|
36
36
|
* @category Persister
|
|
37
37
|
* @since v4.3.14
|
|
38
38
|
*/
|
|
@@ -97,12 +97,16 @@ export type PartyKitPersisterConfig = {
|
|
|
97
97
|
* The HTTP protocol to use (in addition to the websocket channel). This
|
|
98
98
|
* defaults to 'https' but you may wish to use 'http' for local PartyKit
|
|
99
99
|
* development.
|
|
100
|
+
* @category Configuration
|
|
101
|
+
* @since v4.3.0
|
|
100
102
|
*/
|
|
101
103
|
storeProtocol?: 'http' | 'https';
|
|
102
104
|
/**
|
|
103
105
|
* The path used to set and get the whole Store over HTTP(S) on the server.
|
|
104
106
|
* This must match the storePath property of the TinyBasePartyKitServerConfig
|
|
105
107
|
* object used on the server. Both default to '/store'.
|
|
108
|
+
* @category Configuration
|
|
109
|
+
* @since v4.3.0
|
|
106
110
|
*/
|
|
107
111
|
storePath?: string;
|
|
108
112
|
/**
|
|
@@ -112,6 +116,8 @@ export type PartyKitPersisterConfig = {
|
|
|
112
116
|
* This must match the messagePrefix property of the
|
|
113
117
|
* TinyBasePartyKitServerConfig object used on the server. Both default to an
|
|
114
118
|
* empty string.
|
|
119
|
+
* @category Configuration
|
|
120
|
+
* @since v4.3.0
|
|
115
121
|
*/
|
|
116
122
|
messagePrefix?: string;
|
|
117
123
|
};
|
|
@@ -180,7 +186,7 @@ export type PartyKitPersisterConfig = {
|
|
|
180
186
|
* persister.destroy();
|
|
181
187
|
* ```
|
|
182
188
|
* @category Creation
|
|
183
|
-
* @since
|
|
189
|
+
* @since v4.3.0
|
|
184
190
|
*/
|
|
185
191
|
export function createPartyKitPersister(
|
|
186
192
|
store: Store,
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
*
|
|
13
13
|
* Note that both the client and server parts of this Persister are currently
|
|
14
14
|
* experimental as PartyKit is new and still maturing.
|
|
15
|
-
* @see
|
|
15
|
+
* @see Persistence guides
|
|
16
16
|
* @packageDocumentation
|
|
17
17
|
* @module persister-partykit-client
|
|
18
|
-
* @since
|
|
18
|
+
* @since v4.3.0
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
import type {
|
|
@@ -30,12 +30,12 @@ import type {Persister} from '../../with-schemas/index.d.cts';
|
|
|
30
30
|
* load Store data from the client to the durable PartyKit cloud storage of a
|
|
31
31
|
* server.
|
|
32
32
|
*
|
|
33
|
+
* You should use the createPartyKitPersister function to create a
|
|
34
|
+
* PartyKitPersister object.
|
|
35
|
+
*
|
|
33
36
|
* It is a minor extension to the Persister interface and simply provides an
|
|
34
37
|
* extra getConnection method for accessing the PartySocket the Store is being
|
|
35
38
|
* persisted to.
|
|
36
|
-
*
|
|
37
|
-
* You should use the createPartyKitPersister function to create a
|
|
38
|
-
* PartyKitPersister object.
|
|
39
39
|
* @category Persister
|
|
40
40
|
* @since v4.3.14
|
|
41
41
|
*/
|
|
@@ -101,12 +101,16 @@ export type PartyKitPersisterConfig = {
|
|
|
101
101
|
* The HTTP protocol to use (in addition to the websocket channel). This
|
|
102
102
|
* defaults to 'https' but you may wish to use 'http' for local PartyKit
|
|
103
103
|
* development.
|
|
104
|
+
* @category Configuration
|
|
105
|
+
* @since v4.3.0
|
|
104
106
|
*/
|
|
105
107
|
storeProtocol?: 'http' | 'https';
|
|
106
108
|
/**
|
|
107
109
|
* The path used to set and get the whole Store over HTTP(S) on the server.
|
|
108
110
|
* This must match the storePath property of the TinyBasePartyKitServerConfig
|
|
109
111
|
* object used on the server. Both default to '/store'.
|
|
112
|
+
* @category Configuration
|
|
113
|
+
* @since v4.3.0
|
|
110
114
|
*/
|
|
111
115
|
storePath?: string;
|
|
112
116
|
/**
|
|
@@ -116,6 +120,8 @@ export type PartyKitPersisterConfig = {
|
|
|
116
120
|
* This must match the messagePrefix property of the
|
|
117
121
|
* TinyBasePartyKitServerConfig object used on the server. Both default to an
|
|
118
122
|
* empty string.
|
|
123
|
+
* @category Configuration
|
|
124
|
+
* @since v4.3.0
|
|
119
125
|
*/
|
|
120
126
|
messagePrefix?: string;
|
|
121
127
|
};
|
|
@@ -195,7 +201,7 @@ export type PartyKitPersisterConfig = {
|
|
|
195
201
|
* persister.destroy();
|
|
196
202
|
* ```
|
|
197
203
|
* @category Creation
|
|
198
|
-
* @since
|
|
204
|
+
* @since v4.3.0
|
|
199
205
|
*/
|
|
200
206
|
export function createPartyKitPersister<Schemas extends OptionalSchemas>(
|
|
201
207
|
store: Store<Schemas>,
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
*
|
|
13
13
|
* Note that both the client and server parts of this Persister are currently
|
|
14
14
|
* experimental as PartyKit is new and still maturing.
|
|
15
|
-
* @see
|
|
15
|
+
* @see Persistence guides
|
|
16
16
|
* @packageDocumentation
|
|
17
17
|
* @module persister-partykit-client
|
|
18
|
-
* @since
|
|
18
|
+
* @since v4.3.0
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
import type {
|
|
@@ -30,12 +30,12 @@ import type {Persister} from '../../with-schemas/index.d.ts';
|
|
|
30
30
|
* load Store data from the client to the durable PartyKit cloud storage of a
|
|
31
31
|
* server.
|
|
32
32
|
*
|
|
33
|
+
* You should use the createPartyKitPersister function to create a
|
|
34
|
+
* PartyKitPersister object.
|
|
35
|
+
*
|
|
33
36
|
* It is a minor extension to the Persister interface and simply provides an
|
|
34
37
|
* extra getConnection method for accessing the PartySocket the Store is being
|
|
35
38
|
* persisted to.
|
|
36
|
-
*
|
|
37
|
-
* You should use the createPartyKitPersister function to create a
|
|
38
|
-
* PartyKitPersister object.
|
|
39
39
|
* @category Persister
|
|
40
40
|
* @since v4.3.14
|
|
41
41
|
*/
|
|
@@ -101,12 +101,16 @@ export type PartyKitPersisterConfig = {
|
|
|
101
101
|
* The HTTP protocol to use (in addition to the websocket channel). This
|
|
102
102
|
* defaults to 'https' but you may wish to use 'http' for local PartyKit
|
|
103
103
|
* development.
|
|
104
|
+
* @category Configuration
|
|
105
|
+
* @since v4.3.0
|
|
104
106
|
*/
|
|
105
107
|
storeProtocol?: 'http' | 'https';
|
|
106
108
|
/**
|
|
107
109
|
* The path used to set and get the whole Store over HTTP(S) on the server.
|
|
108
110
|
* This must match the storePath property of the TinyBasePartyKitServerConfig
|
|
109
111
|
* object used on the server. Both default to '/store'.
|
|
112
|
+
* @category Configuration
|
|
113
|
+
* @since v4.3.0
|
|
110
114
|
*/
|
|
111
115
|
storePath?: string;
|
|
112
116
|
/**
|
|
@@ -116,6 +120,8 @@ export type PartyKitPersisterConfig = {
|
|
|
116
120
|
* This must match the messagePrefix property of the
|
|
117
121
|
* TinyBasePartyKitServerConfig object used on the server. Both default to an
|
|
118
122
|
* empty string.
|
|
123
|
+
* @category Configuration
|
|
124
|
+
* @since v4.3.0
|
|
119
125
|
*/
|
|
120
126
|
messagePrefix?: string;
|
|
121
127
|
};
|
|
@@ -195,7 +201,7 @@ export type PartyKitPersisterConfig = {
|
|
|
195
201
|
* persister.destroy();
|
|
196
202
|
* ```
|
|
197
203
|
* @category Creation
|
|
198
|
-
* @since
|
|
204
|
+
* @since v4.3.0
|
|
199
205
|
*/
|
|
200
206
|
export function createPartyKitPersister<Schemas extends OptionalSchemas>(
|
|
201
207
|
store: Store<Schemas>,
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Note that both the client and server parts of this Persister are currently
|
|
13
13
|
* experimental as PartyKit is new and still maturing.
|
|
14
|
-
* @see
|
|
14
|
+
* @see Persistence guides
|
|
15
15
|
* @packageDocumentation
|
|
16
16
|
* @module persister-partykit-server
|
|
17
|
-
* @since
|
|
17
|
+
* @since v4.3.0
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
import type {
|
|
@@ -70,6 +70,8 @@ export type TinyBasePartyKitServerConfig = {
|
|
|
70
70
|
* The path used to set and get the whole Store over HTTP(S) on the server.
|
|
71
71
|
* This must match the storePath property of the PartyKitPersisterConfig used
|
|
72
72
|
* on the client. Both default to '/store'.
|
|
73
|
+
* @category Configuration
|
|
74
|
+
* @since v4.3.0
|
|
73
75
|
*/
|
|
74
76
|
storePath?: string;
|
|
75
77
|
/**
|
|
@@ -78,12 +80,16 @@ export type TinyBasePartyKitServerConfig = {
|
|
|
78
80
|
* not collide with any other message syntax that your room is using. This
|
|
79
81
|
* must match the messagePrefix property of the PartyKitPersisterConfig object
|
|
80
82
|
* used on the client. Both default to an empty string.
|
|
83
|
+
* @category Configuration
|
|
84
|
+
* @since v4.3.0
|
|
81
85
|
*/
|
|
82
86
|
messagePrefix?: string;
|
|
83
87
|
/**
|
|
84
88
|
* The prefix used before all the keys in the server's durable storage. Use
|
|
85
89
|
* this in case you are worried about the Store data colliding with other data
|
|
86
90
|
* stored in the room. Defaults to an empty string.
|
|
91
|
+
* @category Configuration
|
|
92
|
+
* @since v4.3.0
|
|
87
93
|
*/
|
|
88
94
|
storagePrefix?: string;
|
|
89
95
|
/**
|
|
@@ -99,6 +105,8 @@ export type TinyBasePartyKitServerConfig = {
|
|
|
99
105
|
* If you set this field, it will override the default completely. So, for
|
|
100
106
|
* example, if you add another header but still want the CORS defaults, you
|
|
101
107
|
* will need to explicitly set the Access-Control-Allow headers above again.
|
|
108
|
+
* @category Configuration
|
|
109
|
+
* @since v4.3.0
|
|
102
110
|
*/
|
|
103
111
|
responseHeaders?: HeadersInit;
|
|
104
112
|
};
|
|
@@ -149,7 +157,7 @@ export type TinyBasePartyKitServerConfig = {
|
|
|
149
157
|
* See the [PartyKit server API
|
|
150
158
|
* documentation](https://docs.partykit.io/reference/partyserver-api/) for
|
|
151
159
|
* more details.
|
|
152
|
-
* @category
|
|
160
|
+
* @category Server
|
|
153
161
|
* @since v4.3.0
|
|
154
162
|
*/
|
|
155
163
|
export class TinyBasePartyKitServer implements Server {
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Note that both the client and server parts of this Persister are currently
|
|
13
13
|
* experimental as PartyKit is new and still maturing.
|
|
14
|
-
* @see
|
|
14
|
+
* @see Persistence guides
|
|
15
15
|
* @packageDocumentation
|
|
16
16
|
* @module persister-partykit-server
|
|
17
|
-
* @since
|
|
17
|
+
* @since v4.3.0
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
import type {
|
|
@@ -70,6 +70,8 @@ export type TinyBasePartyKitServerConfig = {
|
|
|
70
70
|
* The path used to set and get the whole Store over HTTP(S) on the server.
|
|
71
71
|
* This must match the storePath property of the PartyKitPersisterConfig used
|
|
72
72
|
* on the client. Both default to '/store'.
|
|
73
|
+
* @category Configuration
|
|
74
|
+
* @since v4.3.0
|
|
73
75
|
*/
|
|
74
76
|
storePath?: string;
|
|
75
77
|
/**
|
|
@@ -78,12 +80,16 @@ export type TinyBasePartyKitServerConfig = {
|
|
|
78
80
|
* not collide with any other message syntax that your room is using. This
|
|
79
81
|
* must match the messagePrefix property of the PartyKitPersisterConfig object
|
|
80
82
|
* used on the client. Both default to an empty string.
|
|
83
|
+
* @category Configuration
|
|
84
|
+
* @since v4.3.0
|
|
81
85
|
*/
|
|
82
86
|
messagePrefix?: string;
|
|
83
87
|
/**
|
|
84
88
|
* The prefix used before all the keys in the server's durable storage. Use
|
|
85
89
|
* this in case you are worried about the Store data colliding with other data
|
|
86
90
|
* stored in the room. Defaults to an empty string.
|
|
91
|
+
* @category Configuration
|
|
92
|
+
* @since v4.3.0
|
|
87
93
|
*/
|
|
88
94
|
storagePrefix?: string;
|
|
89
95
|
/**
|
|
@@ -99,6 +105,8 @@ export type TinyBasePartyKitServerConfig = {
|
|
|
99
105
|
* If you set this field, it will override the default completely. So, for
|
|
100
106
|
* example, if you add another header but still want the CORS defaults, you
|
|
101
107
|
* will need to explicitly set the Access-Control-Allow headers above again.
|
|
108
|
+
* @category Configuration
|
|
109
|
+
* @since v4.3.0
|
|
102
110
|
*/
|
|
103
111
|
responseHeaders?: HeadersInit;
|
|
104
112
|
};
|
|
@@ -149,7 +157,7 @@ export type TinyBasePartyKitServerConfig = {
|
|
|
149
157
|
* See the [PartyKit server API
|
|
150
158
|
* documentation](https://docs.partykit.io/reference/partyserver-api/) for
|
|
151
159
|
* more details.
|
|
152
|
-
* @category
|
|
160
|
+
* @category Server
|
|
153
161
|
* @since v4.3.0
|
|
154
162
|
*/
|
|
155
163
|
export class TinyBasePartyKitServer implements Server {
|