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.
Files changed (249) hide show
  1. package/@types/_internal/ui-react/with-schemas/index.d.cts +274 -0
  2. package/@types/_internal/ui-react/with-schemas/index.d.ts +274 -0
  3. package/@types/checkpoints/index.d.cts +30 -1
  4. package/@types/checkpoints/index.d.ts +30 -1
  5. package/@types/checkpoints/with-schemas/index.d.cts +30 -1
  6. package/@types/checkpoints/with-schemas/index.d.ts +30 -1
  7. package/@types/common/index.d.cts +9 -0
  8. package/@types/common/index.d.ts +9 -0
  9. package/@types/common/with-schemas/index.d.cts +9 -0
  10. package/@types/common/with-schemas/index.d.ts +9 -0
  11. package/@types/index.d.cts +1 -0
  12. package/@types/index.d.ts +1 -0
  13. package/@types/indexes/index.d.cts +32 -1
  14. package/@types/indexes/index.d.ts +32 -1
  15. package/@types/indexes/with-schemas/index.d.cts +32 -1
  16. package/@types/indexes/with-schemas/index.d.ts +32 -1
  17. package/@types/mergeable-store/index.d.cts +0 -2
  18. package/@types/mergeable-store/index.d.ts +0 -2
  19. package/@types/mergeable-store/with-schemas/index.d.cts +2 -2
  20. package/@types/mergeable-store/with-schemas/index.d.ts +2 -2
  21. package/@types/metrics/index.d.cts +30 -4
  22. package/@types/metrics/index.d.ts +30 -4
  23. package/@types/metrics/with-schemas/index.d.cts +30 -4
  24. package/@types/metrics/with-schemas/index.d.ts +30 -4
  25. package/@types/persisters/index.d.cts +87 -25
  26. package/@types/persisters/index.d.ts +87 -25
  27. package/@types/persisters/persister-automerge/index.d.cts +4 -4
  28. package/@types/persisters/persister-automerge/index.d.ts +4 -4
  29. package/@types/persisters/persister-automerge/with-schemas/index.d.cts +4 -4
  30. package/@types/persisters/persister-automerge/with-schemas/index.d.ts +4 -4
  31. package/@types/persisters/persister-browser/index.d.cts +7 -4
  32. package/@types/persisters/persister-browser/index.d.ts +7 -4
  33. package/@types/persisters/persister-browser/with-schemas/index.d.cts +7 -4
  34. package/@types/persisters/persister-browser/with-schemas/index.d.ts +7 -4
  35. package/@types/persisters/persister-cr-sqlite-wasm/index.d.cts +4 -4
  36. package/@types/persisters/persister-cr-sqlite-wasm/index.d.ts +4 -4
  37. package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.cts +4 -4
  38. package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.ts +4 -4
  39. package/@types/persisters/persister-electric-sql/index.d.cts +4 -4
  40. package/@types/persisters/persister-electric-sql/index.d.ts +4 -4
  41. package/@types/persisters/persister-electric-sql/with-schemas/index.d.cts +4 -4
  42. package/@types/persisters/persister-electric-sql/with-schemas/index.d.ts +4 -4
  43. package/@types/persisters/persister-expo-sqlite/index.d.cts +4 -4
  44. package/@types/persisters/persister-expo-sqlite/index.d.ts +4 -4
  45. package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.cts +4 -4
  46. package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.ts +4 -4
  47. package/@types/persisters/persister-file/index.d.cts +6 -4
  48. package/@types/persisters/persister-file/index.d.ts +6 -4
  49. package/@types/persisters/persister-file/with-schemas/index.d.cts +6 -4
  50. package/@types/persisters/persister-file/with-schemas/index.d.ts +6 -4
  51. package/@types/persisters/persister-indexed-db/index.d.cts +5 -4
  52. package/@types/persisters/persister-indexed-db/index.d.ts +5 -4
  53. package/@types/persisters/persister-indexed-db/with-schemas/index.d.cts +5 -4
  54. package/@types/persisters/persister-indexed-db/with-schemas/index.d.ts +5 -4
  55. package/@types/persisters/persister-libsql/index.d.cts +5 -4
  56. package/@types/persisters/persister-libsql/index.d.ts +5 -4
  57. package/@types/persisters/persister-libsql/with-schemas/index.d.cts +5 -4
  58. package/@types/persisters/persister-libsql/with-schemas/index.d.ts +5 -4
  59. package/@types/persisters/persister-partykit-client/index.d.cts +12 -6
  60. package/@types/persisters/persister-partykit-client/index.d.ts +12 -6
  61. package/@types/persisters/persister-partykit-client/with-schemas/index.d.cts +12 -6
  62. package/@types/persisters/persister-partykit-client/with-schemas/index.d.ts +12 -6
  63. package/@types/persisters/persister-partykit-server/index.d.cts +11 -3
  64. package/@types/persisters/persister-partykit-server/index.d.ts +11 -3
  65. package/@types/persisters/persister-partykit-server/with-schemas/index.d.cts +11 -3
  66. package/@types/persisters/persister-partykit-server/with-schemas/index.d.ts +11 -3
  67. package/@types/persisters/persister-powersync/index.d.cts +5 -4
  68. package/@types/persisters/persister-powersync/index.d.ts +5 -4
  69. package/@types/persisters/persister-powersync/with-schemas/index.d.cts +5 -4
  70. package/@types/persisters/persister-powersync/with-schemas/index.d.ts +5 -4
  71. package/@types/persisters/persister-remote/index.d.cts +6 -4
  72. package/@types/persisters/persister-remote/index.d.ts +6 -4
  73. package/@types/persisters/persister-remote/with-schemas/index.d.cts +6 -4
  74. package/@types/persisters/persister-remote/with-schemas/index.d.ts +6 -4
  75. package/@types/persisters/persister-sqlite-wasm/index.d.cts +4 -4
  76. package/@types/persisters/persister-sqlite-wasm/index.d.ts +4 -4
  77. package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.cts +4 -4
  78. package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.ts +4 -4
  79. package/@types/persisters/persister-sqlite3/index.d.cts +4 -4
  80. package/@types/persisters/persister-sqlite3/index.d.ts +4 -4
  81. package/@types/persisters/persister-sqlite3/with-schemas/index.d.cts +4 -4
  82. package/@types/persisters/persister-sqlite3/with-schemas/index.d.ts +4 -4
  83. package/@types/persisters/persister-yjs/index.d.cts +4 -4
  84. package/@types/persisters/persister-yjs/index.d.ts +4 -4
  85. package/@types/persisters/persister-yjs/with-schemas/index.d.cts +4 -4
  86. package/@types/persisters/persister-yjs/with-schemas/index.d.ts +4 -4
  87. package/@types/persisters/with-schemas/index.d.cts +87 -25
  88. package/@types/persisters/with-schemas/index.d.ts +87 -25
  89. package/@types/queries/index.d.cts +64 -4
  90. package/@types/queries/index.d.ts +64 -4
  91. package/@types/queries/with-schemas/index.d.cts +64 -4
  92. package/@types/queries/with-schemas/index.d.ts +64 -4
  93. package/@types/relationships/index.d.cts +34 -1
  94. package/@types/relationships/index.d.ts +34 -1
  95. package/@types/relationships/with-schemas/index.d.cts +34 -1
  96. package/@types/relationships/with-schemas/index.d.ts +34 -1
  97. package/@types/store/index.d.cts +125 -0
  98. package/@types/store/index.d.ts +125 -0
  99. package/@types/store/with-schemas/index.d.cts +125 -0
  100. package/@types/store/with-schemas/index.d.ts +125 -0
  101. package/@types/synchronizers/index.d.cts +32 -10
  102. package/@types/synchronizers/index.d.ts +32 -10
  103. package/@types/synchronizers/synchronizer-broadcast-channel/index.d.cts +114 -0
  104. package/@types/synchronizers/synchronizer-broadcast-channel/index.d.ts +114 -0
  105. package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.cts +128 -0
  106. package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.ts +128 -0
  107. package/@types/synchronizers/synchronizer-local/index.d.cts +16 -17
  108. package/@types/synchronizers/synchronizer-local/index.d.ts +16 -17
  109. package/@types/synchronizers/synchronizer-local/with-schemas/index.d.cts +16 -17
  110. package/@types/synchronizers/synchronizer-local/with-schemas/index.d.ts +16 -17
  111. package/@types/synchronizers/synchronizer-ws-client/index.d.cts +66 -6
  112. package/@types/synchronizers/synchronizer-ws-client/index.d.ts +66 -6
  113. package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.cts +77 -6
  114. package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.ts +77 -6
  115. package/@types/synchronizers/synchronizer-ws-server/index.d.cts +486 -7
  116. package/@types/synchronizers/synchronizer-ws-server/index.d.ts +486 -7
  117. package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.cts +486 -7
  118. package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.ts +486 -7
  119. package/@types/synchronizers/with-schemas/index.d.cts +29 -11
  120. package/@types/synchronizers/with-schemas/index.d.ts +29 -11
  121. package/@types/tools/index.d.cts +22 -0
  122. package/@types/tools/index.d.ts +22 -0
  123. package/@types/tools/with-schemas/index.d.cts +22 -0
  124. package/@types/tools/with-schemas/index.d.ts +22 -0
  125. package/@types/ui-react/index.d.cts +375 -1
  126. package/@types/ui-react/index.d.ts +375 -1
  127. package/@types/ui-react/with-schemas/index.d.cts +100 -1
  128. package/@types/ui-react/with-schemas/index.d.ts +100 -1
  129. package/@types/ui-react-dom/index.d.cts +112 -0
  130. package/@types/ui-react-dom/index.d.ts +112 -0
  131. package/@types/ui-react-dom/with-schemas/index.d.cts +112 -0
  132. package/@types/ui-react-dom/with-schemas/index.d.ts +112 -0
  133. package/@types/ui-react-inspector/index.d.cts +6 -2
  134. package/@types/ui-react-inspector/index.d.ts +6 -2
  135. package/@types/ui-react-inspector/with-schemas/index.d.cts +118 -2
  136. package/@types/ui-react-inspector/with-schemas/index.d.ts +118 -2
  137. package/@types/with-schemas/index.d.cts +1 -0
  138. package/@types/with-schemas/index.d.ts +1 -0
  139. package/cjs/es6/index.cjs +2 -2
  140. package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -0
  141. package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
  142. package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -0
  143. package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
  144. package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
  145. package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
  146. package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
  147. package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
  148. package/cjs/es6/synchronizers/index.cjs +2 -2
  149. package/cjs/es6/synchronizers/synchronizer-broadcast-channel/index.cjs +628 -0
  150. package/cjs/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +628 -0
  151. package/cjs/es6/synchronizers/synchronizer-local/index.cjs +4 -4
  152. package/cjs/es6/synchronizers/synchronizer-local/with-schemas/index.cjs +4 -4
  153. package/cjs/es6/synchronizers/synchronizer-ws-client/index.cjs +15 -21
  154. package/cjs/es6/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +15 -21
  155. package/cjs/es6/synchronizers/with-schemas/index.cjs +2 -2
  156. package/cjs/es6/with-schemas/index.cjs +2 -2
  157. package/cjs/index.cjs +2 -2
  158. package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -0
  159. package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
  160. package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -0
  161. package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
  162. package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
  163. package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
  164. package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
  165. package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
  166. package/cjs/synchronizers/index.cjs +2 -2
  167. package/cjs/synchronizers/synchronizer-broadcast-channel/index.cjs +500 -0
  168. package/cjs/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +500 -0
  169. package/cjs/synchronizers/synchronizer-local/index.cjs +4 -4
  170. package/cjs/synchronizers/synchronizer-local/with-schemas/index.cjs +4 -4
  171. package/cjs/synchronizers/synchronizer-ws-client/index.cjs +15 -21
  172. package/cjs/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +15 -21
  173. package/cjs/synchronizers/with-schemas/index.cjs +2 -2
  174. package/cjs/with-schemas/index.cjs +2 -2
  175. package/es6/index.js +2 -2
  176. package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
  177. package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
  178. package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
  179. package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
  180. package/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
  181. package/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
  182. package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
  183. package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
  184. package/es6/synchronizers/index.js +2 -2
  185. package/es6/synchronizers/synchronizer-broadcast-channel/index.js +626 -0
  186. package/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +626 -0
  187. package/es6/synchronizers/synchronizer-local/index.js +4 -4
  188. package/es6/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
  189. package/es6/synchronizers/synchronizer-ws-client/index.js +15 -21
  190. package/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
  191. package/es6/synchronizers/with-schemas/index.js +2 -2
  192. package/es6/with-schemas/index.js +2 -2
  193. package/index.js +2 -2
  194. package/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
  195. package/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
  196. package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
  197. package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
  198. package/min/synchronizers/synchronizer-ws-client/index.js +1 -1
  199. package/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
  200. package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
  201. package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
  202. package/package.json +105 -1
  203. package/readme.md +9 -9
  204. package/releases.md +4 -4
  205. package/synchronizers/index.js +2 -2
  206. package/synchronizers/synchronizer-broadcast-channel/index.js +498 -0
  207. package/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +498 -0
  208. package/synchronizers/synchronizer-local/index.js +4 -4
  209. package/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
  210. package/synchronizers/synchronizer-ws-client/index.js +15 -21
  211. package/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
  212. package/synchronizers/with-schemas/index.js +2 -2
  213. package/umd/es6/index.js +2 -2
  214. package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
  215. package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
  216. package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
  217. package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
  218. package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
  219. package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
  220. package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
  221. package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
  222. package/umd/es6/synchronizers/index.js +2 -2
  223. package/umd/es6/synchronizers/synchronizer-broadcast-channel/index.js +654 -0
  224. package/umd/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +654 -0
  225. package/umd/es6/synchronizers/synchronizer-local/index.js +4 -4
  226. package/umd/es6/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
  227. package/umd/es6/synchronizers/synchronizer-ws-client/index.js +15 -21
  228. package/umd/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
  229. package/umd/es6/synchronizers/with-schemas/index.js +2 -2
  230. package/umd/es6/with-schemas/index.js +2 -2
  231. package/umd/index.js +2 -2
  232. package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
  233. package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
  234. package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
  235. package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
  236. package/umd/min/synchronizers/synchronizer-ws-client/index.js +1 -1
  237. package/umd/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
  238. package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
  239. package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
  240. package/umd/synchronizers/index.js +2 -2
  241. package/umd/synchronizers/synchronizer-broadcast-channel/index.js +516 -0
  242. package/umd/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +516 -0
  243. package/umd/synchronizers/synchronizer-local/index.js +4 -4
  244. package/umd/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
  245. package/umd/synchronizers/synchronizer-ws-client/index.js +15 -21
  246. package/umd/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
  247. package/umd/synchronizers/with-schemas/index.js +2 -2
  248. package/umd/with-schemas/index.js +2 -2
  249. package/with-schemas/index.js +2 -2
