@rpcbase/client 0.441.0 → 0.443.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.
package/dist/index.js
CHANGED
|
@@ -6,8 +6,8 @@ import { getNavigationGuards, createRoutesFromElements, createBrowserRouter, Rou
|
|
|
6
6
|
import { hydrateRoot } from "react-dom/client";
|
|
7
7
|
import { r as reportClientException } from "./errorReporting-CVoUUKxW.js";
|
|
8
8
|
import { s } from "./errorReporting-CVoUUKxW.js";
|
|
9
|
-
import { h as hydrateRtsFromWindow, u as useQuery } from "./useQuery-
|
|
10
|
-
import { R, S, c as c2, a, p, b, d, e } from "./useQuery-
|
|
9
|
+
import { h as hydrateRtsFromWindow, u as useQuery } from "./useQuery-BOjtIBwv.js";
|
|
10
|
+
import { R, S, c as c2, a, p, b, d, e } from "./useQuery-BOjtIBwv.js";
|
|
11
11
|
import { r as requireToString, g as getDefaultExportFromCjs, t as throttle$1 } from "./throttle-CXOc9Dto.js";
|
|
12
12
|
const emptyUnsubscribe = () => {
|
|
13
13
|
};
|
package/dist/rts/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as serializeRtsQueryValue, f as computeRtsQueryKey, g as useRtsSsrRuntime, p as peekHydratedRtsCount, a as consumeHydratedRtsCount, r as registerCount, i as reconnect, j as disconnect } from "../useQuery-
|
|
2
|
-
import { R, S, k, c, l, m, n, o, q, t, v, w, h, x, y, z, b, d, e, A, B, C, D, E, F, G, H, I, u } from "../useQuery-
|
|
1
|
+
import { s as serializeRtsQueryValue, f as computeRtsQueryKey, g as useRtsSsrRuntime, p as peekHydratedRtsCount, a as consumeHydratedRtsCount, r as registerCount, i as reconnect, j as disconnect } from "../useQuery-BOjtIBwv.js";
|
|
2
|
+
import { R, S, k, c, l, m, n, o, q, t, v, w, h, x, y, z, b, d, e, A, B, C, D, E, F, G, H, I, u } from "../useQuery-BOjtIBwv.js";
|
|
3
3
|
import { c as c2 } from "react/compiler-runtime";
|
|
4
4
|
import { useState, useRef, useEffect } from "react";
|
|
5
5
|
const normalizeCount = (value) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pouchStore.d.ts","sourceRoot":"","sources":["../../src/rts/pouchStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAW5E,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;KAAE,CAAC,CAAA;IACxF,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAC/D,OAAO,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;AA4JD,eAAO,MAAM,sBAAsB,GAAI,QAAQ,mBAAmB,GAAG,IAAI,SAIxE,CAAA;AAED,eAAO,MAAM,aAAa,GAAU,WAAW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,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,EACtD,KAAK,MAAM,KACV,OAAO,CAAC,IAAI,CAqCd,CAAA;AAED,eAAO,MAAM,UAAU,GAAU,WAAW,MAAM,EAAE,KAAK,MAAM,EAAE,EAAE,KAAK,MAAM,KAAG,OAAO,CAAC,IAAI,CAsB5F,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAU,WAAW,MAAM,EAAE,KAAK,MAAM,KAAG,OAAO,CAAC,IAAI,CAOpF,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,uBAAuB;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,KAAG,MA4ClG,CAAA;AAED,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,IAAI,CAI1D,CAAA"}
|
|
@@ -419,12 +419,28 @@ const replaceQueryKeys = (value, replaceKey) => {
|
|
|
419
419
|
}
|
|
420
420
|
return next;
|
|
421
421
|
};
|
|
422
|
+
const isRecord = (value) => Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
423
|
+
const splitPath = (path) => path.split(".").map((part) => part.trim()).filter(Boolean);
|
|
422
424
|
const getKeys = (obj, parentKey = "") => {
|
|
423
425
|
const keys = [];
|
|
424
426
|
for (const key of Object.keys(obj)) {
|
|
425
427
|
const nextKey = parentKey ? `${parentKey}.${key}` : key;
|
|
426
428
|
const value = obj[key];
|
|
427
|
-
if (
|
|
429
|
+
if (Array.isArray(value)) {
|
|
430
|
+
const arrayKeys = /* @__PURE__ */ new Set();
|
|
431
|
+
for (const item of value) {
|
|
432
|
+
if (isRecord(item)) {
|
|
433
|
+
for (const nestedKey of getKeys(item, nextKey)) {
|
|
434
|
+
arrayKeys.add(nestedKey);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
if (arrayKeys.size > 0) {
|
|
439
|
+
keys.push(...arrayKeys);
|
|
440
|
+
} else {
|
|
441
|
+
keys.push(nextKey);
|
|
442
|
+
}
|
|
443
|
+
} else if (isRecord(value)) {
|
|
428
444
|
keys.push(...getKeys(value, nextKey));
|
|
429
445
|
} else {
|
|
430
446
|
keys.push(nextKey);
|
|
@@ -444,41 +460,74 @@ const satisfiesProjection = (doc, projection) => {
|
|
|
444
460
|
}
|
|
445
461
|
return true;
|
|
446
462
|
};
|
|
463
|
+
const collectValuesAtPath = (value, parts, index) => {
|
|
464
|
+
if (index >= parts.length) return [value];
|
|
465
|
+
if (Array.isArray(value)) {
|
|
466
|
+
return value.flatMap((item) => collectValuesAtPath(item, parts, index));
|
|
467
|
+
}
|
|
468
|
+
if (!isRecord(value)) return [void 0];
|
|
469
|
+
return collectValuesAtPath(value[parts[index]], parts, index + 1);
|
|
470
|
+
};
|
|
447
471
|
const getValueAtPath = (doc, path) => {
|
|
448
|
-
const parts = path
|
|
472
|
+
const parts = splitPath(path);
|
|
449
473
|
if (!parts.length) return void 0;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
474
|
+
const values = collectValuesAtPath(doc, parts, 0);
|
|
475
|
+
if (values.length === 0) return void 0;
|
|
476
|
+
if (values.length === 1) return values[0];
|
|
477
|
+
return values;
|
|
478
|
+
};
|
|
479
|
+
const pathCrossesArrayBeforeLeaf = (value, parts, index = 0) => {
|
|
480
|
+
if (index >= parts.length - 1) return false;
|
|
481
|
+
if (!isRecord(value)) return false;
|
|
482
|
+
const next = value[parts[index]];
|
|
483
|
+
if (Array.isArray(next)) return true;
|
|
484
|
+
return pathCrossesArrayBeforeLeaf(next, parts, index + 1);
|
|
485
|
+
};
|
|
486
|
+
const assignValueAtPath = (current, parts, index, value, valuesQueue) => {
|
|
487
|
+
const key = parts[index];
|
|
488
|
+
if (index === parts.length - 1) {
|
|
489
|
+
current[key] = valuesQueue ? valuesQueue.shift() : value;
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
492
|
+
const next = current[key];
|
|
493
|
+
if (Array.isArray(next)) {
|
|
494
|
+
for (const item of next) {
|
|
495
|
+
if (isRecord(item)) {
|
|
496
|
+
assignValueAtPath(item, parts, index + 1, value, valuesQueue);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
return;
|
|
500
|
+
}
|
|
501
|
+
if (!isRecord(next)) {
|
|
502
|
+
current[key] = {};
|
|
454
503
|
}
|
|
455
|
-
|
|
504
|
+
assignValueAtPath(current[key], parts, index + 1, value, valuesQueue);
|
|
456
505
|
};
|
|
457
506
|
const setValueAtPath = (doc, path, value) => {
|
|
458
|
-
const parts = path
|
|
507
|
+
const parts = splitPath(path);
|
|
459
508
|
if (!parts.length) return;
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
509
|
+
const valuesQueue = pathCrossesArrayBeforeLeaf(doc, parts) && Array.isArray(value) ? [...value] : void 0;
|
|
510
|
+
assignValueAtPath(doc, parts, 0, value, valuesQueue);
|
|
511
|
+
};
|
|
512
|
+
const unsetValueAtPathParts = (current, parts, index) => {
|
|
513
|
+
if (Array.isArray(current)) {
|
|
514
|
+
for (const item of current) {
|
|
515
|
+
unsetValueAtPathParts(item, parts, index);
|
|
466
516
|
}
|
|
467
|
-
|
|
517
|
+
return;
|
|
468
518
|
}
|
|
469
|
-
current
|
|
519
|
+
if (!isRecord(current)) return;
|
|
520
|
+
const key = parts[index];
|
|
521
|
+
if (index === parts.length - 1) {
|
|
522
|
+
delete current[key];
|
|
523
|
+
return;
|
|
524
|
+
}
|
|
525
|
+
unsetValueAtPathParts(current[key], parts, index + 1);
|
|
470
526
|
};
|
|
471
527
|
const unsetValueAtPath = (doc, path) => {
|
|
472
|
-
const parts = path
|
|
528
|
+
const parts = splitPath(path);
|
|
473
529
|
if (!parts.length) return;
|
|
474
|
-
|
|
475
|
-
for (let i = 0; i < parts.length - 1; i += 1) {
|
|
476
|
-
const key = parts[i];
|
|
477
|
-
const next = current[key];
|
|
478
|
-
if (!next || typeof next !== "object" || Array.isArray(next)) return;
|
|
479
|
-
current = next;
|
|
480
|
-
}
|
|
481
|
-
delete current[parts[parts.length - 1]];
|
|
530
|
+
unsetValueAtPathParts(doc, parts, 0);
|
|
482
531
|
};
|
|
483
532
|
const cloneDoc = (doc) => {
|
|
484
533
|
try {
|
|
@@ -498,6 +547,36 @@ const toProjectionSpec = (projection) => {
|
|
|
498
547
|
}
|
|
499
548
|
return spec;
|
|
500
549
|
};
|
|
550
|
+
const copyValueAtPath = (source, target, parts, index = 0) => {
|
|
551
|
+
if (!isRecord(source)) return false;
|
|
552
|
+
const key = parts[index];
|
|
553
|
+
const sourceValue = source[key];
|
|
554
|
+
if (sourceValue === void 0) return false;
|
|
555
|
+
if (index === parts.length - 1) {
|
|
556
|
+
target[key] = cloneDoc(sourceValue);
|
|
557
|
+
return true;
|
|
558
|
+
}
|
|
559
|
+
if (Array.isArray(sourceValue)) {
|
|
560
|
+
const existing = Array.isArray(target[key]) ? target[key] : [];
|
|
561
|
+
let copiedAny = false;
|
|
562
|
+
const nextArray = sourceValue.map((item, itemIndex) => {
|
|
563
|
+
const currentTarget = isRecord(existing[itemIndex]) ? existing[itemIndex] : {};
|
|
564
|
+
if (copyValueAtPath(item, currentTarget, parts, index + 1)) {
|
|
565
|
+
copiedAny = true;
|
|
566
|
+
}
|
|
567
|
+
return currentTarget;
|
|
568
|
+
});
|
|
569
|
+
if (copiedAny || sourceValue.length === 0) {
|
|
570
|
+
target[key] = nextArray;
|
|
571
|
+
return true;
|
|
572
|
+
}
|
|
573
|
+
return false;
|
|
574
|
+
}
|
|
575
|
+
const nextTarget = isRecord(target[key]) ? target[key] : {};
|
|
576
|
+
if (!copyValueAtPath(sourceValue, nextTarget, parts, index + 1)) return false;
|
|
577
|
+
target[key] = nextTarget;
|
|
578
|
+
return true;
|
|
579
|
+
};
|
|
501
580
|
const applyProjection = (doc, projection) => {
|
|
502
581
|
const spec = toProjectionSpec(projection);
|
|
503
582
|
const includeKeys = Object.keys(spec).filter((key) => spec[key] === 1);
|
|
@@ -505,8 +584,8 @@ const applyProjection = (doc, projection) => {
|
|
|
505
584
|
if (includeKeys.length > 0) {
|
|
506
585
|
const projected2 = {};
|
|
507
586
|
for (const key of includeKeys) {
|
|
508
|
-
const
|
|
509
|
-
if (
|
|
587
|
+
const parts = splitPath(key);
|
|
588
|
+
if (parts.length > 0) copyValueAtPath(doc, projected2, parts);
|
|
510
589
|
}
|
|
511
590
|
if (spec._id !== 0 && Object.hasOwn(doc, "_id")) {
|
|
512
591
|
projected2._id = doc._id;
|
|
@@ -655,21 +734,24 @@ const addWriteDoc = (writes, modelName, doc) => {
|
|
|
655
734
|
const sanitizePopulatedDoc = (doc, populate, writes) => {
|
|
656
735
|
const next = cloneDoc(doc);
|
|
657
736
|
for (const entry of populate) {
|
|
737
|
+
const pathParts = splitPath(entry.path);
|
|
738
|
+
const crossesArray = pathCrossesArrayBeforeLeaf(next, pathParts);
|
|
658
739
|
const value = getValueAtPath(next, entry.path);
|
|
659
740
|
if (value === void 0) continue;
|
|
660
741
|
if (Array.isArray(value)) {
|
|
661
742
|
const ids = [];
|
|
743
|
+
const nextValues = [];
|
|
662
744
|
for (const candidate of value) {
|
|
663
745
|
const id2 = extractDocId(candidate);
|
|
664
|
-
if (
|
|
665
|
-
|
|
746
|
+
if (id2) ids.push(id2);
|
|
747
|
+
if (crossesArray) nextValues.push(id2 || null);
|
|
666
748
|
if (!entry.model) continue;
|
|
667
749
|
if (!candidate || typeof candidate !== "object" || Array.isArray(candidate)) continue;
|
|
668
750
|
const candidateDoc = candidate;
|
|
669
751
|
const nested2 = entry.populate?.length ? sanitizePopulatedDoc(candidateDoc, entry.populate, writes) : cloneDoc(candidateDoc);
|
|
670
752
|
addWriteDoc(writes, entry.model, nested2);
|
|
671
753
|
}
|
|
672
|
-
setValueAtPath(next, entry.path, ids);
|
|
754
|
+
setValueAtPath(next, entry.path, crossesArray ? nextValues : ids);
|
|
673
755
|
continue;
|
|
674
756
|
}
|
|
675
757
|
const id = extractDocId(value);
|
|
@@ -766,13 +848,18 @@ const hydratePopulateEntries = async ({
|
|
|
766
848
|
};
|
|
767
849
|
}
|
|
768
850
|
const descriptors = currentDocs.map((doc) => {
|
|
851
|
+
const pathParts = splitPath(entry.path);
|
|
852
|
+
const crossesArray = pathCrossesArrayBeforeLeaf(doc, pathParts);
|
|
769
853
|
const rawValue = getValueAtPath(doc, entry.path);
|
|
770
854
|
const isArray = Array.isArray(rawValue);
|
|
771
|
-
const
|
|
855
|
+
const values = isArray ? rawValue : [rawValue];
|
|
856
|
+
const ids = values.map((candidate) => extractDocId(candidate)).filter(Boolean);
|
|
772
857
|
return {
|
|
773
858
|
doc,
|
|
774
859
|
hasValue: rawValue !== void 0,
|
|
775
860
|
isArray,
|
|
861
|
+
crossesArray,
|
|
862
|
+
values,
|
|
776
863
|
ids
|
|
777
864
|
};
|
|
778
865
|
});
|
|
@@ -824,6 +911,14 @@ const hydratePopulateEntries = async ({
|
|
|
824
911
|
}
|
|
825
912
|
for (const descriptor of descriptors) {
|
|
826
913
|
if (!descriptor.hasValue) continue;
|
|
914
|
+
if (descriptor.isArray && descriptor.crossesArray) {
|
|
915
|
+
const values = descriptor.values.map((candidate) => {
|
|
916
|
+
const id = extractDocId(candidate);
|
|
917
|
+
return id ? populatedDocsById.get(id) ?? null : null;
|
|
918
|
+
});
|
|
919
|
+
setValueAtPath(descriptor.doc, entry.path, values);
|
|
920
|
+
continue;
|
|
921
|
+
}
|
|
827
922
|
if (!descriptor.ids.length) {
|
|
828
923
|
setValueAtPath(descriptor.doc, entry.path, descriptor.isArray ? [] : null);
|
|
829
924
|
continue;
|
|
@@ -2774,4 +2869,4 @@ export {
|
|
|
2774
2869
|
onMessage as y,
|
|
2775
2870
|
onRtsMessage as z
|
|
2776
2871
|
};
|
|
2777
|
-
//# sourceMappingURL=useQuery-
|
|
2872
|
+
//# sourceMappingURL=useQuery-BOjtIBwv.js.map
|