tinybase 8.5.0 → 9.0.0-beta.0

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 (161) hide show
  1. package/@types/_internal/queries/with-schemas/index.d.ts +1 -2
  2. package/@types/_internal/ui/with-schemas/index.d.ts +8 -16
  3. package/@types/persisters/index.d.ts +32 -12
  4. package/@types/persisters/persister-durable-object-sql-storage/index.d.ts +9 -8
  5. package/@types/persisters/persister-durable-object-sql-storage/with-schemas/index.d.ts +10 -10
  6. package/@types/persisters/with-schemas/index.d.ts +56 -20
  7. package/@types/queries/index.d.ts +1 -7
  8. package/@types/queries/with-schemas/index.d.ts +5 -15
  9. package/@types/store/index.d.ts +1 -2
  10. package/@types/store/with-schemas/index.d.ts +19 -29
  11. package/@types/synchronizers/synchronizer-ws-client/index.d.ts +9 -3
  12. package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.ts +10 -3
  13. package/@types/synchronizers/synchronizer-ws-server/index.d.ts +15 -2
  14. package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.ts +17 -2
  15. package/@types/synchronizers/synchronizer-ws-server-durable-object/index.d.ts +51 -0
  16. package/@types/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.d.ts +51 -0
  17. package/@types/ui-react/with-schemas/index.d.ts +3 -6
  18. package/@types/ui-react-dom/index.d.ts +10 -10
  19. package/@types/ui-react-dom/with-schemas/index.d.ts +16 -22
  20. package/@types/ui-react-dom-charts/index.d.ts +7 -7
  21. package/@types/ui-react-dom-charts/with-schemas/index.d.ts +10 -11
  22. package/@types/ui-react-inspector/index.d.ts +1 -1
  23. package/@types/ui-react-inspector/with-schemas/index.d.ts +1 -1
  24. package/@types/ui-solid/with-schemas/index.d.ts +4 -8
  25. package/@types/ui-solid-dom/index.d.ts +10 -10
  26. package/@types/ui-solid-dom/with-schemas/index.d.ts +16 -22
  27. package/@types/ui-solid-inspector/index.d.ts +1 -1
  28. package/@types/ui-solid-inspector/with-schemas/index.d.ts +1 -1
  29. package/@types/ui-svelte-dom/index.d.ts +10 -10
  30. package/@types/ui-svelte-dom/with-schemas/index.d.ts +16 -22
  31. package/@types/ui-svelte-inspector/index.d.ts +1 -1
  32. package/@types/ui-svelte-inspector/with-schemas/index.d.ts +1 -1
  33. package/index.js +21 -19
  34. package/indexes/index.js +6 -8
  35. package/indexes/with-schemas/index.js +6 -8
  36. package/metrics/index.js +6 -8
  37. package/metrics/with-schemas/index.js +6 -8
  38. package/min/index.js +1 -1
  39. package/min/index.js.gz +0 -0
  40. package/min/omni/index.js +1 -1
  41. package/min/omni/index.js.gz +0 -0
  42. package/min/omni/with-schemas/index.js +1 -1
  43. package/min/omni/with-schemas/index.js.gz +0 -0
  44. package/min/persisters/index.js +1 -1
  45. package/min/persisters/index.js.gz +0 -0
  46. package/min/persisters/persister-cr-sqlite-wasm/index.js +1 -1
  47. package/min/persisters/persister-cr-sqlite-wasm/index.js.gz +0 -0
  48. package/min/persisters/persister-cr-sqlite-wasm/with-schemas/index.js +1 -1
  49. package/min/persisters/persister-cr-sqlite-wasm/with-schemas/index.js.gz +0 -0
  50. package/min/persisters/persister-durable-object-sql-storage/index.js +1 -1
  51. package/min/persisters/persister-durable-object-sql-storage/index.js.gz +0 -0
  52. package/min/persisters/persister-durable-object-sql-storage/with-schemas/index.js +1 -1
  53. package/min/persisters/persister-durable-object-sql-storage/with-schemas/index.js.gz +0 -0
  54. package/min/persisters/persister-electric-sql/index.js +1 -1
  55. package/min/persisters/persister-electric-sql/index.js.gz +0 -0
  56. package/min/persisters/persister-electric-sql/with-schemas/index.js +1 -1
  57. package/min/persisters/persister-electric-sql/with-schemas/index.js.gz +0 -0
  58. package/min/persisters/persister-expo-sqlite/index.js +1 -1
  59. package/min/persisters/persister-expo-sqlite/index.js.gz +0 -0
  60. package/min/persisters/persister-expo-sqlite/with-schemas/index.js +1 -1
  61. package/min/persisters/persister-expo-sqlite/with-schemas/index.js.gz +0 -0
  62. package/min/persisters/persister-libsql/index.js +1 -1
  63. package/min/persisters/persister-libsql/index.js.gz +0 -0
  64. package/min/persisters/persister-libsql/with-schemas/index.js +1 -1
  65. package/min/persisters/persister-libsql/with-schemas/index.js.gz +0 -0
  66. package/min/persisters/persister-pglite/index.js +1 -1
  67. package/min/persisters/persister-pglite/index.js.gz +0 -0
  68. package/min/persisters/persister-pglite/with-schemas/index.js +1 -1
  69. package/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
  70. package/min/persisters/persister-postgres/index.js +1 -1
  71. package/min/persisters/persister-postgres/index.js.gz +0 -0
  72. package/min/persisters/persister-postgres/with-schemas/index.js +1 -1
  73. package/min/persisters/persister-postgres/with-schemas/index.js.gz +0 -0
  74. package/min/persisters/persister-powersync/index.js +1 -1
  75. package/min/persisters/persister-powersync/index.js.gz +0 -0
  76. package/min/persisters/persister-powersync/with-schemas/index.js +1 -1
  77. package/min/persisters/persister-powersync/with-schemas/index.js.gz +0 -0
  78. package/min/persisters/persister-react-native-sqlite/index.js +1 -1
  79. package/min/persisters/persister-react-native-sqlite/index.js.gz +0 -0
  80. package/min/persisters/persister-react-native-sqlite/with-schemas/index.js +1 -1
  81. package/min/persisters/persister-react-native-sqlite/with-schemas/index.js.gz +0 -0
  82. package/min/persisters/persister-sqlite-bun/index.js +1 -1
  83. package/min/persisters/persister-sqlite-bun/index.js.gz +0 -0
  84. package/min/persisters/persister-sqlite-bun/with-schemas/index.js +1 -1
  85. package/min/persisters/persister-sqlite-bun/with-schemas/index.js.gz +0 -0
  86. package/min/persisters/persister-sqlite-wasm/index.js +1 -1
  87. package/min/persisters/persister-sqlite-wasm/index.js.gz +0 -0
  88. package/min/persisters/persister-sqlite-wasm/with-schemas/index.js +1 -1
  89. package/min/persisters/persister-sqlite-wasm/with-schemas/index.js.gz +0 -0
  90. package/min/persisters/persister-sqlite3/index.js +1 -1
  91. package/min/persisters/persister-sqlite3/index.js.gz +0 -0
  92. package/min/persisters/persister-sqlite3/with-schemas/index.js +1 -1
  93. package/min/persisters/persister-sqlite3/with-schemas/index.js.gz +0 -0
  94. package/min/persisters/with-schemas/index.js +1 -1
  95. package/min/persisters/with-schemas/index.js.gz +0 -0
  96. package/min/queries/index.js +1 -1
  97. package/min/queries/index.js.gz +0 -0
  98. package/min/queries/with-schemas/index.js +1 -1
  99. package/min/queries/with-schemas/index.js.gz +0 -0
  100. package/min/synchronizers/synchronizer-ws-client/index.js +1 -1
  101. package/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
  102. package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
  103. package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
  104. package/min/synchronizers/synchronizer-ws-server/index.js +1 -1
  105. package/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
  106. package/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
  107. package/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
  108. package/min/synchronizers/synchronizer-ws-server-durable-object/index.js +1 -1
  109. package/min/synchronizers/synchronizer-ws-server-durable-object/index.js.gz +0 -0
  110. package/min/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js +1 -1
  111. package/min/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js.gz +0 -0
  112. package/min/with-schemas/index.js +1 -1
  113. package/min/with-schemas/index.js.gz +0 -0
  114. package/omni/index.js +311 -141
  115. package/omni/with-schemas/index.js +311 -141
  116. package/package.json +7 -7
  117. package/persisters/index.js +129 -37
  118. package/persisters/persister-cr-sqlite-wasm/index.js +129 -37
  119. package/persisters/persister-cr-sqlite-wasm/with-schemas/index.js +129 -37
  120. package/persisters/persister-durable-object-sql-storage/index.js +271 -110
  121. package/persisters/persister-durable-object-sql-storage/with-schemas/index.js +271 -110
  122. package/persisters/persister-electric-sql/index.js +129 -37
  123. package/persisters/persister-electric-sql/with-schemas/index.js +129 -37
  124. package/persisters/persister-expo-sqlite/index.js +129 -37
  125. package/persisters/persister-expo-sqlite/with-schemas/index.js +129 -37
  126. package/persisters/persister-libsql/index.js +129 -37
  127. package/persisters/persister-libsql/with-schemas/index.js +129 -37
  128. package/persisters/persister-pglite/index.js +130 -37
  129. package/persisters/persister-pglite/with-schemas/index.js +130 -37
  130. package/persisters/persister-postgres/index.js +130 -37
  131. package/persisters/persister-postgres/with-schemas/index.js +130 -37
  132. package/persisters/persister-powersync/index.js +182 -117
  133. package/persisters/persister-powersync/with-schemas/index.js +182 -117
  134. package/persisters/persister-react-native-sqlite/index.js +129 -37
  135. package/persisters/persister-react-native-sqlite/with-schemas/index.js +129 -37
  136. package/persisters/persister-sqlite-bun/index.js +129 -37
  137. package/persisters/persister-sqlite-bun/with-schemas/index.js +129 -37
  138. package/persisters/persister-sqlite-wasm/index.js +129 -37
  139. package/persisters/persister-sqlite-wasm/with-schemas/index.js +129 -37
  140. package/persisters/persister-sqlite3/index.js +129 -37
  141. package/persisters/persister-sqlite3/with-schemas/index.js +129 -37
  142. package/persisters/with-schemas/index.js +129 -37
  143. package/queries/index.js +21 -19
  144. package/queries/with-schemas/index.js +21 -19
  145. package/readme.md +14 -14
  146. package/relationships/index.js +6 -8
  147. package/relationships/with-schemas/index.js +6 -8
  148. package/releases.md +57 -57
  149. package/synchronizers/synchronizer-ws-client/index.js +116 -42
  150. package/synchronizers/synchronizer-ws-client/with-schemas/index.js +116 -42
  151. package/synchronizers/synchronizer-ws-server/index.js +109 -28
  152. package/synchronizers/synchronizer-ws-server/with-schemas/index.js +109 -28
  153. package/synchronizers/synchronizer-ws-server-durable-object/index.js +122 -38
  154. package/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js +122 -38
  155. package/ui-svelte/index.js +1 -1
  156. package/ui-svelte/with-schemas/index.js +1 -1
  157. package/ui-svelte-dom/index.js +2 -2
  158. package/ui-svelte-dom/with-schemas/index.js +2 -2
  159. package/ui-svelte-inspector/index.js +2 -2
  160. package/ui-svelte-inspector/with-schemas/index.js +2 -2
  161. package/with-schemas/index.js +21 -19