@@ -5,7 +5,7 @@
5
5
  * A single entry point, the createAutomergePersister function, is provided,
6
6
  * which returns a new Persister object that can bind a Store to a provided
7
7
  * Automerge document handle (and in turn, its document).
8
- * @see Synchronizing Data guide
8
+ * @see Third-Party CRDT Persistence guide
9
9
  * @packageDocumentation
10
10
  * @module persister-automerge
11
11
  * @since v4.0.0
@@ -19,12 +19,12 @@ import type {Store} from '../../store/index.d.cts';
19
19
  * The AutomergePersister interface represents a Persister that lets you save
20
20
  * and load Store data to and from an Automerge document.
21
21
  *
22
+ * You should use the createAutomergePersister function to create an
23
+ * AutomergePersister object.
24
+ *
22
25
  * It is a minor extension to the Persister interface and simply provides an
23
26
  * extra getDocHandle method for accessing the Automerge document handler the
24
27
  * Store is being persisted to.
25
- *
26
- * You should use the createAutomergePersister function to create an
27
- * AutomergePersister object.
28
28
  * @category Persister
29
29
  * @since v4.3.14
30
30
  */
@@ -5,7 +5,7 @@
5
5
  * A single entry point, the createAutomergePersister function, is provided,
6
6
  * which returns a new Persister object that can bind a Store to a provided
