tinybase 7.2.0-beta.2 → 7.2.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 (44) hide show
  1. package/@types/queries/index.d.ts +333 -4
  2. package/@types/queries/with-schemas/index.d.ts +359 -4
  3. package/@types/ui-react/index.d.ts +477 -8
  4. package/@types/ui-react/with-schemas/index.d.ts +519 -8
  5. package/agents.md +34 -0
  6. package/index.js +100 -18
  7. package/min/index.js +1 -1
  8. package/min/index.js.gz +0 -0
  9. package/min/omni/index.js +1 -1
  10. package/min/omni/index.js.gz +0 -0
  11. package/min/omni/with-schemas/index.js +1 -1
  12. package/min/omni/with-schemas/index.js.gz +0 -0
  13. package/min/queries/index.js +1 -1
  14. package/min/queries/index.js.gz +0 -0
  15. package/min/queries/with-schemas/index.js +1 -1
  16. package/min/queries/with-schemas/index.js.gz +0 -0
  17. package/min/ui-react/index.js +1 -1
  18. package/min/ui-react/index.js.gz +0 -0
  19. package/min/ui-react/with-schemas/index.js +1 -1
  20. package/min/ui-react/with-schemas/index.js.gz +0 -0
  21. package/min/ui-react-dom/index.js +1 -1
  22. package/min/ui-react-dom/index.js.gz +0 -0
  23. package/min/ui-react-dom/with-schemas/index.js +1 -1
  24. package/min/ui-react-dom/with-schemas/index.js.gz +0 -0
  25. package/min/ui-react-inspector/index.js +1 -1
  26. package/min/ui-react-inspector/index.js.gz +0 -0
  27. package/min/ui-react-inspector/with-schemas/index.js +1 -1
  28. package/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
  29. package/min/with-schemas/index.js +1 -1
  30. package/min/with-schemas/index.js.gz +0 -0
  31. package/omni/index.js +173 -48
  32. package/omni/with-schemas/index.js +173 -48
  33. package/package.json +3 -3
  34. package/queries/index.js +120 -18
  35. package/queries/with-schemas/index.js +120 -18
  36. package/readme.md +13 -13
  37. package/releases.md +40 -40
  38. package/ui-react/index.js +98 -30
  39. package/ui-react/with-schemas/index.js +98 -30
  40. package/ui-react-dom/index.js +38 -15
  41. package/ui-react-dom/with-schemas/index.js +38 -15
  42. package/ui-react-inspector/index.js +40 -17
  43. package/ui-react-inspector/with-schemas/index.js +40 -17
  44. package/with-schemas/index.js +100 -18
@@ -132,6 +132,10 @@ const arrayEvery = (array, cb) => array.every(cb);
132
132
  const arrayIsEqual = (array1, array2) =>
133
133
  size(array1) === size(array2) &&
134
134
  arrayEvery(array1, (value1, index) => array2[index] === value1);
135
+ const arrayOrValueEqual = (value1, value2) =>
136
+ isArray(value1) && isArray(value2)
137
+ ? arrayIsEqual(value1, value2)
138
+ : value1 === value2;
135
139
  const arrayIsSorted = (array, sorter) =>
