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
@@ -8,6 +8,7 @@
8
8
  * directly, and register listeners for when they change.
9
9
  * @packageDocumentation
10
10
  * @module relationships
11
+ * @since v1.0.0
11
12
  */
12
13
 
13
14
  import type {GetCell, RowCallback, Store} from '../store/index.d.cts';
@@ -30,6 +31,7 @@ import type {Id, IdOrNull, Ids} from '../common/index.d.cts';
30
31
  * instead enumerate and access its structure with the getRemoteRowId method,
31
32
  * the getLocalRowIds method, and the getLinkedRowIds method.
32
33
  * @category Concept
34
+ * @since v1.0.0
33
35
  */
34
36
  export type Relationship = {
35
37
  remoteRowId: {[localRowId: Id]: Id};
@@ -49,6 +51,7 @@ export type Relationship = {
49
51
  * @param forEachRow A function that will let you iterate over the local Row
50
52
  * objects in this Relationship.
51
53
  * @category Callback
54
+ * @since v1.0.0
52
55
  */
53
56
  export type RelationshipCallback = (
54
57
  relationshipId: Id,
@@ -66,6 +69,7 @@ export type RelationshipCallback = (
66
69
  * Relationships object.
67
70
  * @param relationships A reference to the Relationships object that changed.
68
71
  * @category Listener
72
+ * @since v1.0.0
69
73
  */
70
74
  export type RelationshipIdsListener = (relationships: Relationships) => void;
71
75
 
@@ -83,6 +87,7 @@ export type RelationshipIdsListener = (relationships: Relationships) => void;
83
87
  * @param relationshipId The Id of the Relationship that changed.
84
88
  * @param localRowId The Id of the local Row whose remote Row Id changed.
85
89
  * @category Listener
90
+ * @since v1.0.0
86
91
  */
87
92
  export type RemoteRowIdListener = (
88
93
  relationships: Relationships,
@@ -104,6 +109,7 @@ export type RemoteRowIdListener = (
104
109
  * @param relationshipId The Id of the Relationship that changed.
105
110
  * @param remoteRowId The Id of the remote Row whose local Row Ids changed.
106
111
  * @category Listener
112
+ * @since v1.0.0
107
113
  */
108
114
  export type LocalRowIdsListener = (
109
115
  relationships: Relationships,
@@ -126,6 +132,7 @@ export type LocalRowIdsListener = (
126
132
  * @param firstRowId The Id of the first Row of the the linked list whose
127
133
  * members changed.
128
134
  * @category Listener
135
+ * @since v1.0.0
129
136
  */
130
137
  export type LinkedRowIdsListener = (
131
138
  relationships: Relationships,
@@ -141,21 +148,28 @@ export type LinkedRowIdsListener = (
141
148
  * A RelationshipsListenerStats object is returned from the getListenerStats
142
149
  * method.
143
150
  * @category Development
151
+ * @since v1.0.0
144
152
  */
145
153
  export type RelationshipsListenerStats = {
146
154
  /**
147
155
  * The number of RemoteRowIdListener functions registered with the
148
156
  * Relationships object.
157
+ * @category Stat
158
+ * @since v1.0.0
149
159
  */
150
160
  remoteRowId: number;
151
161
  /**
152
162
  * The number of LocalRowIdsListener functions registered with the
153
163
  * Relationships object.
164
+ * @category Stat
165
+ * @since v1.0.0
154
166
  */
155
167
  localRowIds: number;
156
168
  /**
157
169
  * The number of LinkedRowId functions registered with the Relationships
158
170
  * object.
171
+ * @category Stat
172
+ * @since v1.0.0
159
173
  */
160
174
  linkedRowIds: number;
161
175
  };
@@ -250,9 +264,10 @@ export type RelationshipsListenerStats = {
250
264
  * relationships.delListener(listenerId2);
251
265
  * relationships.destroy();
252
266
  * ```
253
- * @see Relationships And Checkpoints guides
267
+ * @see Using Relationships guide
254
268
  * @see Drawing demo
255
269
  * @category Relationships
270
+ * @since v1.0.0
256
271
  */
257
272
  export interface Relationships {
258
273
  //
@@ -342,6 +357,7 @@ export interface Relationships {
342
357
  * // -> ['fido', 'felix', 'cujo']
343
358
  * ```
344
359
  * @category Configuration
360
+ * @since v1.0.0
345
361
  */
346
362
  setRelationshipDefinition(
347
363
  relationshipId: Id,
@@ -387,6 +403,7 @@ export interface Relationships {
387
403
  * // -> []
388
404
  * ```
389
405
  * @category Configuration
406
+ * @since v1.0.0
390
407
  */
391
408
  delRelationshipDefinition(relationshipId: Id): Relationships;
392
409
 
@@ -412,6 +429,7 @@ export interface Relationships {
412
429
  * // -> 'dog'
413
430
  * ```
414
431
  * @category Getter
432
+ * @since v1.0.0
415
433
  */
416
434
  getStore(): Store;
417
435
 
@@ -432,6 +450,7 @@ export interface Relationships {
432
450
  * // -> ['petSpecies', 'petSequence']
433
451
  * ```
434
452
  * @category Getter
453
+ * @since v1.0.0
435
454
  */
436
455
  getRelationshipIds(): Ids;
437
456
 
@@ -475,6 +494,7 @@ export interface Relationships {
475
494
  * // -> '- cujo'
476
495
  * ```
477
496
  * @category Iterator
497
+ * @since v1.0.0
478
498
  */
479
499
  forEachRelationship(relationshipCallback: RelationshipCallback): void;
480
500
 
@@ -498,6 +518,7 @@ export interface Relationships {
498
518
  * // -> false
499
519
  * ```
500
520
  * @category Getter
521
+ * @since v1.0.0
501
522
  */
502
523
  hasRelationship(relationshipId: Id): boolean;
503
524
 
@@ -530,6 +551,7 @@ export interface Relationships {
530
551
  * // -> undefined
531
552
  * ```
532
553
  * @category Getter
554
+ * @since v1.0.0
533
555
  */
534
556
  getLocalTableId(relationshipId: Id): Id | undefined;
535
557
 
@@ -562,6 +584,7 @@ export interface Relationships {
562
584
  * // -> undefined
563
585
  * ```
564
586
  * @category Getter
587
+ * @since v1.0.0
565
588
  */
566
589
  getRemoteTableId(relationshipId: Id): Id | undefined;
567
590
 
@@ -609,6 +632,7 @@ export interface Relationships {
609
632
  * // -> undefined
610
633
  * ```
611
634
  * @category Getter
635
+ * @since v1.0.0
612
636
  */
613
637
  getRemoteRowId(relationshipId: Id, localRowId: Id): Id | undefined;
614
638
 
@@ -656,6 +680,7 @@ export interface Relationships {
656
680
  * // -> []
657
681
  * ```
658
682
  * @category Getter
683
+ * @since v1.0.0
659
684
  */
660
685
  getLocalRowIds(relationshipId: Id, remoteRowId: Id): Ids;
661
686
 
@@ -705,6 +730,7 @@ export interface Relationships {
705
730
  * // -> ['fido']
706
731
  * ```
707
732
  * @category Getter
733
+ * @since v1.0.0
708
734
  */
709
735
  getLinkedRowIds(relationshipId: Id, firstRowId: Id): Ids;
710
736
 
@@ -885,6 +911,7 @@ export interface Relationships {
885
911
  * relationships.delListener(listenerId);
886
912
  * ```
887
913
  * @category Listener
914
+ * @since v1.0.0
888
915
  */
889
916
  addRemoteRowIdListener(
890
917
  relationshipId: IdOrNull,
@@ -1012,6 +1039,7 @@ export interface Relationships {
1012
1039
  * relationships.delListener(listenerId);
1013
1040
  * ```
1014
1041
  * @category Listener
1042
+ * @since v1.0.0
1015
1043
  */
1016
1044
  addLocalRowIdsListener(
1017
1045
  relationshipId: IdOrNull,
@@ -1083,6 +1111,7 @@ export interface Relationships {
1083
1111
  * relationships.delListener(listenerId);
1084
1112
  * ```
1085
1113
  * @category Listener
1114
+ * @since v1.0.0
1086
1115
  */
1087
1116
  addLinkedRowIdsListener(
1088
1117
  relationshipId: Id,
@@ -1143,6 +1172,7 @@ export interface Relationships {
1143
1172
  * // The listener is not called.
1144
1173
  * ```
1145
1174
  * @category Listener
1175
+ * @since v1.0.0
1146
1176
  */
1147
1177
  delListener(listenerId: Id): Relationships;
1148
1178
 
@@ -1187,6 +1217,7 @@ export interface Relationships {
1187
1217
  * // -> 0
1188
1218
  * ```
1189
1219
  * @category Lifecycle
1220
+ * @since v1.0.0
1190
1221
  */
1191
1222
  destroy(): void;
1192
1223
 
@@ -1223,6 +1254,7 @@ export interface Relationships {
1223
1254
  * // -> 1
1224
1255
  * ```
1225
1256
  * @category Development
1257
+ * @since v1.0.0
1226
1258
  */
1227
1259
  getListenerStats(): RelationshipsListenerStats;
1228
1260
  //
@@ -1260,5 +1292,6 @@ export interface Relationships {
1260
1292
  * // -> true
1261
1293
  * ```
1262
1294
  * @category Creation
1295
+ * @since v1.0.0
1263
1296
  */
1264
1297
  export function createRelationships(store: Store): Relationships;
@@ -8,6 +8,7 @@
8
8
  * directly, and register listeners for when they change.
9
9
  * @packageDocumentation
10
10
  * @module relationships
11
+ * @since v1.0.0
11
12
  */
12
13
 
13
14
  import type {GetCell, RowCallback, Store} from '../store/index.d.ts';
@@ -30,6 +31,7 @@ import type {Id, IdOrNull, Ids} from '../common/index.d.ts';
30
31
  * instead enumerate and access its structure with the getRemoteRowId method,
31
32
  * the getLocalRowIds method, and the getLinkedRowIds method.
32
33
  * @category Concept
34
+ * @since v1.0.0
33
35
  */
34
36
  export type Relationship = {
35
37
  remoteRowId: {[localRowId: Id]: Id};
@@ -49,6 +51,7 @@ export type Relationship = {
49
51
  * @param forEachRow A function that will let you iterate over the local Row
50
52
  * objects in this Relationship.
51
53
  * @category Callback
54
+ * @since v1.0.0
52
55
  */
53
56
  export type RelationshipCallback = (
54
57
  relationshipId: Id,
@@ -66,6 +69,7 @@ export type RelationshipCallback = (
66
69
  * Relationships object.
67
70
  * @param relationships A reference to the Relationships object that changed.
68
71
  * @category Listener
72
+ * @since v1.0.0
69
73
  */
70
74
  export type RelationshipIdsListener = (relationships: Relationships) => void;
71
75
 
@@ -83,6 +87,7 @@ export type RelationshipIdsListener = (relationships: Relationships) => void;
83
87
  * @param relationshipId The Id of the Relationship that changed.
84
88
  * @param localRowId The Id of the local Row whose remote Row Id changed.
85
89
  * @category Listener
90
+ * @since v1.0.0
86
91
  */
87
92
  export type RemoteRowIdListener = (
88
93
  relationships: Relationships,
@@ -104,6 +109,7 @@ export type RemoteRowIdListener = (
104
109
  * @param relationshipId The Id of the Relationship that changed.
105
110
  * @param remoteRowId The Id of the remote Row whose local Row Ids changed.
106
111
  * @category Listener
112
+ * @since v1.0.0
107
113
  */
108
114
  export type LocalRowIdsListener = (
109
115
  relationships: Relationships,
@@ -126,6 +132,7 @@ export type LocalRowIdsListener = (
126
132
  * @param firstRowId The Id of the first Row of the the linked list whose
127
133
  * members changed.
128
134
  * @category Listener
135
+ * @since v1.0.0
129
136
  */
130
137
  export type LinkedRowIdsListener = (
131
138
  relationships: Relationships,
@@ -141,21 +148,28 @@ export type LinkedRowIdsListener = (
141
148
  * A RelationshipsListenerStats object is returned from the getListenerStats
142
149
  * method.
143
150
  * @category Development
151
+ * @since v1.0.0
144
152
  */
145
153
  export type RelationshipsListenerStats = {
146
154
  /**
147
155
  * The number of RemoteRowIdListener functions registered with the
148
156
  * Relationships object.
157
+ * @category Stat
158
+ * @since v1.0.0
149
159
  */
150
160
  remoteRowId: number;
151
161
  /**
152
162
  * The number of LocalRowIdsListener functions registered with the
153
163
  * Relationships object.
164
+ * @category Stat
165
+ * @since v1.0.0
154
166
  */
155
167
  localRowIds: number;
156
168
  /**
157
169
  * The number of LinkedRowId functions registered with the Relationships
158
170
  * object.
171
+ * @category Stat
172
+ * @since v1.0.0
159
173
  */
160
174
  linkedRowIds: number;
161
175
  };
@@ -250,9 +264,10 @@ export type RelationshipsListenerStats = {
250
264
  * relationships.delListener(listenerId2);
251
265
  * relationships.destroy();
252
266
  * ```
253
- * @see Relationships And Checkpoints guides
267
+ * @see Using Relationships guide
254
268
  * @see Drawing demo
255
269
  * @category Relationships
270
+ * @since v1.0.0
256
271
  */
257
272
  export interface Relationships {
258
273
  //
@@ -342,6 +357,7 @@ export interface Relationships {
342
357
  * // -> ['fido', 'felix', 'cujo']
343
358
  * ```
344
359
  * @category Configuration
360
+ * @since v1.0.0
345
361
  */
346
362
  setRelationshipDefinition(
347
363
  relationshipId: Id,
@@ -387,6 +403,7 @@ export interface Relationships {
387
403
  * // -> []
388
404
  * ```
389
405
  * @category Configuration
406
+ * @since v1.0.0
390
407
  */
391
408
  delRelationshipDefinition(relationshipId: Id): Relationships;
392
409
 
@@ -412,6 +429,7 @@ export interface Relationships {
412
429
  * // -> 'dog'
413
430
  * ```
414
431
  * @category Getter
432
+ * @since v1.0.0
415
433
  */
416
434
  getStore(): Store;
417
435
 
@@ -432,6 +450,7 @@ export interface Relationships {
432
450
  * // -> ['petSpecies', 'petSequence']
433
451
  * ```
434
452
  * @category Getter
453
+ * @since v1.0.0
435
454
  */
436
455
  getRelationshipIds(): Ids;
437
456
 
@@ -475,6 +494,7 @@ export interface Relationships {
475
494
  * // -> '- cujo'
476
495
  * ```
477
496
  * @category Iterator
497
+ * @since v1.0.0
478
498
  */
479
499
  forEachRelationship(relationshipCallback: RelationshipCallback): void;
480
500
 
@@ -498,6 +518,7 @@ export interface Relationships {
498
518
  * // -> false
499
519
  * ```
500
520
  * @category Getter
521
+ * @since v1.0.0
501
522
  */
502
523
  hasRelationship(relationshipId: Id): boolean;
503
524
 
@@ -530,6 +551,7 @@ export interface Relationships {
530
551
  * // -> undefined
531
552
  * ```
532
553
  * @category Getter
554
+ * @since v1.0.0
533
555
  */
534
556
  getLocalTableId(relationshipId: Id): Id | undefined;
535
557
 
@@ -562,6 +584,7 @@ export interface Relationships {
562
584
  * // -> undefined
563
585
  * ```
564
586
  * @category Getter
587
+ * @since v1.0.0
565
588
  */
566
589
  getRemoteTableId(relationshipId: Id): Id | undefined;
567
590
 
@@ -609,6 +632,7 @@ export interface Relationships {
609
632
  * // -> undefined
610
633
  * ```
611
634
  * @category Getter
635
+ * @since v1.0.0
612
636
  */
613
637
  getRemoteRowId(relationshipId: Id, localRowId: Id): Id | undefined;
614
638
 
@@ -656,6 +680,7 @@ export interface Relationships {
656
680
  * // -> []
657
681
  * ```
658
682
  * @category Getter
683
+ * @since v1.0.0
659
684
  */
660
685
  getLocalRowIds(relationshipId: Id, remoteRowId: Id): Ids;
661
686
 
@@ -705,6 +730,7 @@ export interface Relationships {
705
730
  * // -> ['fido']
706
731
  * ```
707
732
  * @category Getter
733
+ * @since v1.0.0
708
734
  */
709
735
  getLinkedRowIds(relationshipId: Id, firstRowId: Id): Ids;
710
736
 
@@ -885,6 +911,7 @@ export interface Relationships {
885
911
  * relationships.delListener(listenerId);
886
912
  * ```
887
913
  * @category Listener
914
+ * @since v1.0.0
888
915
  */
889
916
  addRemoteRowIdListener(
890
917
  relationshipId: IdOrNull,
@@ -1012,6 +1039,7 @@ export interface Relationships {
1012
1039
  * relationships.delListener(listenerId);
1013
1040
  * ```
1014
1041
  * @category Listener
1042
+ * @since v1.0.0
1015
1043
  */
1016
1044
  addLocalRowIdsListener(
1017
1045
  relationshipId: IdOrNull,
@@ -1083,6 +1111,7 @@ export interface Relationships {
1083
1111
  * relationships.delListener(listenerId);
1084
1112
  * ```
1085
1113
  * @category Listener
1114
+ * @since v1.0.0
1086
1115
  */
1087
1116
  addLinkedRowIdsListener(
1088
1117
  relationshipId: Id,
@@ -1143,6 +1172,7 @@ export interface Relationships {
1143
1172
  * // The listener is not called.
1144
1173
  * ```
1145
1174
  * @category Listener
1175
+ * @since v1.0.0
1146
1176
  */
1147
1177
  delListener(listenerId: Id): Relationships;
1148
1178
 
@@ -1187,6 +1217,7 @@ export interface Relationships {
1187
1217
  * // -> 0
1188
1218
  * ```
1189
1219
  * @category Lifecycle
1220
+ * @since v1.0.0
1190
1221
  */
1191
1222
  destroy(): void;
1192
1223
 
@@ -1223,6 +1254,7 @@ export interface Relationships {
1223
1254
  * // -> 1
1224
1255
  * ```
1225
1256
  * @category Development
1257
+ * @since v1.0.0
1226
1258
  */
1227
1259
  getListenerStats(): RelationshipsListenerStats;
1228
1260
  //
@@ -1260,5 +1292,6 @@ export interface Relationships {
1260
1292
  * // -> true
1261
1293
  * ```
1262
1294
  * @category Creation
1295
+ * @since v1.0.0
1263
1296
  */
1264
1297
  export function createRelationships(store: Store): Relationships;
@@ -8,6 +8,7 @@
8
8
  * directly, and register listeners for when they change.
9
9
  * @packageDocumentation
10
10
  * @module relationships
11
+ * @since v1.0.0
11
12
  */
12
13
 
13
14
  import type {
@@ -40,6 +41,7 @@ import type {Id, IdOrNull, Ids} from '../../common/with-schemas/index.d.cts';
40
41
  * instead enumerate and access its structure with the getRemoteRowId method,
41
42
  * the getLocalRowIds method, and the getLinkedRowIds method.
42
43
  * @category Concept
44
+ * @since v1.0.0
43
45
  */
44
46
  export type Relationship = {
45
47
  remoteRowId: {[localRowId: Id]: Id};
@@ -68,6 +70,7 @@ export type Relationship = {
68
70
  * @param forEachRow A function that will let you iterate over the local Row
69
71
  * objects in this Relationship.
70
72
  * @category Callback
73
+ * @since v1.0.0
71
74
  */
72
75
  export type RelationshipCallback<Schema extends OptionalTablesSchema> = (
73
76
  relationshipId: Id,
@@ -91,6 +94,7 @@ export type RelationshipCallback<Schema extends OptionalTablesSchema> = (
91
94
  * Relationships object.
92
95
  * @param relationships A reference to the Relationships object that changed.
93
96
  * @category Listener
97
+ * @since v1.0.0
94
98
  */
95
99
  export type RelationshipIdsListener<Schemas extends OptionalSchemas> = (
96
100
  relationships: Relationships<Schemas>,
@@ -120,6 +124,7 @@ export type RelationshipIdsListener<Schemas extends OptionalSchemas> = (
120
124
  * @param relationshipId The Id of the Relationship that changed.
121
125
  * @param localRowId The Id of the local Row whose remote Row Id changed.
122
126
  * @category Listener
127
+ * @since v1.0.0
123
128
  */
124
129
  export type RemoteRowIdListener<Schemas extends OptionalSchemas> = (
125
130
  relationships: Relationships<Schemas>,
@@ -151,6 +156,7 @@ export type RemoteRowIdListener<Schemas extends OptionalSchemas> = (
151
156
  * @param relationshipId The Id of the Relationship that changed.
152
157
  * @param remoteRowId The Id of the remote Row whose local Row Ids changed.
153
158
  * @category Listener
159
+ * @since v1.0.0
154
160
  */
155
161
  export type LocalRowIdsListener<Schemas extends OptionalSchemas> = (
156
162
  relationships: Relationships<Schemas>,
@@ -183,6 +189,7 @@ export type LocalRowIdsListener<Schemas extends OptionalSchemas> = (
183
189
  * @param firstRowId The Id of the first Row of the the linked list whose
184
190
  * members changed.
185
191
  * @category Listener
192
+ * @since v1.0.0
186
193
  */
187
194
  export type LinkedRowIdsListener<Schemas extends OptionalSchemas> = (
188
195
  relationships: Relationships<Schemas>,
@@ -198,21 +205,28 @@ export type LinkedRowIdsListener<Schemas extends OptionalSchemas> = (
198
205
  * A RelationshipsListenerStats object is returned from the getListenerStats
199
206
  * method.
200
207
  * @category Development
208
+ * @since v1.0.0
201
209
  */
202
210
  export type RelationshipsListenerStats = {
203
211
  /**
204
212
  * The number of RemoteRowIdListener functions registered with the
205
213
  * Relationships object.
214
+ * @category Stat
215
+ * @since v1.0.0
206
216
  */
207
217
  remoteRowId: number;
208
218
  /**
209
219
  * The number of LocalRowIdsListener functions registered with the
210
220
  * Relationships object.
221
+ * @category Stat
222
+ * @since v1.0.0
211
223
  */
212
224
  localRowIds: number;
213
225
  /**
214
226
  * The number of LinkedRowId functions registered with the Relationships
215
227
  * object.
228
+ * @category Stat
229
+ * @since v1.0.0
216
230
  */
217
231
  linkedRowIds: number;
218
232
  };
@@ -307,9 +321,10 @@ export type RelationshipsListenerStats = {
307
321
  * relationships.delListener(listenerId2);
308
322
  * relationships.destroy();
309
323
  * ```
310
- * @see Relationships And Checkpoints guides
324
+ * @see Using Relationships guide
311
325
  * @see Drawing demo
312
326
  * @category Relationships
327
+ * @since v1.0.0
313
328
  */
314
329
  export interface Relationships<in out Schemas extends OptionalSchemas> {
315
330
  /**
@@ -409,6 +424,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
409
424
  * // -> ['fido', 'felix', 'cujo']
410
425
  * ```
411
426
  * @category Configuration
427
+ * @since v1.0.0
412
428
  */
413
429
  setRelationshipDefinition<LocalTableId extends TableIdFromSchema<Schemas[0]>>(
414
430
  relationshipId: Id,
@@ -462,6 +478,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
462
478
  * // -> []
463
479
  * ```
464
480
  * @category Configuration
481
+ * @since v1.0.0
465
482
  */
466
483
  delRelationshipDefinition(relationshipId: Id): Relationships<Schemas>;
467
484
 
@@ -493,6 +510,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
493
510
  * // -> 'dog'
494
511
  * ```
495
512
  * @category Getter
513
+ * @since v1.0.0
496
514
  */
497
515
  getStore(): Store<Schemas>;
498
516
 
@@ -513,6 +531,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
513
531
  * // -> ['petSpecies', 'petSequence']
514
532
  * ```
515
533
  * @category Getter
534
+ * @since v1.0.0
516
535
  */
517
536
  getRelationshipIds(): Ids;
518
537
 
@@ -562,6 +581,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
562
581
  * // -> '- cujo'
563
582
  * ```
564
583
  * @category Iterator
584
+ * @since v1.0.0
565
585
  */
566
586
  forEachRelationship(
567
587
  relationshipCallback: RelationshipCallback<Schemas[0]>,
@@ -587,6 +607,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
587
607
  * // -> false
588
608
  * ```
589
609
  * @category Getter
610
+ * @since v1.0.0
590
611
  */
591
612
  hasRelationship(relationshipId: Id): boolean;
592
613
 
@@ -625,6 +646,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
625
646
  * // -> undefined
626
647
  * ```
627
648
  * @category Getter
649
+ * @since v1.0.0
628
650
  */
629
651
  getLocalTableId<TableId extends TableIdFromSchema<Schemas[0]>>(
630
652
  relationshipId: Id,
@@ -665,6 +687,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
665
687
  * // -> undefined
666
688
  * ```
667
689
  * @category Getter
690
+ * @since v1.0.0
668
691
  */
669
692
  getRemoteTableId<TableId extends TableIdFromSchema<Schemas[0]>>(
670
693
  relationshipId: Id,
@@ -714,6 +737,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
714
737
  * // -> undefined
715
738
  * ```
716
739
  * @category Getter
740
+ * @since v1.0.0
717
741
  */
718
742
  getRemoteRowId(relationshipId: Id, localRowId: Id): Id | undefined;
719
743
 
@@ -761,6 +785,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
761
785
  * // -> []
762
786
  * ```
763
787
  * @category Getter
788
+ * @since v1.0.0
764
789
  */
765
790
  getLocalRowIds(relationshipId: Id, remoteRowId: Id): Ids;
766
791
 
@@ -810,6 +835,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
810
835
  * // -> ['fido']
811
836
  * ```
812
837
  * @category Getter
838
+ * @since v1.0.0
813
839
  */
814
840
  getLinkedRowIds(relationshipId: Id, firstRowId: Id): Ids;
815
841
 
@@ -1006,6 +1032,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
1006
1032
  * relationships.delListener(listenerId);
1007
1033
  * ```
1008
1034
  * @category Listener
1035
+ * @since v1.0.0
1009
1036
  */
1010
1037
  addRemoteRowIdListener(
1011
1038
  relationshipId: IdOrNull,
@@ -1143,6 +1170,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
1143
1170
  * relationships.delListener(listenerId);
1144
1171
  * ```
1145
1172
  * @category Listener
1173
+ * @since v1.0.0
1146
1174
  */
1147
1175
  addLocalRowIdsListener(
1148
1176
  relationshipId: IdOrNull,
@@ -1224,6 +1252,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
1224
1252
  * relationships.delListener(listenerId);
1225
1253
  * ```
1226
1254
  * @category Listener
1255
+ * @since v1.0.0
1227
1256
  */
1228
1257
  addLinkedRowIdsListener(
1229
1258
  relationshipId: Id,
@@ -1290,6 +1319,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
1290
1319
  * // The listener is not called.
1291
1320
  * ```
1292
1321
  * @category Listener
1322
+ * @since v1.0.0
1293
1323
  */
1294
1324
  delListener(listenerId: Id): Relationships<Schemas>;
1295
1325
 
@@ -1334,6 +1364,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
1334
1364
  * // -> 0
1335
1365
  * ```
1336
1366
  * @category Lifecycle
1367
+ * @since v1.0.0
1337
1368
  */
1338
1369
  destroy(): void;
1339
1370
 
@@ -1370,6 +1401,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
1370
1401
  * // -> 1
1371
1402
  * ```
1372
1403
  * @category Development
1404
+ * @since v1.0.0
1373
1405
  */
1374
1406
  getListenerStats(): RelationshipsListenerStats;
1375
1407
  }
@@ -1412,6 +1444,7 @@ export interface Relationships<in out Schemas extends OptionalSchemas> {
1412
1444
  * // -> true
1413
1445
  * ```
1414
1446
  * @category Creation
1447
+ * @since v1.0.0
1415
1448
  */
1416
1449
  export function createRelationships<Schemas extends OptionalSchemas>(
1417
1450
  store: Store<Schemas>,