7
7
  * Automerge document handle (and in turn, its document).
8
- * @see Synchronizing Data guide
8
+ * @see Third-Party CRDT Persistence guide
9
9
  * @packageDocumentation
10
10
  * @module persister-automerge
11
11
  * @since v4.0.0
@@ -19,12 +19,12 @@ import type {Store} from '../../store/index.d.ts';
19
19
  * The AutomergePersister interface represents a Persister that lets you save
20
20
  * and load Store data to and from an Automerge document.
21
21
  *
22
+ * You should use the createAutomergePersister function to create an
23
+ * AutomergePersister object.
24
+ *
22
25
  * It is a minor extension to the Persister interface and simply provides an
23
26
  * extra getDocHandle method for accessing the Automerge document handler the
24
27
  * Store is being persisted to.
25
- *
26
- * You should use the createAutomergePersister function to create an
27
- * AutomergePersister object.
28
28
  * @category Persister
29
29
  * @since v4.3.14
30
30
  */
@@ -5,7 +5,7 @@
5
5
  * A single entry point, the createAutomergePersister function, is provided,
6
6
  * which returns a new Persister object that can bind a Store to a provided
7
7
  * Automerge document handle (and in turn, its document).
8
- * @see Synchronizing Data guide
8
+ * @see Third-Party CRDT Persistence guide
9
9
  * @packageDocumentation