@@ -692,7 +692,7 @@ export type SortedTablePaginatorProps = {
692
692
  *
693
693
  * See the <TableInHtmlTable /> (Solid) demo for this component in action:
694
694
  *
695
- * ![TableInHtmlTable example](https://tinybase.org/shots/tableinhtmltable-solid-demo.png
695
+ * ![TableInHtmlTable example](https://beta.tinybase.org/shots/tableinhtmltable-solid-demo.png
696
696
  * "TableInHtmlTable example")
697
697
  *
698
698
  * The component's props identify which Table to render based on Table Id, and
@@ -836,7 +836,7 @@ export function TableInHtmlTable(
836
836
  * See the <SortedTableInHtmlTable /> (Solid) demo for this component in
837
837
  * action:
838
838
  *
839
- * ![SortedTableInHtmlTable example](https://tinybase.org/shots/sortedtableinhtmltable-solid-demo.png
839
+ * ![SortedTableInHtmlTable example](https://beta.tinybase.org/shots/sortedtableinhtmltable-solid-demo.png
840
840
  * "SortedTableInHtmlTable example")
841
841
  *
842
842
  * The component's props identify which Table to render based on Table Id, and
@@ -1007,7 +1007,7 @@ export function SortedTableInHtmlTable(
1007
1007
  *
1008
1008
  * See the <ValuesInHtmlTable /> (Solid) demo for this component in action:
1009
1009
  *
1010
- * ![ValuesInHtmlTable example](https://tinybase.org/shots/valuesinhtmltable-solid-demo.png
1010
+ * ![ValuesInHtmlTable example](https://beta.tinybase.org/shots/valuesinhtmltable-solid-demo.png
1011
1011
  * "ValuesInHtmlTable example")
1012
1012
  *
1013
1013
  * The component's props identify which Row to render based on Table Id, Row Id,
@@ -1136,7 +1136,7 @@ export function ValuesInHtmlTable(
1136
1136
  *
1137
1137
  * See the <SliceInHtmlTable /> (Solid) demo for this component in action:
1138
1138
  *
1139
- * ![SliceInHtmlTable example](https://tinybase.org/shots/sliceinhtmltable-solid-demo.png
1139
+ * ![SliceInHtmlTable example](https://beta.tinybase.org/shots/sliceinhtmltable-solid-demo.png
1140
1140
  * "SliceInHtmlTable example")
1141
1141
  *
1142
1142
  * The component's props identify which Slice to render based on Index Id, Slice
@@ -1292,7 +1292,7 @@ export function SliceInHtmlTable(
1292
1292
  * See the <RelationshipInHtmlTable /> (Solid) demo for this component in
1293
1293
  * action:
1294
1294
  *
1295
- * ![RelationshipInHtmlTable example](https://tinybase.org/shots/relationshipinhtmltable-solid-demo.png
1295
+ * ![RelationshipInHtmlTable example](https://beta.tinybase.org/shots/relationshipinhtmltable-solid-demo.png
1296
1296
  * "RelationshipInHtmlTable example")
1297
1297
  *
1298
1298
  * The component's props identify which Relationship to render based on
@@ -1466,7 +1466,7 @@ export function RelationshipInHtmlTable(
1466
1466
  * See the <ResultTableInHtmlTable /> (Solid) demo for this component in
1467
1467
  * action:
1468
1468
  *
1469
- * ![ResultTableInHtmlTable example](https://tinybase.org/shots/resulttableinhtmltable-solid-demo.png
1469
+ * ![ResultTableInHtmlTable example](https://beta.tinybase.org/shots/resulttableinhtmltable-solid-demo.png
1470
1470
  * "ResultTableInHtmlTable example")
1471
1471
  *
1472
1472
  * The component's props identify which ResultTable to render based on query Id,
@@ -1617,7 +1617,7 @@ export function ResultTableInHtmlTable(
1617
1617
  * See the <ResultSortedTableInHtmlTable /> (Solid) demo for this component in
1618
1618
  * action:
1619
1619
  *
1620
- * ![ResultSortedTableInHtmlTable example](https://tinybase.org/shots/resultsortedtableinhtmltable-solid-demo.png
1620
+ * ![ResultSortedTableInHtmlTable example](https://beta.tinybase.org/shots/resultsortedtableinhtmltable-solid-demo.png
1621
1621
  * "ResultSortedTableInHtmlTable example")
1622
1622
  *
1623
1623
  * The component's props identify which ResultTable to render based on query Id,
@@ -1789,7 +1789,7 @@ export function ResultSortedTableInHtmlTable(
1789
1789
  *
1790
1790
  * See the <EditableCellView /> (Solid) demo for this component in action:
1791
1791
  *
1792
- * ![EditableCellView example](https://tinybase.org/shots/editablecellview-solid-demo.png
1792
+ * ![EditableCellView example](https://beta.tinybase.org/shots/editablecellview-solid-demo.png
1793
1793
  * "EditableCellView example")
1794
1794
  *
1795
1795
  * The component's props identify which Cell to render based on Table Id, Row
@@ -1859,7 +1859,7 @@ export function EditableCellView(
1859
1859
  *
1860
1860
  * See the <EditableValueView /> (Solid) demo for this component in action:
1861
1861
  *
1862
- * ![EditableValueView example](https://tinybase.org/shots/editablevalueview-solid-demo.png
1862
+ * ![EditableValueView example](https://beta.tinybase.org/shots/editablevalueview-solid-demo.png
1863
1863
  * "EditableValueView example")
1864
1864
  *
1865
1865
  * The component's props identify which Value to render based on Table Id, Row
@@ -1929,7 +1929,7 @@ export function EditableValueView(
1929
1929
  * See the <SortedTableInHtmlTable /> (Solid) demo for this component in
1930
1930
  * action:
1931
1931
  *
1932
- * ![SortedTablePaginator example](https://tinybase.org/shots/sortedtablepaginator-solid-demo.png
1932
+ * ![SortedTablePaginator example](https://beta.tinybase.org/shots/sortedtablepaginator-solid-demo.png
1933
1933
  * "SortedTablePaginator example")
1934
1934
  *
1935
1935
  * The component displays 'previous' and 'next' buttons for paging through the
@@ -227,8 +227,7 @@ export type TableInHtmlTableProps<
227
227
  | CellIdFromSchema<Schemas[0], TableId>[]
228
228
  | {
229
229
  [CellId in CellIdFromSchema<Schemas[0], TableId>]?:
230
- | string
231
- | CustomCell<Schemas, TableId, CellId>;
230
+ string | CustomCell<Schemas, TableId, CellId>;
232
231
  };
233
232
  }
234
233
  : never
@@ -307,8 +306,7 @@ export type SortedTableInHtmlTableProps<
307
306
  | CellIdFromSchema<Schemas[0], TableId>[]
308
307
  | {
309
308
  [CellId in CellIdFromSchema<Schemas[0], TableId>]?:
310
- | string
311
- | CustomCell<Schemas, TableId, CellId>;
309
+ string | CustomCell<Schemas, TableId, CellId>;
312
310
  };
313
311
  /**
314
312
  * Whether the table should be interactive such that clicking a header changes
@@ -425,8 +423,7 @@ export type SliceInHtmlTableProps<Schemas extends OptionalSchemas> = {
425
423
  * @since v8.4.0
426
424
  */
427
425
  readonly customCells?:
428
- | Ids
429
- | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
426
+ Ids | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
430
427
  };
431
428
 
432
429
  /**
@@ -476,8 +473,7 @@ export type RelationshipInHtmlTableProps<Schemas extends OptionalSchemas> = {
476
473
  * @since v8.4.0
477
474
  */
478
475
  readonly customCells?:
479
- | Ids
480
- | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
476
+ Ids | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
481
477
  };
482
478
 
483
479
  /**
@@ -512,8 +508,7 @@ export type ResultTableInHtmlTableProps<Schemas extends OptionalSchemas> = {
512
508
  * @since v8.4.0
513
509
  */
514
510
  readonly customCells?:
515
- | Ids
516
- | {[cellId: Id]: string | CustomResultCell<Schemas>};
511
+ Ids | {[cellId: Id]: string | CustomResultCell<Schemas>};
517
512
  };
518
513
 
519
514
  /**
@@ -575,8 +570,7 @@ export type ResultSortedTableInHtmlTableProps<Schemas extends OptionalSchemas> =
575
570
  * @since v8.4.0
576
571
  */
577
572
  readonly customCells?:
578
- | Ids
579
- | {[cellId: Id]: string | CustomResultCell<Schemas>};
573
+ Ids | {[cellId: Id]: string | CustomResultCell<Schemas>};
580
574
  /**
581
575
  * Whether the table should be interactive such that clicking a header changes
582
576
  * the sorting and/or direction.
@@ -672,7 +666,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
672
666
  *
673
667
  * See the <TableInHtmlTable /> (Solid) demo for this component in action:
674
668
  *
675
- * ![TableInHtmlTable example](https://tinybase.org/shots/tableinhtmltable-solid-demo.png
669
+ * ![TableInHtmlTable example](https://beta.tinybase.org/shots/tableinhtmltable-solid-demo.png
676
670
  * "TableInHtmlTable example")
677
671
  *
678
672
  * The component's props identify which Table to render based on Table Id, and
@@ -824,7 +818,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
824
818
  * See the <SortedTableInHtmlTable /> (Solid) demo for this component in
825
819
  * action:
826
820
  *
827
- * ![SortedTableInHtmlTable example](https://tinybase.org/shots/sortedtableinhtmltable-solid-demo.png
821
+ * ![SortedTableInHtmlTable example](https://beta.tinybase.org/shots/sortedtableinhtmltable-solid-demo.png
828
822
  * "SortedTableInHtmlTable example")
829
823
  *
830
824
  * The component's props identify which Table to render based on Table Id, and
@@ -1003,7 +997,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1003
997
  *
1004
998
  * See the <ValuesInHtmlTable /> (Solid) demo for this component in action:
1005
999
  *
1006
- * ![ValuesInHtmlTable example](https://tinybase.org/shots/valuesinhtmltable-solid-demo.png
1000
+ * ![ValuesInHtmlTable example](https://beta.tinybase.org/shots/valuesinhtmltable-solid-demo.png
1007
1001
  * "ValuesInHtmlTable example")
1008
1002
  *
1009
1003
  * The component's props identify which Row to render based on Table Id, Row Id,
@@ -1140,7 +1134,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1140
1134
  *
1141
1135
  * See the <SliceInHtmlTable /> (Solid) demo for this component in action:
1142
1136
  *
1143
- * ![SliceInHtmlTable example](https://tinybase.org/shots/sliceinhtmltable-solid-demo.png
1137
+ * ![SliceInHtmlTable example](https://beta.tinybase.org/shots/sliceinhtmltable-solid-demo.png
1144
1138
  * "SliceInHtmlTable example")
1145
1139
  *
1146
1140
  * The component's props identify which Slice to render based on Index Id, Slice
@@ -1304,7 +1298,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1304
1298
  * See the <RelationshipInHtmlTable /> (Solid) demo for this component in
1305
1299
  * action:
1306
1300
  *
1307
- * ![RelationshipInHtmlTable example](https://tinybase.org/shots/relationshipinhtmltable-solid-demo.png
1301
+ * ![RelationshipInHtmlTable example](https://beta.tinybase.org/shots/relationshipinhtmltable-solid-demo.png
1308
1302
  * "RelationshipInHtmlTable example")
1309
1303
  *
1310
1304
  * The component's props identify which Relationship to render based on
@@ -1486,7 +1480,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1486
1480
  * See the <ResultTableInHtmlTable /> (Solid) demo for this component in
1487
1481
  * action:
1488
1482
  *
1489
- * ![ResultTableInHtmlTable example](https://tinybase.org/shots/resulttableinhtmltable-solid-demo.png
1483
+ * ![ResultTableInHtmlTable example](https://beta.tinybase.org/shots/resulttableinhtmltable-solid-demo.png
1490
1484
  * "ResultTableInHtmlTable example")
1491
1485
  *
1492
1486
  * The component's props identify which ResultTable to render based on query Id,
@@ -1645,7 +1639,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1645
1639
  * See the <ResultSortedTableInHtmlTable /> (Solid) demo for this component in
1646
1640
  * action:
1647
1641
  *
1648
- * ![ResultSortedTableInHtmlTable example](https://tinybase.org/shots/resultsortedtableinhtmltable-solid-demo.png
1642
+ * ![ResultSortedTableInHtmlTable example](https://beta.tinybase.org/shots/resultsortedtableinhtmltable-solid-demo.png
1649
1643
  * "ResultSortedTableInHtmlTable example")
1650
1644
  *
1651
1645
  * The component's props identify which ResultTable to render based on query Id,
@@ -1825,7 +1819,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1825
1819
  *
1826
1820
  * See the <EditableCellView /> (Solid) demo for this component in action:
1827
1821
  *
1828
- * ![EditableCellView example](https://tinybase.org/shots/editablecellview-solid-demo.png
1822
+ * ![EditableCellView example](https://beta.tinybase.org/shots/editablecellview-solid-demo.png
1829
1823
  * "EditableCellView example")
1830
1824
  *
1831
1825
  * The component's props identify which Cell to render based on Table Id, Row
@@ -1909,7 +1903,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1909
1903
  *
1910
1904
  * See the <EditableValueView /> (Solid) demo for this component in action:
1911
1905
  *
1912
- * ![EditableValueView example](https://tinybase.org/shots/editablevalueview-solid-demo.png
1906
+ * ![EditableValueView example](https://beta.tinybase.org/shots/editablevalueview-solid-demo.png
1913
1907
  * "EditableValueView example")
1914
1908
  *
1915
1909
  * The component's props identify which Value to render based on Table Id, Row
@@ -1979,7 +1973,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1979
1973
  * See the <SortedTableInHtmlTable /> (Solid) demo for this component in
1980
1974
  * action:
1981
1975
  *
1982
- * ![SortedTablePaginator example](https://tinybase.org/shots/sortedtablepaginator-solid-demo.png
1976
+ * ![SortedTablePaginator example](https://beta.tinybase.org/shots/sortedtablepaginator-solid-demo.png
1983
1977
  * "SortedTablePaginator example")
1984
1978
  *
1985
1979
  * The component displays 'previous' and 'next' buttons for paging through the
@@ -46,7 +46,7 @@ export type InspectorProps = {
46
46
  *
47
47
  * See the <Inspector /> (Solid) demo for this component in action:
48
48
  *
49
- * ![Inspector example](https://tinybase.org/shots/inspector-solid-demo.png
49
+ * ![Inspector example](https://beta.tinybase.org/shots/inspector-solid-demo.png
50
50
  * "Inspector example")
51
51
  *
52
52
  * The component displays a nub in the corner of the screen which you may then
@@ -46,7 +46,7 @@ export type InspectorProps = {
46
46
  *
47
47
  * See the <Inspector /> (Solid) demo for this component in action:
48
48
  *
49
- * ![Inspector example](https://tinybase.org/shots/inspector-solid-demo.png
49
+ * ![Inspector example](https://beta.tinybase.org/shots/inspector-solid-demo.png
50
50
  * "Inspector example")
51
51
  *
52
52
  * The component displays a nub in the corner of the screen which you may then
@@ -690,7 +690,7 @@ export type SortedTablePaginatorProps = {
690
690
  *
691
691
  * See the <TableInHtmlTable /> (Svelte) demo for this component in action:
692
692
  *
693
- * ![TableInHtmlTable example](https://tinybase.org/shots/tableinhtmltable-svelte-demo.png
693
+ * ![TableInHtmlTable example](https://beta.tinybase.org/shots/tableinhtmltable-svelte-demo.png
694
694
  * "TableInHtmlTable example")
695
695
  *
696
696
  * The component's props identify which Table to render based on Table Id, and
@@ -854,7 +854,7 @@ export const TableInHtmlTable: Component<
854
854
  * See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
855
855
  * action:
856
856
  *
857
- * ![SortedTableInHtmlTable example](https://tinybase.org/shots/sortedtableinhtmltable-svelte-demo.png
857
+ * ![SortedTableInHtmlTable example](https://beta.tinybase.org/shots/sortedtableinhtmltable-svelte-demo.png
858
858
  * "SortedTableInHtmlTable example")
859
859
  *
860
860
  * The component's props identify which Table to render based on Table Id, and
@@ -1042,7 +1042,7 @@ export const SortedTableInHtmlTable: Component<
1042
1042
  *
1043
1043
  * See the <ValuesInHtmlTable /> (Svelte) demo for this component in action:
1044
1044
  *
1045
- * ![ValuesInHtmlTable example](https://tinybase.org/shots/valuesinhtmltable-svelte-demo.png
1045
+ * ![ValuesInHtmlTable example](https://beta.tinybase.org/shots/valuesinhtmltable-svelte-demo.png
1046
1046
  * "ValuesInHtmlTable example")
1047
1047
  *
1048
1048
  * The component's props identify which Row to render based on Table Id, Row Id,
@@ -1185,7 +1185,7 @@ export const ValuesInHtmlTable: Component<
1185
1185
  *
1186
1186
  * See the <SliceInHtmlTable /> (Svelte) demo for this component in action:
1187
1187
  *
1188
- * ![SliceInHtmlTable example](https://tinybase.org/shots/sliceinhtmltable-svelte-demo.png
1188
+ * ![SliceInHtmlTable example](https://beta.tinybase.org/shots/sliceinhtmltable-svelte-demo.png
1189
1189
  * "SliceInHtmlTable example")
1190
1190
  *
1191
1191
  * The component's props identify which Slice to render based on Index Id, Slice
@@ -1357,7 +1357,7 @@ export const SliceInHtmlTable: Component<
1357
1357
  * See the <RelationshipInHtmlTable /> (Svelte) demo for this component in
1358
1358
  * action:
1359
1359
  *
1360
- * ![RelationshipInHtmlTable example](https://tinybase.org/shots/relationshipinhtmltable-svelte-demo.png
1360
+ * ![RelationshipInHtmlTable example](https://beta.tinybase.org/shots/relationshipinhtmltable-svelte-demo.png
1361
1361
  * "RelationshipInHtmlTable example")
1362
1362
  *
1363
1363
  * The component's props identify which Relationship to render based on
@@ -1544,7 +1544,7 @@ export const RelationshipInHtmlTable: Component<
1544
1544
  * See the <ResultTableInHtmlTable /> (Svelte) demo for this component in
1545
1545
  * action:
1546
1546
  *
1547
- * ![ResultTableInHtmlTable example](https://tinybase.org/shots/resulttableinhtmltable-svelte-demo.png
1547
+ * ![ResultTableInHtmlTable example](https://beta.tinybase.org/shots/resulttableinhtmltable-svelte-demo.png
1548
1548
  * "ResultTableInHtmlTable example")
1549
1549
  *
1550
1550
  * The component's props identify which ResultTable to render based on query Id,
@@ -1713,7 +1713,7 @@ export const ResultTableInHtmlTable: Component<
1713
1713
  * See the <ResultSortedTableInHtmlTable /> (Svelte) demo for this component in
1714
1714
  * action:
1715
1715
  *
1716
- * ![ResultSortedTableInHtmlTable example](https://tinybase.org/shots/resultsortedtableinhtmltable-svelte-demo.png
1716
+ * ![ResultSortedTableInHtmlTable example](https://beta.tinybase.org/shots/resultsortedtableinhtmltable-svelte-demo.png
1717
1717
  * "ResultSortedTableInHtmlTable example")
1718
1718
  *
1719
1719
  * The component's props identify which ResultTable to render based on query Id,
@@ -1902,7 +1902,7 @@ export const ResultSortedTableInHtmlTable: Component<
1902
1902
  *
1903
1903
  * See the <EditableCellView /> (Svelte) demo for this component in action:
1904
1904
  *
1905
- * ![EditableCellView example](https://tinybase.org/shots/editablecellview-svelte-demo.png
1905
+ * ![EditableCellView example](https://beta.tinybase.org/shots/editablecellview-svelte-demo.png
1906
1906
  * "EditableCellView example")
1907
1907
  *
1908
1908
  * The component's props identify which Cell to render based on Table Id, Row
@@ -1975,7 +1975,7 @@ export const EditableCellView: Component<
1975
1975
  *
1976
1976
  * See the <EditableValueView /> (Svelte) demo for this component in action:
1977
1977
  *
1978
- * ![EditableValueView example](https://tinybase.org/shots/editablevalueview-svelte-demo.png
1978
+ * ![EditableValueView example](https://beta.tinybase.org/shots/editablevalueview-svelte-demo.png
1979
1979
  * "EditableValueView example")
1980
1980
  *
1981
1981
  * The component's props identify which Value to render based on Table Id, Row
@@ -2050,7 +2050,7 @@ export const EditableValueView: Component<
2050
2050
  * See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
2051
2051
  * action:
2052
2052
  *
2053
- * ![SortedTablePaginator example](https://tinybase.org/shots/sortedtablepaginator-svelte-demo.png
2053
+ * ![SortedTablePaginator example](https://beta.tinybase.org/shots/sortedtablepaginator-svelte-demo.png
2054
2054
  * "SortedTablePaginator example")
2055
2055
  *
2056
2056
  * The component displays 'previous' and 'next' buttons for paging through the
@@ -225,8 +225,7 @@ export type TableInHtmlTableProps<
225
225
  | CellIdFromSchema<Schemas[0], TableId>[]
226
226
  | {
227
227
  [CellId in CellIdFromSchema<Schemas[0], TableId>]?:
228
- | string
229
- | CustomCell<Schemas, TableId, CellId>;
228
+ string | CustomCell<Schemas, TableId, CellId>;
230
229
  };
231
230
  }
232
231
  : never
@@ -305,8 +304,7 @@ export type SortedTableInHtmlTableProps<
305
304
  | CellIdFromSchema<Schemas[0], TableId>[]
306
305
  | {
307
306
  [CellId in CellIdFromSchema<Schemas[0], TableId>]?:
308
- | string
309
- | CustomCell<Schemas, TableId, CellId>;
307
+ string | CustomCell<Schemas, TableId, CellId>;
310
308
  };
311
309
  /**
312
310
  * Whether the table should be interactive such that clicking a header changes
@@ -423,8 +421,7 @@ export type SliceInHtmlTableProps<Schemas extends OptionalSchemas> = {
423
421
  * @since v4.1.0
424
422
  */
425
423
  readonly customCells?:
426
- | Ids
427
- | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
424
+ Ids | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
428
425
  };
429
426
 
430
427
  /**
@@ -474,8 +471,7 @@ export type RelationshipInHtmlTableProps<Schemas extends OptionalSchemas> = {
474
471
  * @since v4.1.0
475
472
  */
476
473
  readonly customCells?:
477
- | Ids
478
- | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
474
+ Ids | {[cellId: Id]: string | CustomCell<NoSchemas, Id, Id>};
479
475
  };
480
476
 
481
477
  /**
@@ -510,8 +506,7 @@ export type ResultTableInHtmlTableProps<Schemas extends OptionalSchemas> = {
510
506
  * @since v4.1.0
511
507
  */
512
508
  readonly customCells?:
513
- | Ids
514
- | {[cellId: Id]: string | CustomResultCell<Schemas>};
509
+ Ids | {[cellId: Id]: string | CustomResultCell<Schemas>};
515
510
  };
516
511
 
517
512
  /**
@@ -573,8 +568,7 @@ export type ResultSortedTableInHtmlTableProps<Schemas extends OptionalSchemas> =
573
568
  * @since v4.1.0
574
569
  */
575
570
  readonly customCells?:
576
- | Ids
577
- | {[cellId: Id]: string | CustomResultCell<Schemas>};
571
+ Ids | {[cellId: Id]: string | CustomResultCell<Schemas>};
578
572
  /**
579
573
  * Whether the table should be interactive such that clicking a header changes
580
574
  * the sorting and/or direction.
@@ -670,7 +664,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
670
664
  *
671
665
  * See the <TableInHtmlTable /> (Svelte) demo for this component in action:
672
666
  *
673
- * ![TableInHtmlTable example](https://tinybase.org/shots/tableinhtmltable-svelte-demo.png
667
+ * ![TableInHtmlTable example](https://beta.tinybase.org/shots/tableinhtmltable-svelte-demo.png
674
668
  * "TableInHtmlTable example")
675
669
  *
676
670
  * The component's props identify which Table to render based on Table Id, and
@@ -840,7 +834,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
840
834
  * See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
841
835
  * action:
842
836
  *
843
- * ![SortedTableInHtmlTable example](https://tinybase.org/shots/sortedtableinhtmltable-svelte-demo.png
837
+ * ![SortedTableInHtmlTable example](https://beta.tinybase.org/shots/sortedtableinhtmltable-svelte-demo.png
844
838
  * "SortedTableInHtmlTable example")
845
839
  *
846
840
  * The component's props identify which Table to render based on Table Id, and
@@ -1036,7 +1030,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1036
1030
  *
1037
1031
  * See the <ValuesInHtmlTable /> (Svelte) demo for this component in action:
1038
1032
  *
1039
- * ![ValuesInHtmlTable example](https://tinybase.org/shots/valuesinhtmltable-svelte-demo.png
1033
+ * ![ValuesInHtmlTable example](https://beta.tinybase.org/shots/valuesinhtmltable-svelte-demo.png
1040
1034
  * "ValuesInHtmlTable example")
1041
1035
  *
1042
1036
  * The component's props identify which Row to render based on Table Id, Row Id,
@@ -1187,7 +1181,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1187
1181
  *
1188
1182
  * See the <SliceInHtmlTable /> (Svelte) demo for this component in action:
1189
1183
  *
1190
- * ![SliceInHtmlTable example](https://tinybase.org/shots/sliceinhtmltable-svelte-demo.png
1184
+ * ![SliceInHtmlTable example](https://beta.tinybase.org/shots/sliceinhtmltable-svelte-demo.png
1191
1185
  * "SliceInHtmlTable example")
1192
1186
  *
1193
1187
  * The component's props identify which Slice to render based on Index Id, Slice
@@ -1365,7 +1359,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1365
1359
  * See the <RelationshipInHtmlTable /> (Svelte) demo for this component in
1366
1360
  * action:
1367
1361
  *
1368
- * ![RelationshipInHtmlTable example](https://tinybase.org/shots/relationshipinhtmltable-svelte-demo.png
1362
+ * ![RelationshipInHtmlTable example](https://beta.tinybase.org/shots/relationshipinhtmltable-svelte-demo.png
1369
1363
  * "RelationshipInHtmlTable example")
1370
1364
  *
1371
1365
  * The component's props identify which Relationship to render based on
@@ -1560,7 +1554,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1560
1554
  * See the <ResultTableInHtmlTable /> (Svelte) demo for this component in
1561
1555
  * action:
1562
1556
  *
1563
- * ![ResultTableInHtmlTable example](https://tinybase.org/shots/resulttableinhtmltable-svelte-demo.png
1557
+ * ![ResultTableInHtmlTable example](https://beta.tinybase.org/shots/resulttableinhtmltable-svelte-demo.png
1564
1558
  * "ResultTableInHtmlTable example")
1565
1559
  *
1566
1560
  * The component's props identify which ResultTable to render based on query Id,
@@ -1737,7 +1731,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1737
1731
  * See the <ResultSortedTableInHtmlTable /> (Svelte) demo for this component in
1738
1732
  * action:
1739
1733
  *
1740
- * ![ResultSortedTableInHtmlTable example](https://tinybase.org/shots/resultsortedtableinhtmltable-svelte-demo.png
1734
+ * ![ResultSortedTableInHtmlTable example](https://beta.tinybase.org/shots/resultsortedtableinhtmltable-svelte-demo.png
1741
1735
  * "ResultSortedTableInHtmlTable example")
1742
1736
  *
1743
1737
  * The component's props identify which ResultTable to render based on query Id,
@@ -1934,7 +1928,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
1934
1928
  *
1935
1929
  * See the <EditableCellView /> (Svelte) demo for this component in action:
1936
1930
  *
1937
- * ![EditableCellView example](https://tinybase.org/shots/editablecellview-svelte-demo.png
1931
+ * ![EditableCellView example](https://beta.tinybase.org/shots/editablecellview-svelte-demo.png
1938
1932
  * "EditableCellView example")
1939
1933
  *
1940
1934
  * The component's props identify which Cell to render based on Table Id, Row
@@ -2021,7 +2015,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2021
2015
  *
2022
2016
  * See the <EditableValueView /> (Svelte) demo for this component in action:
2023
2017
  *
2024
- * ![EditableValueView example](https://tinybase.org/shots/editablevalueview-svelte-demo.png
2018
+ * ![EditableValueView example](https://beta.tinybase.org/shots/editablevalueview-svelte-demo.png
2025
2019
  * "EditableValueView example")
2026
2020
  *
2027
2021
  * The component's props identify which Value to render based on Table Id, Row
@@ -2096,7 +2090,7 @@ export type WithSchemas<Schemas extends OptionalSchemas> = {
2096
2090
  * See the <SortedTableInHtmlTable /> (Svelte) demo for this component in
2097
2091
  * action:
2098
2092
  *
2099
- * ![SortedTablePaginator example](https://tinybase.org/shots/sortedtablepaginator-svelte-demo.png
2093
+ * ![SortedTablePaginator example](https://beta.tinybase.org/shots/sortedtablepaginator-svelte-demo.png
2100
2094
  * "SortedTablePaginator example")
2101
2095
  *
2102
2096
  * The component displays 'previous' and 'next' buttons for paging through the
@@ -46,7 +46,7 @@ export type InspectorProps = {
46
46
  *
47
47
  * See the <Inspector /> (Svelte) demo for this component in action:
48
48
  *
49
- * ![Inspector example](https://tinybase.org/shots/inspector-svelte-demo.png
49
+ * ![Inspector example](https://beta.tinybase.org/shots/inspector-svelte-demo.png
50
50
  * "Inspector example")
51
51
  *
52
52
  * The component displays a nub in the corner of the screen which you may then
@@ -46,7 +46,7 @@ export type InspectorProps = {
46
46
  *
47
47
  * See the <Inspector /> (Svelte) demo for this component in action:
48
48
  *
49
- * ![Inspector example](https://tinybase.org/shots/inspector-svelte-demo.png
49
+ * ![Inspector example](https://beta.tinybase.org/shots/inspector-svelte-demo.png
50
50
  * "Inspector example")
51
51
  *
52
52
  * The component displays a nub in the corner of the screen which you may then
package/index.js CHANGED
@@ -339,14 +339,12 @@ const getDefinableFunctions = (
339
339
  const newRowValue = hasRow(tableId, rowId)
340
340
  ? validateRowValue(getRowValue(getCell, rowId))
341
341
  : void 0;
342
- if (
343
- !(
344
- oldRowValue === newRowValue ||
345
- (isArray(oldRowValue) &&
346
- isArray(newRowValue) &&
347
- arrayIsEqual(oldRowValue, newRowValue))
348
- )
349
- ) {
342
+ if (!(
343
+ oldRowValue === newRowValue ||
344
+ (isArray(oldRowValue) &&
345
+ isArray(newRowValue) &&
346
+ arrayIsEqual(oldRowValue, newRowValue))
347
+ )) {
350
348
  mapSet(changedRowValues, rowId, [oldRowValue, newRowValue]);
351
349
  }
352
350
  if (!isUndefined(getSortKey)) {
@@ -3753,9 +3751,9 @@ const PARAMS_TABLE = '_';
3753
3751
  const PARAM_LISTENER_PREFIX = 'p';
3754
3752
  const createQueries = getCreateFunction((store) => {
3755
3753
  const createStore = store._[0];
3756
- const preStore = createStore();
3757
3754
  const paramStore = createStore();
3758
3755
  const resultStore = createStore();
3756
+ const preStores = mapNew();
3759
3757
  const resultStores = mapNew();
3760
3758
  const redefiningQueryIds = setNew();
3761
3759
  const routedResultListeners = mapNew();
@@ -3798,12 +3796,13 @@ const createQueries = getCreateFunction((store) => {
3798
3796
  );
3799
3797
  const getResultStore = (queryId) =>
3800
3798
  mapEnsure(resultStores, queryId, createStore);
3801
- const addPreStoreListener = (preStore2, queryId, ...listenerIds) =>
3799
+ const getPreStore = (queryId) => mapEnsure(preStores, queryId, createStore);
3800
+ const addPreStoreListener = (preStore, queryId, ...listenerIds) =>
3802
3801
  arrayForEach(listenerIds, (listenerId) =>
3803
3802
  setAdd(
3804
3803
  mapEnsure(
3805
3804
  mapEnsure(preStoreListenerIds, queryId, mapNew),
3806
- preStore2,
3805
+ preStore,
3807
3806
  setNew,
3808
3807
  ),
3809
3808
  listenerId,
@@ -3813,16 +3812,17 @@ const createQueries = getCreateFunction((store) => {
3813
3812
  ifNotUndefined(
3814
3813
  mapGet(preStoreListenerIds, queryId),
3815
3814
  (queryPreStoreListenerIds) => {
3816
- mapForEach(queryPreStoreListenerIds, (preStore2, listenerIds) =>
3815
+ mapForEach(queryPreStoreListenerIds, (preStore, listenerIds) =>
3817
3816
  collForEach(listenerIds, (listenerId) =>
3818
- preStore2.delListener(listenerId),
3817
+ preStore.delListener(listenerId),
3819
3818
  ),
3820
3819
  );
3821
3820
  collClear(queryPreStoreListenerIds);
3822
3821
  },
3823
3822
  );
3824
- arrayForEach([getResultStore(queryId), preStore], (store2) =>
3825
- store2.delTable(queryId),
3823
+ arrayForEach(
3824
+ [getResultStore(queryId), mapGet(preStores, queryId)],
3825
+ (store2) => store2?.delTable(queryId),
3826
3826
  );
3827
3827
  };
3828
3828
  const addSourceStoreListeners = (
@@ -4050,10 +4050,12 @@ const createQueries = getCreateFunction((store) => {
4050
4050
  ),
4051
4051
  );
4052
4052
  const groups = mapNew(groupEntries);
4053
- let selectJoinWhereStore = preStore;
4054
- if (collIsEmpty(groups) && arrayIsEmpty(havings)) {
4055
- selectJoinWhereStore = resultStore2;
4056
- } else {
4053
+ const hasGroupsOrHavings =
4054
+ !collIsEmpty(groups) || !arrayIsEmpty(havings);
4055
+ const selectJoinWhereStore = hasGroupsOrHavings
4056
+ ? getPreStore(queryId)
4057
+ : resultStore2;
4058
+ if (hasGroupsOrHavings) {
4057
4059
  synchronizeTransactions(queryId, selectJoinWhereStore, resultStore2);
4058
4060
  const groupedSelectedCellIds = mapNew();
4059
4061
  mapForEach(groups, (groupedCellId, [selectedCellId, aggregators]) =>
package/indexes/index.js CHANGED
@@ -153,14 +153,12 @@ const getDefinableFunctions = (
153
153
  const newRowValue = hasRow(tableId, rowId)
154
154
  ? validateRowValue(getRowValue(getCell, rowId))
155
155
  : void 0;
156
- if (
157
- !(
158
- oldRowValue === newRowValue ||
159
- (isArray(oldRowValue) &&
160
- isArray(newRowValue) &&
161
- arrayIsEqual(oldRowValue, newRowValue))
162
- )
163
- ) {
156
+ if (!(
157
+ oldRowValue === newRowValue ||
158
+ (isArray(oldRowValue) &&
159
+ isArray(newRowValue) &&
160
+ arrayIsEqual(oldRowValue, newRowValue))
161
+ )) {
164
162
  mapSet(changedRowValues, rowId, [oldRowValue, newRowValue]);
165
163
  }
166
164
  if (!isUndefined(getSortKey)) {
@@ -153,14 +153,12 @@ const getDefinableFunctions = (
153
153
  const newRowValue = hasRow(tableId, rowId)
154
154
  ? validateRowValue(getRowValue(getCell, rowId))
155
155
  : void 0;
156
- if (
157
- !(
158
- oldRowValue === newRowValue ||
159
- (isArray(oldRowValue) &&
160
- isArray(newRowValue) &&
161
- arrayIsEqual(oldRowValue, newRowValue))
162
- )
163
- ) {
156
+ if (!(
157
+ oldRowValue === newRowValue ||
158
+ (isArray(oldRowValue) &&
159
+ isArray(newRowValue) &&
160
+ arrayIsEqual(oldRowValue, newRowValue))
161
+ )) {
164
162
  mapSet(changedRowValues, rowId, [oldRowValue, newRowValue]);
165
163
  }
166
164
  if (!isUndefined(getSortKey)) {