tinybase 6.1.0 → 6.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinybase",
3
- "version": "6.1.0",
3
+ "version": "6.1.2",
4
4
  "author": "jamesgpearce",
5
5
  "repository": "github:tinyplex/tinybase",
6
6
  "license": "MIT",
@@ -22,19 +22,19 @@
22
22
  "sideEffects": false,
23
23
  "peerDependencies": {
24
24
  "@automerge/automerge-repo": "^1.2.1",
25
- "@cloudflare/workers-types": "^4.20250515.0",
25
+ "@cloudflare/workers-types": "^4.20250524.0",
26
26
  "@electric-sql/pglite": "^0.2.17",
27
- "@libsql/client": "^0.15.6",
27
+ "@libsql/client": "^0.15.7",
28
28
  "@powersync/common": "^1.30.0",
29
29
  "@sqlite.org/sqlite-wasm": "^3.49.2-build1",
30
30
  "@vlcn.io/crsqlite-wasm": "^0.16.0",
31
- "bun": "^1.2.13",
31
+ "bun": "^1.2.14",
32
32
  "electric-sql": "^0.12.1",
33
33
  "expo": "^53.0.9",
34
34
  "expo-sqlite": "^15.2.10",
35
- "partykit": "^0.0.114",
35
+ "partykit": "^0.0.115",
36
36
  "partysocket": "^1.1.4",
37
- "postgres": "^3.4.5",
37
+ "postgres": "^3.4.7",
38
38
  "react": "^19.0.0",
39
39
  "react-dom": "^19.0.0",
40
40
  "sqlite3": "^5.1.7",
@@ -110,6 +110,54 @@
110
110
  "with-schemas": [
111
111
  "./@types/with-schemas/index.d.ts"
112
112
  ],
113
+ "store": [
114
+ "./@types/store/index.d.ts"
115
+ ],
116
+ "store/with-schemas": [
117
+ "./@types/store/with-schemas/index.d.ts"
118
+ ],
119
+ "indexes": [
120
+ "./@types/indexes/index.d.ts"
121
+ ],
122
+ "indexes/with-schemas": [
123
+ "./@types/indexes/with-schemas/index.d.ts"
124
+ ],
125
+ "metrics": [
126
+ "./@types/metrics/index.d.ts"
127
+ ],
128
+ "metrics/with-schemas": [
129
+ "./@types/metrics/with-schemas/index.d.ts"
130
+ ],
131
+ "relationships": [
132
+ "./@types/relationships/index.d.ts"
133
+ ],
134
+ "relationships/with-schemas": [
135
+ "./@types/relationships/with-schemas/index.d.ts"
136
+ ],
137
+ "queries": [
138
+ "./@types/queries/index.d.ts"
139
+ ],
140
+ "queries/with-schemas": [
141
+ "./@types/queries/with-schemas/index.d.ts"
142
+ ],
143
+ "checkpoints": [
144
+ "./@types/checkpoints/index.d.ts"
145
+ ],
146
+ "checkpoints/with-schemas": [
147
+ "./@types/checkpoints/with-schemas/index.d.ts"
148
+ ],
149
+ "mergeable-store": [
150
+ "./@types/mergeable-store/index.d.ts"
151
+ ],
152
+ "mergeable-store/with-schemas": [
153
+ "./@types/mergeable-store/with-schemas/index.d.ts"
154
+ ],
155
+ "common": [
156
+ "./@types/common/index.d.ts"
157
+ ],
158
+ "common/with-schemas": [
159
+ "./@types/common/with-schemas/index.d.ts"
160
+ ],
113
161
  "ui-react": [
114
162
  "./@types/ui-react/index.d.ts"
115
163
  ],
@@ -290,60 +338,60 @@
290
338
  "synchronizers/synchronizer-broadcast-channel/with-schemas": [
291
339
  "./@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.ts"
292
340
  ],
293
- "store": [
294
- "./@types/store/index.d.ts"
341
+ "min": [
342
+ "./@types/index.d.ts"
295
343
  ],
296
- "store/with-schemas": [
297
- "./@types/store/with-schemas/index.d.ts"
344
+ "min/with-schemas": [
345
+ "./@types/with-schemas/index.d.ts"
298
346
  ],
299
- "metrics": [
300
- "./@types/metrics/index.d.ts"
347
+ "min/store": [
348
+ "./@types/store/index.d.ts"
301
349
  ],
302
- "metrics/with-schemas": [
303
- "./@types/metrics/with-schemas/index.d.ts"
350
+ "min/store/with-schemas": [
351
+ "./@types/store/with-schemas/index.d.ts"
304
352
  ],
305
- "indexes": [
353
+ "min/indexes": [
306
354
  "./@types/indexes/index.d.ts"
307
355
  ],
308
- "indexes/with-schemas": [
356
+ "min/indexes/with-schemas": [
309
357
  "./@types/indexes/with-schemas/index.d.ts"
310
358
  ],
311
- "relationships": [
359
+ "min/metrics": [
360
+ "./@types/metrics/index.d.ts"
361
+ ],
362
+ "min/metrics/with-schemas": [
363
+ "./@types/metrics/with-schemas/index.d.ts"
364
+ ],
365
+ "min/relationships": [
312
366
  "./@types/relationships/index.d.ts"
313
367
  ],
314
- "relationships/with-schemas": [
368
+ "min/relationships/with-schemas": [
315
369
  "./@types/relationships/with-schemas/index.d.ts"
316
370
  ],
317
- "queries": [
371
+ "min/queries": [
318
372
  "./@types/queries/index.d.ts"
319
373
  ],
320
- "queries/with-schemas": [
374
+ "min/queries/with-schemas": [
321
375
  "./@types/queries/with-schemas/index.d.ts"
322
376
  ],
323
- "checkpoints": [
377
+ "min/checkpoints": [
324
378
  "./@types/checkpoints/index.d.ts"
325
379
  ],
326
- "checkpoints/with-schemas": [
380
+ "min/checkpoints/with-schemas": [
327
381
  "./@types/checkpoints/with-schemas/index.d.ts"
328
382
  ],
329
- "mergeable-store": [
383
+ "min/mergeable-store": [
330
384
  "./@types/mergeable-store/index.d.ts"
331
385
  ],
332
- "mergeable-store/with-schemas": [
386
+ "min/mergeable-store/with-schemas": [
333
387
  "./@types/mergeable-store/with-schemas/index.d.ts"
334
388
  ],
335
- "common": [
389
+ "min/common": [
336
390
  "./@types/common/index.d.ts"
337
391
  ],
338
- "common/with-schemas": [
392
+ "min/common/with-schemas": [
339
393
  "./@types/common/with-schemas/index.d.ts"
340
394
  ],
341
- "min": [
342
- "./@types/index.d.ts"
343
- ],
344
- "min/with-schemas": [
345
- "./@types/with-schemas/index.d.ts"
346
- ],
347
395
  "min/ui-react": [
348
396
  "./@types/ui-react/index.d.ts"
349
397
  ],
@@ -523,54 +571,6 @@
523
571
  ],
524
572
  "min/synchronizers/synchronizer-broadcast-channel/with-schemas": [
525
573
  "./@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.ts"
526
- ],
527
- "min/store": [
528
- "./@types/store/index.d.ts"
529
- ],
530
- "min/store/with-schemas": [
531
- "./@types/store/with-schemas/index.d.ts"
532
- ],
533
- "min/metrics": [
534
- "./@types/metrics/index.d.ts"
535
- ],
536
- "min/metrics/with-schemas": [
537
- "./@types/metrics/with-schemas/index.d.ts"
538
- ],
539
- "min/indexes": [
540
- "./@types/indexes/index.d.ts"
541
- ],
542
- "min/indexes/with-schemas": [
543
- "./@types/indexes/with-schemas/index.d.ts"
544
- ],
545
- "min/relationships": [
546
- "./@types/relationships/index.d.ts"
547
- ],
548
- "min/relationships/with-schemas": [
549
- "./@types/relationships/with-schemas/index.d.ts"
550
- ],
551
- "min/queries": [
552
- "./@types/queries/index.d.ts"
553
- ],
554
- "min/queries/with-schemas": [
555
- "./@types/queries/with-schemas/index.d.ts"
556
- ],
557
- "min/checkpoints": [
558
- "./@types/checkpoints/index.d.ts"
559
- ],
560
- "min/checkpoints/with-schemas": [
561
- "./@types/checkpoints/with-schemas/index.d.ts"
562
- ],
563
- "min/mergeable-store": [
564
- "./@types/mergeable-store/index.d.ts"
565
- ],
566
- "min/mergeable-store/with-schemas": [
567
- "./@types/mergeable-store/with-schemas/index.d.ts"
568
- ],
569
- "min/common": [
570
- "./@types/common/index.d.ts"
571
- ],
572
- "min/common/with-schemas": [
573
- "./@types/common/with-schemas/index.d.ts"
574
574
  ]
575
575
  }
576
576
  },
@@ -587,6 +587,102 @@
587
587
  "default": "./with-schemas/index.js"
588
588
  }
589
589
  },
590
+ "./store": {
591
+ "default": {
592
+ "types": "./@types/store/index.d.ts",
593
+ "default": "./store/index.js"
594
+ }
595
+ },
596
+ "./store/with-schemas": {
597
+ "default": {
598
+ "types": "./@types/store/with-schemas/index.d.ts",
599
+ "default": "./store/with-schemas/index.js"
600
+ }
601
+ },
602
+ "./indexes": {
603
+ "default": {
604
+ "types": "./@types/indexes/index.d.ts",
605
+ "default": "./indexes/index.js"
606
+ }
607
+ },
608
+ "./indexes/with-schemas": {
609
+ "default": {
610
+ "types": "./@types/indexes/with-schemas/index.d.ts",
611
+ "default": "./indexes/with-schemas/index.js"
612
+ }
613
+ },
614
+ "./metrics": {
615
+ "default": {
616
+ "types": "./@types/metrics/index.d.ts",
617
+ "default": "./metrics/index.js"
618
+ }
619
+ },
620
+ "./metrics/with-schemas": {
621
+ "default": {
622
+ "types": "./@types/metrics/with-schemas/index.d.ts",
623
+ "default": "./metrics/with-schemas/index.js"
624
+ }
625
+ },
626
+ "./relationships": {
627
+ "default": {
628
+ "types": "./@types/relationships/index.d.ts",
629
+ "default": "./relationships/index.js"
630
+ }
631
+ },
632
+ "./relationships/with-schemas": {
633
+ "default": {
634
+ "types": "./@types/relationships/with-schemas/index.d.ts",
635
+ "default": "./relationships/with-schemas/index.js"
636
+ }
637
+ },
638
+ "./queries": {
639
+ "default": {
640
+ "types": "./@types/queries/index.d.ts",
641
+ "default": "./queries/index.js"
642
+ }
643
+ },
644
+ "./queries/with-schemas": {
645
+ "default": {
646
+ "types": "./@types/queries/with-schemas/index.d.ts",
647
+ "default": "./queries/with-schemas/index.js"
648
+ }
649
+ },
650
+ "./checkpoints": {
651
+ "default": {
652
+ "types": "./@types/checkpoints/index.d.ts",
653
+ "default": "./checkpoints/index.js"
654
+ }
655
+ },
656
+ "./checkpoints/with-schemas": {
657
+ "default": {
658
+ "types": "./@types/checkpoints/with-schemas/index.d.ts",
659
+ "default": "./checkpoints/with-schemas/index.js"
660
+ }
661
+ },
662
+ "./mergeable-store": {
663
+ "default": {
664
+ "types": "./@types/mergeable-store/index.d.ts",
665
+ "default": "./mergeable-store/index.js"
666
+ }
667
+ },
668
+ "./mergeable-store/with-schemas": {
669
+ "default": {
670
+ "types": "./@types/mergeable-store/with-schemas/index.d.ts",
671
+ "default": "./mergeable-store/with-schemas/index.js"
672
+ }
673
+ },
674
+ "./common": {
675
+ "default": {
676
+ "types": "./@types/common/index.d.ts",
677
+ "default": "./common/index.js"
678
+ }
679
+ },
680
+ "./common/with-schemas": {
681
+ "default": {
682
+ "types": "./@types/common/with-schemas/index.d.ts",
683
+ "default": "./common/with-schemas/index.js"
684
+ }
685
+ },
590
686
  "./ui-react": {
591
687
  "default": {
592
688
  "types": "./@types/ui-react/index.d.ts",
@@ -947,112 +1043,112 @@
947
1043
  "default": "./synchronizers/synchronizer-broadcast-channel/with-schemas/index.js"
948
1044
  }
949
1045
  },
950
- "./store": {
1046
+ "./min": {
951
1047
  "default": {
952
- "types": "./@types/store/index.d.ts",
953
- "default": "./store/index.js"
1048
+ "types": "./@types/index.d.ts",
1049
+ "default": "./min/index.js"
954
1050
  }
955
1051
  },
956
- "./store/with-schemas": {
1052
+ "./min/with-schemas": {
957
1053
  "default": {
958
- "types": "./@types/store/with-schemas/index.d.ts",
959
- "default": "./store/with-schemas/index.js"
1054
+ "types": "./@types/with-schemas/index.d.ts",
1055
+ "default": "./min/with-schemas/index.js"
960
1056
  }
961
1057
  },
962
- "./metrics": {
1058
+ "./min/store": {
963
1059
  "default": {
964
- "types": "./@types/metrics/index.d.ts",
965
- "default": "./metrics/index.js"
1060
+ "types": "./@types/store/index.d.ts",
1061
+ "default": "./min/store/index.js"
966
1062
  }
967
1063
  },
968
- "./metrics/with-schemas": {
1064
+ "./min/store/with-schemas": {
969
1065
  "default": {
970
- "types": "./@types/metrics/with-schemas/index.d.ts",
971
- "default": "./metrics/with-schemas/index.js"
1066
+ "types": "./@types/store/with-schemas/index.d.ts",
1067
+ "default": "./min/store/with-schemas/index.js"
972
1068
  }
973
1069
  },
974
- "./indexes": {
1070
+ "./min/indexes": {
975
1071
  "default": {
976
1072
  "types": "./@types/indexes/index.d.ts",
977
- "default": "./indexes/index.js"
1073
+ "default": "./min/indexes/index.js"
978
1074
  }
979
1075
  },
980
- "./indexes/with-schemas": {
1076
+ "./min/indexes/with-schemas": {
981
1077
  "default": {
982
1078
  "types": "./@types/indexes/with-schemas/index.d.ts",
983
- "default": "./indexes/with-schemas/index.js"
1079
+ "default": "./min/indexes/with-schemas/index.js"
984
1080
  }
985
1081
  },
986
- "./relationships": {
1082
+ "./min/metrics": {
1083
+ "default": {
1084
+ "types": "./@types/metrics/index.d.ts",
1085
+ "default": "./min/metrics/index.js"
1086
+ }
1087
+ },
1088
+ "./min/metrics/with-schemas": {
1089
+ "default": {
1090
+ "types": "./@types/metrics/with-schemas/index.d.ts",
1091
+ "default": "./min/metrics/with-schemas/index.js"
1092
+ }
1093
+ },
1094
+ "./min/relationships": {
987
1095
  "default": {
988
1096
  "types": "./@types/relationships/index.d.ts",
989
- "default": "./relationships/index.js"
1097
+ "default": "./min/relationships/index.js"
990
1098
  }
991
1099
  },
992
- "./relationships/with-schemas": {
1100
+ "./min/relationships/with-schemas": {
993
1101
  "default": {
994
1102
  "types": "./@types/relationships/with-schemas/index.d.ts",
995
- "default": "./relationships/with-schemas/index.js"
1103
+ "default": "./min/relationships/with-schemas/index.js"
996
1104
  }
997
1105
  },
998
- "./queries": {
1106
+ "./min/queries": {
999
1107
  "default": {
1000
1108
  "types": "./@types/queries/index.d.ts",
1001
- "default": "./queries/index.js"
1109
+ "default": "./min/queries/index.js"
1002
1110
  }
1003
1111
  },
1004
- "./queries/with-schemas": {
1112
+ "./min/queries/with-schemas": {
1005
1113
  "default": {
1006
1114
  "types": "./@types/queries/with-schemas/index.d.ts",
1007
- "default": "./queries/with-schemas/index.js"
1115
+ "default": "./min/queries/with-schemas/index.js"
1008
1116
  }
1009
1117
  },
1010
- "./checkpoints": {
1118
+ "./min/checkpoints": {
1011
1119
  "default": {
1012
1120
  "types": "./@types/checkpoints/index.d.ts",
1013
- "default": "./checkpoints/index.js"
1121
+ "default": "./min/checkpoints/index.js"
1014
1122
  }
1015
1123
  },
1016
- "./checkpoints/with-schemas": {
1124
+ "./min/checkpoints/with-schemas": {
1017
1125
  "default": {
1018
1126
  "types": "./@types/checkpoints/with-schemas/index.d.ts",
1019
- "default": "./checkpoints/with-schemas/index.js"
1127
+ "default": "./min/checkpoints/with-schemas/index.js"
1020
1128
  }
1021
1129
  },
1022
- "./mergeable-store": {
1130
+ "./min/mergeable-store": {
1023
1131
  "default": {
1024
1132
  "types": "./@types/mergeable-store/index.d.ts",
1025
- "default": "./mergeable-store/index.js"
1133
+ "default": "./min/mergeable-store/index.js"
1026
1134
  }
1027
1135
  },
1028
- "./mergeable-store/with-schemas": {
1136
+ "./min/mergeable-store/with-schemas": {
1029
1137
  "default": {
1030
1138
  "types": "./@types/mergeable-store/with-schemas/index.d.ts",
1031
- "default": "./mergeable-store/with-schemas/index.js"
1139
+ "default": "./min/mergeable-store/with-schemas/index.js"
1032
1140
  }
1033
1141
  },
1034
- "./common": {
1142
+ "./min/common": {
1035
1143
  "default": {
1036
1144
  "types": "./@types/common/index.d.ts",
1037
- "default": "./common/index.js"
1145
+ "default": "./min/common/index.js"
1038
1146
  }
1039
1147
  },
1040
- "./common/with-schemas": {
1148
+ "./min/common/with-schemas": {
1041
1149
  "default": {
1042
1150
  "types": "./@types/common/with-schemas/index.d.ts",
1043
- "default": "./common/with-schemas/index.js"
1044
- }
1045
- },
1046
- "./min": {
1047
- "default": {
1048
- "types": "./@types/index.d.ts",
1049
- "default": "./min/index.js"
1050
- }
1051
- },
1052
- "./min/with-schemas": {
1053
- "default": {
1054
- "types": "./@types/with-schemas/index.d.ts",
1055
- "default": "./min/with-schemas/index.js"
1151
+ "default": "./min/common/with-schemas/index.js"
1056
1152
  }
1057
1153
  },
1058
1154
  "./min/ui-react": {
@@ -1414,102 +1510,6 @@
1414
1510
  "types": "./@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.ts",
1415
1511
  "default": "./min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js"
1416
1512
  }
1417
- },
1418
- "./min/store": {
1419
- "default": {
1420
- "types": "./@types/store/index.d.ts",
1421
- "default": "./min/store/index.js"
1422
- }
1423
- },
1424
- "./min/store/with-schemas": {
1425
- "default": {
1426
- "types": "./@types/store/with-schemas/index.d.ts",
1427
- "default": "./min/store/with-schemas/index.js"
1428
- }
1429
- },
1430
- "./min/metrics": {
1431
- "default": {
1432
- "types": "./@types/metrics/index.d.ts",
1433
- "default": "./min/metrics/index.js"
1434
- }
1435
- },
1436
- "./min/metrics/with-schemas": {
1437
- "default": {
1438
- "types": "./@types/metrics/with-schemas/index.d.ts",
1439
- "default": "./min/metrics/with-schemas/index.js"
1440
- }
1441
- },
1442
- "./min/indexes": {
1443
- "default": {
1444
- "types": "./@types/indexes/index.d.ts",
1445
- "default": "./min/indexes/index.js"
1446
- }
1447
- },
1448
- "./min/indexes/with-schemas": {
1449
- "default": {
1450
- "types": "./@types/indexes/with-schemas/index.d.ts",
1451
- "default": "./min/indexes/with-schemas/index.js"
1452
- }
1453
- },
1454
- "./min/relationships": {
1455
- "default": {
1456
- "types": "./@types/relationships/index.d.ts",
1457
- "default": "./min/relationships/index.js"
1458
- }
1459
- },
1460
- "./min/relationships/with-schemas": {
1461
- "default": {
1462
- "types": "./@types/relationships/with-schemas/index.d.ts",
1463
- "default": "./min/relationships/with-schemas/index.js"
1464
- }
1465
- },
1466
- "./min/queries": {
1467
- "default": {
1468
- "types": "./@types/queries/index.d.ts",
1469
- "default": "./min/queries/index.js"
1470
- }
1471
- },
1472
- "./min/queries/with-schemas": {
1473
- "default": {
1474
- "types": "./@types/queries/with-schemas/index.d.ts",
1475
- "default": "./min/queries/with-schemas/index.js"
1476
- }
1477
- },
1478
- "./min/checkpoints": {
1479
- "default": {
1480
- "types": "./@types/checkpoints/index.d.ts",
1481
- "default": "./min/checkpoints/index.js"
1482
- }
1483
- },
1484
- "./min/checkpoints/with-schemas": {
1485
- "default": {
1486
- "types": "./@types/checkpoints/with-schemas/index.d.ts",
1487
- "default": "./min/checkpoints/with-schemas/index.js"
1488
- }
1489
- },
1490
- "./min/mergeable-store": {
1491
- "default": {
1492
- "types": "./@types/mergeable-store/index.d.ts",
1493
- "default": "./min/mergeable-store/index.js"
1494
- }
1495
- },
1496
- "./min/mergeable-store/with-schemas": {
1497
- "default": {
1498
- "types": "./@types/mergeable-store/with-schemas/index.d.ts",
1499
- "default": "./min/mergeable-store/with-schemas/index.js"
1500
- }
1501
- },
1502
- "./min/common": {
1503
- "default": {
1504
- "types": "./@types/common/index.d.ts",
1505
- "default": "./min/common/index.js"
1506
- }
1507
- },
1508
- "./min/common/with-schemas": {
1509
- "default": {
1510
- "types": "./@types/common/with-schemas/index.d.ts",
1511
- "default": "./min/common/with-schemas/index.js"
1512
- }
1513
1513
  }
1514
1514
  }
1515
1515
  }