10
10
  * @module persister-automerge
11
11
  * @since v4.0.0
@@ -22,12 +22,12 @@ import type {Persister} from '../../with-schemas/index.d.cts';
22
22
  * The AutomergePersister interface represents a Persister that lets you save
23
23
  * and load Store data to and from an Automerge document.
24
24
  *
25
+ * You should use the createAutomergePersister function to create an
26
+ * AutomergePersister object.
27
+ *
25
28
  * It is a minor extension to the Persister interface and simply provides an
26
29
  * extra getDocHandle method for accessing the Automerge document handler the
27
30
  * Store is being persisted to.
28
- *
29
- * You should use the createAutomergePersister function to create an
30
- * AutomergePersister object.
31
31
  * @category Persister
32
32
  * @since v4.3.14
33
33
  */
@@ -5,7 +5,7 @@
5
5
  * A single entry point, the createAutomergePersister function, is provided,
6
6
  * which returns a new Persister object that can bind a Store to a provided
7
7
  * Automerge document handle (and in turn, its document).
8
- * @see Synchronizing Data guide
8
+ * @see Third-Party CRDT Persistence guide
9
9
  * @packageDocumentation
10
10
  * @module persister-automerge
11
11
  * @since v4.0.0
@@ -22,12 +22,12 @@ import type {Persister} from '../../with-schemas/index.d.ts';
22
22
  * The AutomergePersister interface represents a Persister that lets you save
23
23
  * and load Store data to and from an Automerge document.
24
24
  *
25
+ * You should use the createAutomergePersister function to create an
26
+ * AutomergePersister object.
27
+ *
25
28
  * It is a minor extension to the Persister interface and simply provides an
26
29
  * extra getDocHandle method for accessing the Automerge document handler the
27
30
  * Store is being persisted to.
28
- *
29
- * You should use the createAutomergePersister function to create an
30
- * AutomergePersister object.
31
31
  * @category Persister
32
32
  * @since v4.3.14
33
33
  */
@@ -9,9 +9,10 @@
9
9
  * browser's session storage.
10
10
  * - The createLocalPersister function returns a Persister that uses the
11
11
  * browser's local storage.
12
- * @see Persisting Data guide
12
+ * @see Persistence guides
13
13
  * @packageDocumentation
14
14
  * @module persister-browser
15
+ * @since v1.0.0
15
16
  */
16
17
 
17
18
  import type {Persister, Persists} from '../index.d.cts';
@@ -22,12 +23,12 @@ import type {Store} from '../../store/index.d.cts';
22
23
  * The SessionPersister interface represents a Persister that lets you save and
23
24
  * load Store data to and from the browser's session storage.
24
25
  *
26
+ * You should use the createSessionPersister function to create a
27
+ * SessionPersister object.
28
+ *
25
29
  * It is a minor extension to the Persister interface and simply provides an
26
30
  * extra getStorageName method for accessing the unique key of the storage
27
31
  * location the Store is being persisted to.
28
- *
29
- * You should use the createSessionPersister function to create a
30
- * SessionPersister object.
31
32
  * @category Persister
32
33
  * @since v4.3.14
33
34
  */
@@ -134,6 +135,7 @@ export interface LocalPersister
134
135
  * sessionStorage.clear();
135
136
  * ```
136
137
  * @category Creation
138
+ * @since v1.0.0
137
139
  */
138
140
  export function createSessionPersister(
139
141
  store: Store | MergeableStore,
@@ -175,6 +177,7 @@ export function createSessionPersister(
175
177
  * localStorage.clear();
176
178
  * ```
177
179
  * @category Creation
180
+ * @since v1.0.0
178
181
  */