136
140
  arrayEvery(
137
141
  array,
@@ -227,16 +231,23 @@ const objMap = (obj, cb) =>
227
231
  const objValues = (obj) => object.values(obj);
228
232
  const objSize = (obj) => size(objIds(obj));
229
233
  const objIsEmpty = (obj) => isObject(obj) && objSize(obj) == 0;
230
- const objIsEqual = (obj1, obj2) => {
234
+
235
+ /* istanbul ignore next */
236
+ const objIsEqual = (
237
+ obj1,
238
+ obj2,
239
+ isEqual = (value1, value2) => value1 === value2,
240
+ ) => {
231
241
  const entries1 = objEntries(obj1);
232
242
  return (
233
243
  size(entries1) === objSize(obj2) &&
234
244
  arrayEvery(entries1, ([index, value1]) =>
235
245
  isObject(value1)
236
- ? isObject(obj2[index])
246
+ ? /* istanbul ignore next */
247
+ isObject(obj2[index])
237
248
  ? objIsEqual(obj2[index], value1)
238
249
  : false
239
- : obj2[index] === value1,
250
+ : isEqual(value1, obj2[index]),
240
251
  )
241
252
  );
242
253
  };
@@ -5803,6 +5814,8 @@ const createQueries = getCreateFunction((store) => {
5803
5814
  const preStore = createStore();
5804
5815
  const resultStore = createStore();
5805
5816
  const preStoreListenerIds = mapNew();
5817
+ const paramValuesListeners = mapNew();
5818
+ const paramValueListeners = mapNew();
5806
5819
  const {
5807
5820
  addListener,
5808
5821
  callListeners,
@@ -5825,7 +5838,7 @@ const createQueries = getCreateFunction((store) => {
5825
5838
  delStoreListeners,
5826
5839
  ] = getDefinableFunctions(
5827
5840
  store,
5828
- () => [() => {}, mapNew()],
5841
+ () => [],
5829
5842
  getUndefined,
5830
5843
  addListener,
5831
5844
  callListeners,
@@ -5865,8 +5878,10 @@ const createQueries = getCreateFunction((store) => {
5865
5878
  ),
5866
5879
  );
5867
5880
  const setQueryDefinition = (queryId, tableId, build, paramValues = {}) => {
5881
+ const oldParamValues = getParamValues(queryId);
5868
5882
  setDefinition(queryId, tableId);
5869
5883
  setQueryArgs(queryId, [build, objToMap(paramValues)]);
5884
+ callParamListeners(queryId, oldParamValues, paramValues);
5870
5885
  resetPreStores(queryId);
5871
5886
  const [, paramsMap] = getQueryArgs(queryId);
5872
5887
  const selectEntries = [];
@@ -6195,31 +6210,76 @@ const createQueries = getCreateFunction((store) => {
6195
6210
  );
6196
6211
  return queries;
6197
6212
  };
6213
+ const callParamListeners = (queryId, oldParamValues, newParamValues) => {
6214
+ const allParamIds = setNew([
6215
+ ...objIds(oldParamValues),
6216
+ ...objIds(newParamValues),
6217
+ ]);
6218
+ let changed = 0;
6219
+ collForEach(allParamIds, (paramId) => {
6220
+ const newParamValue = objGet(newParamValues, paramId);
6221
+ if (!arrayOrValueEqual(objGet(oldParamValues, paramId), newParamValue)) {
6222
+ changed = 1;
6223
+ callListeners(paramValueListeners, [queryId, paramId], newParamValue);
6224
+ }
6225
+ });
6226
+ if (changed) {
6227
+ callListeners(paramValuesListeners, [queryId], newParamValues);
6228
+ }
6229
+ };
6198
6230
  const delQueryDefinition = (queryId) => {
6231
+ const oldParamValues = getParamValues(queryId);
6199
6232
  resetPreStores(queryId);
6200
6233
  delDefinition(queryId);
6234
+ callParamListeners(queryId, oldParamValues, {});
6201
6235
  return queries;
6202
6236
  };
6203
- const setParamValues = (queryId, paramValues) => {
6204
- ifNotUndefined(getQueryArgs(queryId), (definition) =>
6205
- resultStore.transaction(() =>
6206
- setQueryDefinition(
6207
- queryId,
6208
- getTableId(queryId),
6209
- definition[0],
6210
- paramValues,
6211
- ),
6212
- ),
6213
- );
6237
+ const setParamValues = (queryId, paramValues, force = 0) => {
6238
+ ifNotUndefined(getQueryArgs(queryId), ([definition, oldParamValues]) => {
6239
+ if (
6240
+ force ||
6241
+ !objIsEqual(mapToObj(oldParamValues), paramValues, arrayOrValueEqual)
6242
+ ) {
6243
+ resultStore.transaction(() =>
6244
+ setQueryDefinition(
6245
+ queryId,
6246
+ getTableId(queryId),
6247
+ definition,
6248
+ paramValues,
6249
+ ),
6250
+ );
6251
+ }
6252
+ });
6214
6253
  return queries;
6215
6254
  };
6216
- const setParamValue = (queryId, paramId, value) =>
6217
- setParamValues(queryId, {
6218
- ...mapToObj(getQueryArgs(queryId)?.[1]),
6219
- [paramId]: value,
6220
- });
6255
+ const setParamValue = (queryId, paramId, value) => {
6256
+ if (!arrayOrValueEqual(getParamValue(queryId, paramId), value)) {
6257
+ setParamValues(
6258
+ queryId,
6259
+ {...getParamValues(queryId), [paramId]: value},
6260
+ 1,
6261
+ );
6262
+ }
6263
+ return queries;
6264
+ };
6265
+ const getParamValues = (queryId) => mapToObj(getQueryArgs(queryId)?.[1]);
6266
+ const getParamValue = (queryId, paramId) =>
6267
+ mapGet(getQueryArgs(queryId)?.[1], paramId);
6221
6268
  const addQueryIdsListener = (listener) =>
6222
6269
  addQueryIdsListenerImpl(() => listener(queries));
6270
+ const addParamValuesListener = (queryId, listener) =>
6271
+ addListener(
6272
+ (_, queryId2, paramValues) => listener(queries, queryId2, paramValues),
6273
+ paramValuesListeners,
6274
+ [queryId],
6275
+ );
6276
+ const addParamValueListener = (queryId, paramId, listener) =>
6277
+ addListener(
6278
+ (_, queryId2, paramId2, paramValue) =>
6279
+ listener(queries, queryId2, paramId2, paramValue),
6280
+ paramValueListeners,
6281
+ [queryId, paramId],
6282
+ );
6223
6283
  const delListener = (listenerId) => {
6224
6284
  delListenerImpl(listenerId);
6225
6285
  return queries;
@@ -6231,11 +6291,17 @@ const createQueries = getCreateFunction((store) => {
6231
6291
  transaction: _3,
6232
6292
  ...stats
6233
6293
  } = resultStore.getListenerStats();
6234
- return stats;
6294
+ return {
6295
+ ...stats,
6296
+ paramValues: collSize2(paramValuesListeners),
6297
+ paramValue: collSize3(paramValueListeners),
6298
+ };
6235
6299
  };
6236
6300
  const queries = {
6237
6301
  setQueryDefinition,
6238
6302
  delQueryDefinition,
6303
+ getParamValues,
6304
+ getParamValue,
6239
6305
  setParamValues,
6240
6306
  setParamValue,
6241
6307
  getStore,
@@ -6244,6 +6310,8 @@ const createQueries = getCreateFunction((store) => {
6244
6310
  hasQuery,
6245
6311
  getTableId,
6246
6312
  addQueryIdsListener,
6313
+ addParamValuesListener,
6314
+ addParamValueListener,
6247
6315
  delListener,
6248
6316
  destroy,
6249
6317
  getListenerStats,
@@ -7368,7 +7436,16 @@ const Provider = ({
7368
7436
  };
7369
7437
 
7370
7438
  const EMPTY_ARRAY = [];
7371
- const DEFAULTS = [{}, [], [EMPTY_ARRAY, void 0, EMPTY_ARRAY], void 0, false, 0];
7439
+ const DEFAULTS = [
7440
+ {},
7441
+ [],
7442
+ [EMPTY_ARRAY, void 0, EMPTY_ARRAY],
7443
+ {},
7444
+ void 0,
7445
+ void 0,
7446
+ false,
7447
+ 0,
7448
+ ];
7372
7449
  const IS_EQUALS = [
7373
7450
  objIsEqual,
7374
7451
  arrayIsEqual,
@@ -7379,6 +7456,9 @@ const IS_EQUALS = [
7379
7456
  currentId1 === currentId2 &&
7380
7457
  arrayIsEqual(backwardIds1, backwardIds2) &&
7381
7458
  arrayIsEqual(forwardIds1, forwardIds2),
7459
+ (paramValues1, paramValues2) =>
7460
+ objIsEqual(paramValues1, paramValues2, arrayOrValueEqual),
7461
+ arrayOrValueEqual,
7382
7462
  ];
7383
7463
  const isEqual = (thing1, thing2) => thing1 === thing2;
7384
7464
  const useCreate = (store, create, createDeps = EMPTY_ARRAY) => {
@@ -7405,7 +7485,7 @@ const useListenable = (listenable, thing, returnType, args = EMPTY_ARRAY) => {
7405
7485
  const getResult = useCallback(
7406
7486
  () => {
7407
7487
  const nextResult =
7408
- thing?.[(returnType == 4 /* Boolean */ ? _HAS : GET) + listenable]?.(
7488
+ thing?.[(returnType == 6 /* Boolean */ ? _HAS : GET) + listenable]?.(
7409
7489
  ...args,
7410
7490
  ) ?? DEFAULTS[returnType];
7411
7491
  return !(IS_EQUALS[returnType] ?? isEqual)(nextResult, lastResult.current)
@@ -7419,7 +7499,7 @@ const useListenable = (listenable, thing, returnType, args = EMPTY_ARRAY) => {
7419
7499
  (listener) =>
7420
7500
  addAndDelListener(
7421
7501
  thing,
7422
- (returnType == 4 /* Boolean */ ? HAS : EMPTY_STRING) + listenable,
7502
+ (returnType == 6 /* Boolean */ ? HAS : EMPTY_STRING) + listenable,
7423
7503
  ...args,
7424
7504
  listener,
7425
7505
  ),
@@ -7449,7 +7529,7 @@ const useSetCallback = (
7449
7529
  getDeps = EMPTY_ARRAY,
7450
7530
  then = getUndefined,
7451
7531
  thenDeps = EMPTY_ARRAY,
7452
- methodPrefix = EMPTY_STRING,
7532
+ methodPrefix,
7453
7533
  ...args
7454
7534
  ) =>
7455
7535
  useCallback(
@@ -7480,9 +7560,9 @@ const useStoreSetCallback = (
7480
7560
  storeOrStoreId,
7481
7561
  settable,
7482
7562
  get,
7483
- getDeps = EMPTY_ARRAY,
7484
- then = getUndefined,
7485
- thenDeps = EMPTY_ARRAY,
7563
+ getDeps,
7564
+ then,
7565
+ thenDeps,
7486
7566
  ...args
7487
7567
  ) =>
7488
7568
  useSetCallback(
@@ -7499,9 +7579,9 @@ const useQueriesSetCallback = (
7499
7579
  queriesOrQueriesId,
7500
7580
  settable,
7501
7581
  get,
7502
- getDeps = EMPTY_ARRAY,
7503
- then = getUndefined,
7504
- thenDeps = EMPTY_ARRAY,
7582
+ getDeps,
7583
+ then,
7584
+ thenDeps,
7505
7585
  ...args
7506
7586
  ) =>
7507
7587
  useSetCallback(
@@ -7589,7 +7669,7 @@ const useHasTables = (storeOrStoreId) =>
7589
7669
  useListenable(
7590
7670
  TABLES,
7591
7671
  useStoreOrStoreById(storeOrStoreId),
7592
- 4 /* Boolean */,
7672
+ 6 /* Boolean */,
7593
7673
  [],
7594
7674
  );
7595
7675
  const useTables = (storeOrStoreId) =>
@@ -7597,7 +7677,7 @@ const useTables = (storeOrStoreId) =>
7597
7677
  const useTableIds = (storeOrStoreId) =>
7598
7678
  useListenable(TABLE_IDS, useStoreOrStoreById(storeOrStoreId), 1 /* Array */);
7599
7679
  const useHasTable = (tableId, storeOrStoreId) =>
7600
- useListenable(TABLE$1, useStoreOrStoreById(storeOrStoreId), 4 /* Boolean */, [
7680
+ useListenable(TABLE$1, useStoreOrStoreById(storeOrStoreId), 6 /* Boolean */, [
7601
7681
  tableId,
7602
7682
  ]);
7603
7683
  const useTable = (tableId, storeOrStoreId) =>
@@ -7615,14 +7695,14 @@ const useHasTableCell = (tableId, cellId, storeOrStoreId) =>
7615
7695
  useListenable(
7616
7696
  TABLE$1 + CELL,
7617
7697
  useStoreOrStoreById(storeOrStoreId),
7618
- 4 /* Boolean */,
7698
+ 6 /* Boolean */,
7619
7699
  [tableId, cellId],
7620
7700
  );
7621
7701
  const useRowCount = (tableId, storeOrStoreId) =>
7622
7702
  useListenable(
7623
7703
  ROW_COUNT,
7624
7704
  useStoreOrStoreById(storeOrStoreId),
7625
- 5 /* Number */,
7705
+ 7 /* Number */,
7626
7706
  [tableId],
7627
7707
  );
7628
7708
  const useRowIds = (tableId, storeOrStoreId) =>
@@ -7657,7 +7737,7 @@ const useSortedRowIds = (
7657
7737
  ]),
7658
7738
  );
7659
7739
  const useHasRow = (tableId, rowId, storeOrStoreId) =>
7660
- useListenable(ROW, useStoreOrStoreById(storeOrStoreId), 4 /* Boolean */, [
7740
+ useListenable(ROW, useStoreOrStoreById(storeOrStoreId), 6 /* Boolean */, [
7661
7741
  tableId,
7662
7742
  rowId,
7663
7743
  ]);
@@ -7672,7 +7752,7 @@ const useCellIds = (tableId, rowId, storeOrStoreId) =>
7672
7752
  rowId,
7673
7753
  ]);
7674
7754
  const useHasCell = (tableId, rowId, cellId, storeOrStoreId) =>
7675
- useListenable(CELL, useStoreOrStoreById(storeOrStoreId), 4 /* Boolean */, [
7755
+ useListenable(CELL, useStoreOrStoreById(storeOrStoreId), 6 /* Boolean */, [
7676
7756
  tableId,
7677
7757
  rowId,
7678
7758
  cellId,
@@ -7681,14 +7761,14 @@ const useCell = (tableId, rowId, cellId, storeOrStoreId) =>
7681
7761
  useListenable(
7682
7762
  CELL,
7683
7763
  useStoreOrStoreById(storeOrStoreId),
7684
- 3 /* CellOrValue */,
7764
+ 5 /* CellOrValue */,
7685
7765
  [tableId, rowId, cellId],
7686
7766
  );
7687
7767
  const useHasValues = (storeOrStoreId) =>
7688
7768
  useListenable(
7689
7769
  VALUES,
7690
7770
  useStoreOrStoreById(storeOrStoreId),
7691
- 4 /* Boolean */,
7771
+ 6 /* Boolean */,
7692
7772
  [],
7693
7773
  );
7694
7774
  const useValues = (storeOrStoreId) =>
@@ -7696,14 +7776,14 @@ const useValues = (storeOrStoreId) =>
7696
7776
  const useValueIds = (storeOrStoreId) =>
7697
7777
  useListenable(VALUE_IDS, useStoreOrStoreById(storeOrStoreId), 1 /* Array */);
7698
7778
  const useHasValue = (valueId, storeOrStoreId) =>
7699
- useListenable(VALUE, useStoreOrStoreById(storeOrStoreId), 4 /* Boolean */, [
7779
+ useListenable(VALUE, useStoreOrStoreById(storeOrStoreId), 6 /* Boolean */, [
7700
7780
  valueId,
7701
7781
  ]);
7702
7782
  const useValue = (valueId, storeOrStoreId) =>
7703
7783
  useListenable(
7704
7784
  VALUE,
7705
7785
  useStoreOrStoreById(storeOrStoreId),
7706
- 3 /* CellOrValue */,
7786
+ 5 /* CellOrValue */,
7707
7787
  [valueId],
7708
7788
  );
7709
7789
  const useSetTablesCallback = (
@@ -8252,7 +8332,7 @@ const useMetric = (metricId, metricsOrMetricsId) =>
8252
8332
  useListenable(
8253
8333
  METRIC,
8254
8334
  useMetricsOrMetricsById(metricsOrMetricsId),
8255
- 3 /* CellOrValue */,
8335
+ 5 /* CellOrValue */,
8256
8336
  [metricId],
8257
8337
  );
8258
8338
  const useMetricListener = (
@@ -8345,7 +8425,7 @@ const useRemoteRowId = (
8345
8425
  useListenable(
8346
8426
  REMOTE_ROW_ID,
8347
8427
  useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
8348
- 3 /* CellOrValue */,
8428
+ 5 /* CellOrValue */,
8349
8429
  [relationshipId, localRowId],
8350
8430
  );
8351
8431
  const useLocalRowIds = (
@@ -8444,7 +8524,7 @@ const useResultRowCount = (queryId, queriesOrQueriesId) =>
8444
8524
  useListenable(
8445
8525
  RESULT + ROW_COUNT,
8446
8526
  useQueriesOrQueriesById(queriesOrQueriesId),
8447
- 5 /* Number */,
8527
+ 7 /* Number */,
8448
8528
  [queryId],
8449
8529
  );
8450
8530
  const useResultRowIds = (queryId, queriesOrQueriesId) =>
@@ -8486,7 +8566,7 @@ const useResultCell = (queryId, rowId, cellId, queriesOrQueriesId) =>
8486
8566
  useListenable(
8487
8567
  RESULT + CELL,
8488
8568
  useQueriesOrQueriesById(queriesOrQueriesId),
8489
- 3 /* CellOrValue */,
8569
+ 5 /* CellOrValue */,
8490
8570
  [queryId, rowId, cellId],
8491
8571
  );
8492
8572
  const useResultTableListener = (
@@ -8601,6 +8681,47 @@ const useResultCellListener = (
8601
8681
  listenerDeps,
8602
8682
  [queryId, rowId, cellId],
8603
8683
  );
8684
+ const useParamValues = (queryId, queriesOrQueriesId) =>
8685
+ useListenable(
8686
+ 'ParamValues',
8687
+ useQueriesOrQueriesById(queriesOrQueriesId),
8688
+ 3 /* ParamValues */,
8689
+ [queryId],
8690
+ );
8691
+ const useParamValue = (queryId, paramId, queriesOrQueriesId) =>
8692
+ useListenable(
8693
+ 'ParamValue',
8694
+ useQueriesOrQueriesById(queriesOrQueriesId),
8695
+ 4 /* ParamValue */,
8696
+ [queryId, paramId],
8697
+ );
8698
+ const useParamValuesListener = (
8699
+ queryId,
8700
+ listener,
8701
+ listenerDeps,
8702
+ queriesOrQueriesId,
8703
+ ) =>
8704
+ useListener(
8705
+ 'ParamValues',
8706
+ useQueriesOrQueriesById(queriesOrQueriesId),
8707
+ listener,
8708
+ listenerDeps,
8709
+ [queryId],
8710
+ );
8711
+ const useParamValueListener = (
8712
+ queryId,
8713
+ paramId,
8714
+ listener,
8715
+ listenerDeps,
8716
+ queriesOrQueriesId,
8717
+ ) =>
8718
+ useListener(
8719
+ 'ParamValue',
8720
+ useQueriesOrQueriesById(queriesOrQueriesId),
8721
+ listener,
8722
+ listenerDeps,
8723
+ [queryId, paramId],
8724
+ );
8604
8725
  const useSetParamValueCallback = (
8605
8726
  queryId,
8606
8727
  paramId,
@@ -8655,7 +8776,7 @@ const useCheckpoint = (checkpointId, checkpointsOrCheckpointsId) =>
8655
8776
  useListenable(
8656
8777
  CHECKPOINT,
8657
8778
  useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
8658
- 3 /* CellOrValue */,
8779
+ 5 /* CellOrValue */,
8659
8780
  [checkpointId],
8660
8781
  );
8661
8782
  const useSetCheckpointCallback = (
@@ -8802,7 +8923,7 @@ const usePersisterStatus = (persisterOrPersisterId) =>
8802
8923
  useListenable(
8803
8924
  STATUS,
8804
8925
  usePersisterOrPersisterById(persisterOrPersisterId),
8805
- 5 /* Number */,
8926
+ 7 /* Number */,
8806
8927
  [],
8807
8928
  );
8808
8929
  const usePersisterStatusListener = (
@@ -8857,7 +8978,7 @@ const useSynchronizerStatus = (synchronizerOrSynchronizerId) =>
8857
8978
  useListenable(
8858
8979
  STATUS,
8859
8980
  useSynchronizerOrSynchronizerById(synchronizerOrSynchronizerId),
8860
- 5 /* Number */,
8981
+ 7 /* Number */,
8861
8982
  [],
8862
8983
  );
8863
8984
  const useSynchronizerStatusListener = (
@@ -11632,6 +11753,10 @@ export {
11632
11753
  useMetrics,
11633
11754
  useMetricsIds,
11634
11755
  useMetricsOrMetricsById,
11756
+ useParamValue,
11757
+ useParamValueListener,
11758
+ useParamValues,
11759
+ useParamValuesListener,
11635
11760
  usePersister,
11636
11761
  usePersisterIds,
11637
11762
  usePersisterOrPersisterById,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinybase",
3
- "version": "7.2.0-beta.2",
3
+ "version": "7.2.0",
4
4
  "author": "jamesgpearce",
5
5
  "repository": "github:tinyplex/tinybase",
6
6
  "license": "MIT",
@@ -22,10 +22,10 @@
22
22
  "sideEffects": false,
23
23
  "peerDependencies": {
24
24
  "@automerge/automerge-repo": "^2.5.1",
25
- "@cloudflare/workers-types": "^4.20251210.0",
25
+ "@cloudflare/workers-types": "^4.20251212.0",
26
26
  "@electric-sql/pglite": "^0.3.14",
27
27
  "@libsql/client": "^0.15.15",
28
- "@powersync/common": "^1.43.1",
28
+ "@powersync/common": "^1.44.0",
29
29
  "@sinclair/typebox": "^0.34.41",
30
30
  "@sqlite.org/sqlite-wasm": "^3.50.4-build1",
31
31
  "@vlcn.io/crsqlite-wasm": "^0.16.0",