179
182
  export function createLocalPersister(
180
183
  store: Store | MergeableStore,
@@ -9,9 +9,10 @@
9
9
  * browser's session storage.
10
10
  * - The createLocalPersister function returns a Persister that uses the
11
11
  * browser's local storage.
12
- * @see Persisting Data guide
12
+ * @see Persistence guides
13
13
  * @packageDocumentation
14
14
  * @module persister-browser
15
+ * @since v1.0.0
15
16
  */
16
17
 
17
18
  import type {Persister, Persists} from '../index.d.ts';
@@ -22,12 +23,12 @@ import type {Store} from '../../store/index.d.ts';
22
23
  * The SessionPersister interface represents a Persister that lets you save and
23
24
  * load Store data to and from the browser's session storage.
24
25
  *
26
+ * You should use the createSessionPersister function to create a
27
+ * SessionPersister object.
28
+ *
25
29
  * It is a minor extension to the Persister interface and simply provides an
26
30
  * extra getStorageName method for accessing the unique key of the storage
27
31
  * location the Store is being persisted to.
28
- *
29
- * You should use the createSessionPersister function to create a
30
- * SessionPersister object.
31
32
  * @category Persister
32
33
  * @since v4.3.14
33
34
  */
@@ -134,6 +135,7 @@ export interface LocalPersister
134
135
  * sessionStorage.clear();
135
136
  * ```
136
137
  * @category Creation
138
+ * @since v1.0.0
137
139
  */
138
140
  export function createSessionPersister(
139
141
  store: Store | MergeableStore,
@@ -175,6 +177,7 @@ export function createSessionPersister(
175
177
  * localStorage.clear();
176
178
  * ```
177
179
  * @category Creation
180
+ * @since v1.0.0
178
181
  */
179
182
  export function createLocalPersister(
180
183
  store: Store | MergeableStore,
@@ -9,9 +9,10 @@
9
9
  * browser's session storage.
10
10
  * - The createLocalPersister function returns a Persister that uses the
11
11
  * browser's local storage.
12
- * @see Persisting Data guide
12
+ * @see Persistence guides
13
13
  * @packageDocumentation
14
14
  * @module persister-browser
15
+ * @since v1.0.0
15
16
  */
16
17
 
17
18
  import type {
@@ -25,12 +26,12 @@ import type {MergeableStore} from '../../../mergeable-store/with-schemas/index.d
25
26
  * The SessionPersister interface represents a Persister that lets you save and
26
27
  * load Store data to and from the browser's session storage.
27
28
  *
29
+ * You should use the createSessionPersister function to create a
30
+ * SessionPersister object.
31
+ *
28
32
  * It is a minor extension to the Persister interface and simply provides an
29
33
  * extra getStorageName method for accessing the unique key of the storage
30
34
  * location the Store is being persisted to.
31
- *
32
- * You should use the createSessionPersister function to create a
33
- * SessionPersister object.
34
35
  * @category Persister
35
36
  * @since v4.3.14
36
37
  */
@@ -147,6 +148,7 @@ export interface LocalPersister<Schemas extends OptionalSchemas>
147
148
  * sessionStorage.clear();
148
149
  * ```
149
150
  * @category Creation
151
+ * @since v1.0.0
150
152
  */
151
153
  export function createSessionPersister<Schemas extends OptionalSchemas>(
152
154
  store: Store<Schemas> | MergeableStore<Schemas>,
@@ -198,6 +200,7 @@ export function createSessionPersister<Schemas extends OptionalSchemas>(
198
200
  * localStorage.clear();
199
201
  * ```
200
202
  * @category Creation
203
+ * @since v1.0.0
201
204
  */
202
205
  export function createLocalPersister<Schemas extends OptionalSchemas>(
203
206
  store: Store<Schemas> | MergeableStore<Schemas>,
@@ -9,9 +9,10 @@
9
9
  * browser's session storage.
10
10
  * - The createLocalPersister function returns a Persister that uses the
11
11
  * browser's local storage.
12
- * @see Persisting Data guide
12
+ * @see Persistence guides
13
13
  * @packageDocumentation
14
14
  * @module persister-browser
15
+ * @since v1.0.0
15
16
  */
16
17
 
17
18
  import type {
@@ -25,12 +26,12 @@ import type {MergeableStore} from '../../../mergeable-store/with-schemas/index.d
25
26
  * The SessionPersister interface represents a Persister that lets you save and
26
27
  * load Store data to and from the browser's session storage.
27
28
  *
29
+ * You should use the createSessionPersister function to create a
30
+ * SessionPersister object.
31
+ *
28
32
  * It is a minor extension to the Persister interface and simply provides an
29
33
  * extra getStorageName method for accessing the unique key of the storage
30
34
  * location the Store is being persisted to.
31
- *
32
- * You should use the createSessionPersister function to create a
33
- * SessionPersister object.
34
35
  * @category Persister
35
36
  * @since v4.3.14
36
37
  */
@@ -147,6 +148,7 @@ export interface LocalPersister<Schemas extends OptionalSchemas>
147
148
  * sessionStorage.clear();
148
149
  * ```
149
150
  * @category Creation
151
+ * @since v1.0.0
150
152
  */
151
153
  export function createSessionPersister<Schemas extends OptionalSchemas>(
152
154
  store: Store<Schemas> | MergeableStore<Schemas>,
@@ -198,6 +200,7 @@ export function createSessionPersister<Schemas extends OptionalSchemas>(
198
200
  * localStorage.clear();
199
201
  * ```
200
202
  * @category Creation
203
+ * @since v1.0.0
201
204
  */
202
205
  export function createLocalPersister<Schemas extends OptionalSchemas>(
203
206
  store: Store<Schemas> | MergeableStore<Schemas>,
@@ -2,7 +2,7 @@
2
2
  * The persister-cr-sqlite-wasm module of the TinyBase project lets you save and
3
3
  * load Store data to and from a local CR-SQLite database (in an appropriate
4
4
  * environment).
5
- * @see Persisting Data guide
5
+ * @see Database Persistence guide
6
6
  * @packageDocumentation
7
7
  * @module persister-cr-sqlite-wasm
8
8
  * @since v4.0.0
@@ -16,12 +16,12 @@ import type {Store} from '../../store/index.d.cts';
16
16
  * The CrSqliteWasmPersister interface represents a Persister that lets you save
17
17
  * and load Store data to and from a local CR-SQLite database.
18
18
  *
19
+ * You should use the createCrSqliteWasmPersister function to create a
20
+ * CrSqliteWasmPersister object.
21
+ *
19
22
  * It is a minor extension to the Persister interface and simply provides an
20
23
  * extra getDb method for accessing a reference to the database instance the
21
24
  * Store is being persisted to.
22
- *
23
- * You should use the createCrSqliteWasmPersister function to create a
24
- * CrSqliteWasmPersister object.
25
25
  * @category Persister
26
26
  * @since v4.3.14
27
27
  */
@@ -2,7 +2,7 @@
2
2
  * The persister-cr-sqlite-wasm module of the TinyBase project lets you save and
3
3
  * load Store data to and from a local CR-SQLite database (in an appropriate
4
4
  * environment).
5
- * @see Persisting Data guide
5
+ * @see Database Persistence guide
6
6
  * @packageDocumentation
7
7
  * @module persister-cr-sqlite-wasm
8
8
  * @since v4.0.0
@@ -16,12 +16,12 @@ import type {Store} from '../../store/index.d.ts';
16
16
  * The CrSqliteWasmPersister interface represents a Persister that lets you save
17
17
  * and load Store data to and from a local CR-SQLite database.
18
18
  *
19
+ * You should use the createCrSqliteWasmPersister function to create a
20
+ * CrSqliteWasmPersister object.
21
+ *
19
22
  * It is a minor extension to the Persister interface and simply provides an
20
23
  * extra getDb method for accessing a reference to the database instance the
21
24
  * Store is being persisted to.
22
- *
23
- * You should use the createCrSqliteWasmPersister function to create a
24
- * CrSqliteWasmPersister object.
25
25
  * @category Persister
26
26
  * @since v4.3.14
27
27
  */
@@ -2,7 +2,7 @@
2
2
  * The persister-cr-sqlite-wasm module of the TinyBase project lets you save and
3
3
  * load Store data to and from a local CR-SQLite database (in an appropriate
4
4
  * environment).
5
- * @see Persisting Data guide
5
+ * @see Database Persistence guide
6
6
  * @packageDocumentation
7
7
  * @module persister-cr-sqlite-wasm
8
8
  * @since v4.0.0
@@ -22,12 +22,12 @@ import type {DB} from '@vlcn.io/crsqlite-wasm';
22
22
  * The CrSqliteWasmPersister interface represents a Persister that lets you save
23
23
  * and load Store data to and from a local CR-SQLite database.
24
24
  *
25
+ * You should use the createCrSqliteWasmPersister function to create a
26
+ * CrSqliteWasmPersister object.
27
+ *
25
28
  * It is a minor extension to the Persister interface and simply provides an
26
29
  * extra getDb method for accessing a reference to the database instance the
27
30
  * Store is being persisted to.
28
- *
29
- * You should use the createCrSqliteWasmPersister function to create a
30
- * CrSqliteWasmPersister object.
31
31
  * @category Persister
32
32
  * @since v4.3.14
33
33
  */
@@ -2,7 +2,7 @@
2
2
  * The persister-cr-sqlite-wasm module of the TinyBase project lets you save and
3
3
  * load Store data to and from a local CR-SQLite database (in an appropriate
4
4
  * environment).
5
- * @see Persisting Data guide
5
+ * @see Database Persistence guide
6
6
  * @packageDocumentation
7
7
  * @module persister-cr-sqlite-wasm
8
8
  * @since v4.0.0
@@ -22,12 +22,12 @@ import type {DB} from '@vlcn.io/crsqlite-wasm';
22
22
  * The CrSqliteWasmPersister interface represents a Persister that lets you save
23
23
  * and load Store data to and from a local CR-SQLite database.
24
24
  *
25
+ * You should use the createCrSqliteWasmPersister function to create a
26
+ * CrSqliteWasmPersister object.
27
+ *
25
28
  * It is a minor extension to the Persister interface and simply provides an
26
29
  * extra getDb method for accessing a reference to the database instance the
27
30
  * Store is being persisted to.
28
- *
29
- * You should use the createCrSqliteWasmPersister function to create a
30
- * CrSqliteWasmPersister object.
31
31
  * @category Persister
32
32
  * @since v4.3.14
33
33
  */
@@ -2,7 +2,7 @@
2
2
  * The persister-electric-sql module of the TinyBase project lets you save and
3
3
  * load Store data to and from a local ElectricSQL database (in an appropriate
4
4
  * environment).
5
- * @see Persisting Data guide
5
+ * @see Database Persistence guide
6
6
  * @packageDocumentation
7
7
  * @module persister-electric-sql
8
8
  * @since v4.6.0
@@ -16,12 +16,12 @@ import type {Store} from '../../store/index.d.cts';
16
16
  * The ElectricSqlPersister interface represents a Persister that lets you save
17
17
  * and load Store data to and from a local ElectricSQL database.
18
18
  *
19
+ * You should use the createElectricSqlPersister function to create an
20
+ * ElectricSqlPersister object.
21
+ *
19
22
  * It is a minor extension to the Persister interface and simply provides an
20
23
  * extra getElectricClient method for accessing a reference to the Electric
21
24
  * client the Store is being persisted to.
22
- *
23
- * You should use the createElectricSqlPersister function to create an
24
- * ElectricSqlPersister object.
25
25
  * @category Persister
26
26
  * @since v4.6.0
27
27
  */
@@ -2,7 +2,7 @@
2
2
  * The persister-electric-sql module of the TinyBase project lets you save and
3
3
  * load Store data to and from a local ElectricSQL database (in an appropriate
4
4
  * environment).
5
- * @see Persisting Data guide
5
+ * @see Database Persistence guide
6
6
  * @packageDocumentation
7
7
  * @module persister-electric-sql
8
8
  * @since v4.6.0
@@ -16,12 +16,12 @@ import type {Store} from '../../store/index.d.ts';
16
16
  * The ElectricSqlPersister interface represents a Persister that lets you save
17
17
  * and load Store data to and from a local ElectricSQL database.
18
18
  *
19
+ * You should use the createElectricSqlPersister function to create an
20
+ * ElectricSqlPersister object.
21
+ *
19
22
  * It is a minor extension to the Persister interface and simply provides an
20
23
  * extra getElectricClient method for accessing a reference to the Electric
21
24
  * client the Store is being persisted to.
22
- *
23
- * You should use the createElectricSqlPersister function to create an
24
- * ElectricSqlPersister object.
25
25
  * @category Persister
26
26
  * @since v4.6.0
27
27
  */
@@ -2,7 +2,7 @@
2
2
  * The persister-electric-sql module of the TinyBase project lets you save and
3
3
  * load Store data to and from a local ElectricSQL database (in an appropriate
4
4
  * environment).
5
- * @see Persisting Data guide
5
+ * @see Database Persistence guide
6
6
  * @packageDocumentation
7
7
  * @module persister-electric-sql
8
8
  * @since v4.6.0
@@ -22,12 +22,12 @@ import type {ElectricClient} from 'electric-sql/client/model';
22
22
  * The ElectricSqlPersister interface represents a Persister that lets you save
23
23
  * and load Store data to and from a local ElectricSQL database.
24
24
  *
25
+ * You should use the createElectricSqlPersister function to create an
26
+ * ElectricSqlPersister object.
27
+ *
25
28
  * It is a minor extension to the Persister interface and simply provides an
26
29
  * extra getElectricClient method for accessing a reference to the Electric
27
30
  * client the Store is being persisted to.
28
- *
29
- * You should use the createElectricSqlPersister function to create an
30
- * ElectricSqlPersister object.
31
31
  * @category Persister
32
32
  * @since v4.6.0
33
33
  */
@@ -2,7 +2,7 @@
2
2
  * The persister-electric-sql module of the TinyBase project lets you save and
3
3
  * load Store data to and from a local ElectricSQL database (in an appropriate
4
4
  * environment).
5
- * @see Persisting Data guide
5
+ * @see Database Persistence guide
6
6
  * @packageDocumentation
7
7
  * @module persister-electric-sql
8
8
  * @since v4.6.0
@@ -22,12 +22,12 @@ import type {ElectricClient} from 'electric-sql/client/model';
22
22
  * The ElectricSqlPersister interface represents a Persister that lets you save
23
23
  * and load Store data to and from a local ElectricSQL database.
24
24
  *
25
+ * You should use the createElectricSqlPersister function to create an
26
+ * ElectricSqlPersister object.
27
+ *
25
28
  * It is a minor extension to the Persister interface and simply provides an
26
29
  * extra getElectricClient method for accessing a reference to the Electric
27
30
  * client the Store is being persisted to.
28
- *
29
- * You should use the createElectricSqlPersister function to create an
30
- * ElectricSqlPersister object.
31
31
  * @category Persister
32
32
  * @since v4.6.0
33
33
  */
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * Note that TinyBase support for the legacy version of Expo-SQLite is no longer
11
11
  * available.
12
- * @see Persisting Data guide
12
+ * @see Database Persistence guide
13
13
  * @packageDocumentation
14
14
  * @module persister-expo-sqlite
15
15
  * @since v4.5.0
@@ -24,12 +24,12 @@ import type {Store} from '../../store/index.d.cts';
24
24
  * The ExpoSqlitePersister interface represents a Persister that lets you save
25
25
  * and load Store data to and from a Expo-SQLite database.
26
26
  *
27
+ * You should use the createExpoSqlitePersister function to create an
28
+ * ExpoSqlitePersister object.
29
+ *
27
30
  * It is a minor extension to the Persister interface and simply provides an
28
31
  * extra getDb method for accessing a reference to the database instance the
29
32
  * Store is being persisted to.
30
- *
31
- * You should use the createExpoSqlitePersister function to create an
32
- * ExpoSqlitePersister object.
33
33
  * @category Persister
34
34
  * @since v4.5.0
35
35
  */
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * Note that TinyBase support for the legacy version of Expo-SQLite is no longer
11
11
  * available.
12
- * @see Persisting Data guide
12
+ * @see Database Persistence guide
13
13
  * @packageDocumentation
14
14
  * @module persister-expo-sqlite
15
15
  * @since v4.5.0
@@ -24,12 +24,12 @@ import type {Store} from '../../store/index.d.ts';
24
24
  * The ExpoSqlitePersister interface represents a Persister that lets you save
25
25
  * and load Store data to and from a Expo-SQLite database.
26
26
  *
27
+ * You should use the createExpoSqlitePersister function to create an
28
+ * ExpoSqlitePersister object.
29
+ *
27
30
  * It is a minor extension to the Persister interface and simply provides an
28
31
  * extra getDb method for accessing a reference to the database instance the
29
32
  * Store is being persisted to.
30
- *
31
- * You should use the createExpoSqlitePersister function to create an
32
- * ExpoSqlitePersister object.
33
33
  * @category Persister
34
34
  * @since v4.5.0
35
35
  */
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * Note that TinyBase support for the legacy version of Expo-SQLite is no longer
11
11
  * available.
12
- * @see Persisting Data guide
12
+ * @see Database Persistence guide
13
13
  * @packageDocumentation
14
14
  * @module persister-expo-sqlite
15
15
  * @since v4.5.0
@@ -31,12 +31,12 @@ import type {SQLiteDatabase} from 'expo-sqlite';
31
31
  * The ExpoSqlitePersister interface represents a Persister that lets you save
32
32
  * and load Store data to and from a Expo-SQLite database.
33
33
  *
34
+ * You should use the createExpoSqlitePersister function to create an
35
+ * ExpoSqlitePersister object.
36
+ *
34
37
  * It is a minor extension to the Persister interface and simply provides an
35
38
  * extra getDb method for accessing a reference to the database instance the
36
39
  * Store is being persisted to.
37
- *
38
- * You should use the createExpoSqlitePersister function to create an
39
- * ExpoSqlitePersister object.
40
40
  * @category Persister
41
41
  * @since v4.5.0
42
42
  */
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * Note that TinyBase support for the legacy version of Expo-SQLite is no longer
11
11
  * available.
12
- * @see Persisting Data guide
12
+ * @see Database Persistence guide
13
13
  * @packageDocumentation
14
14
  * @module persister-expo-sqlite
15
15
  * @since v4.5.0
@@ -31,12 +31,12 @@ import type {SQLiteDatabase} from 'expo-sqlite';
31
31
  * The ExpoSqlitePersister interface represents a Persister that lets you save
32
32
  * and load Store data to and from a Expo-SQLite database.
33
33
  *
34
+ * You should use the createExpoSqlitePersister function to create an
35
+ * ExpoSqlitePersister object.
36
+ *
34
37
  * It is a minor extension to the Persister interface and simply provides an
35
38
  * extra getDb method for accessing a reference to the database instance the
36
39
  * Store is being persisted to.
37
- *
38
- * You should use the createExpoSqlitePersister function to create an
39
- * ExpoSqlitePersister object.
40
40
  * @category Persister
41
41
  * @since v4.5.0
42
42
  */
@@ -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 Persisting Data guide
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 {Persister, Persists} from '../index.d.cts';
@@ -14,12 +15,12 @@ import type {Store} from '../../store/index.d.cts';
14
15
  * The FilePersister interface represents a Persister that lets you save and
15
16
  * load Store data to and from a local file system.
16
17
  *
18
+ * You should use the createFilePersister function to create a FilePersister
19
+ * object.
20
+ *
17
21
  * It is a minor extension to the Persister interface and simply provides an
18
22
  * extra getFilePath method for accessing the location of the local file the
19
23
  * Store is being persisted to.
20
- *
21
- * You should use the createFilePersister function to create a FilePersister
22
- * object.
23
24
  * @category Persister
24
25
  * @since v4.3.14
25
26
  */
@@ -85,6 +86,7 @@ export interface FilePersister
85
86
  * persister.destroy();
86
87
  * ```
87
88
  * @category Creation
89
+ * @since v1.0.0
88
90
  */
89
91
  export function createFilePersister(
90
92
  store: Store | MergeableStore,
@@ -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 Persisting Data guide
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 {Persister, Persists} from '../index.d.ts';
@@ -14,12 +15,12 @@ import type {Store} from '../../store/index.d.ts';
14
15
  * The FilePersister interface represents a Persister that lets you save and
15
16
  * load Store data to and from a local file system.
16
17
  *
18
+ * You should use the createFilePersister function to create a FilePersister
19
+ * object.
20
+ *
17
21
  * It is a minor extension to the Persister interface and simply provides an
18
22
  * extra getFilePath method for accessing the location of the local file the
19
23
  * Store is being persisted to.
20
- *
21
- * You should use the createFilePersister function to create a FilePersister
22
- * object.
23
24
  * @category Persister
24
25
  * @since v4.3.14
25
26
  */
@@ -85,6 +86,7 @@ export interface FilePersister
85
86
  * persister.destroy();
86
87
  * ```
87
88
  * @category Creation
89
+ * @since v1.0.0
88
90
  */
89
91
  export function createFilePersister(
90
92
  store: Store | MergeableStore,