@korajs/devtools 1.0.0-beta.1 → 1.0.0-beta.11
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/{chunk-K3QOD2IY.js → chunk-ZWXYLFF7.js} +92 -6
- package/dist/chunk-ZWXYLFF7.js.map +1 -0
- package/dist/extension/panel.cjs +33 -0
- package/dist/extension/panel.cjs.map +1 -1
- package/dist/extension/panel.js +33 -0
- package/dist/extension/panel.js.map +1 -1
- package/dist/index.cjs +99 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/overlay.cjs +91 -5
- package/dist/overlay.cjs.map +1 -1
- package/dist/overlay.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-K3QOD2IY.js.map +0 -1
package/dist/extension/panel.js
CHANGED
|
@@ -428,10 +428,16 @@ var EVENT_TYPE_CATEGORIES = {
|
|
|
428
428
|
"sync:connected": "sync",
|
|
429
429
|
"sync:disconnected": "sync",
|
|
430
430
|
"sync:auth-failed": "sync",
|
|
431
|
+
"sync:suspended": "sync",
|
|
431
432
|
"sync:clock-skew": "sync",
|
|
432
433
|
"sync:clock-rebase": "sync",
|
|
433
434
|
"sync:schema-mismatch": "sync",
|
|
434
435
|
"sync:apply-failed": "sync",
|
|
436
|
+
"sync:apply-blocked": "sync",
|
|
437
|
+
"sync:apply-retrying": "sync",
|
|
438
|
+
"sync:apply-recovered": "sync",
|
|
439
|
+
"sync:apply-abandoned": "sync",
|
|
440
|
+
"sync:operation-rejected": "sync",
|
|
435
441
|
"sync:sent": "sync",
|
|
436
442
|
"sync:received": "sync",
|
|
437
443
|
"sync:acknowledged": "sync",
|
|
@@ -442,11 +448,16 @@ var EVENT_TYPE_CATEGORIES = {
|
|
|
442
448
|
"sync:diagnostics": "sync",
|
|
443
449
|
"sync:bandwidth": "sync",
|
|
444
450
|
"sync:initial-sync-progress": "sync",
|
|
451
|
+
"sync:delivery-gap": "sync",
|
|
452
|
+
"sync:delivery-stalled": "sync",
|
|
445
453
|
"awareness:updated": "sync",
|
|
446
454
|
"state-machine:transition": "operation",
|
|
447
455
|
"state-machine:rejected": "operation",
|
|
448
456
|
"store:persistence-error": "connection",
|
|
449
457
|
"store:quota-exceeded": "connection",
|
|
458
|
+
"store:storage-fallback": "connection",
|
|
459
|
+
"store:opfs-unavailable": "connection",
|
|
460
|
+
"store:db-name-collision": "connection",
|
|
450
461
|
"replay:completed": "operation"
|
|
451
462
|
};
|
|
452
463
|
function eventTypeToCategory(type) {
|
|
@@ -712,6 +723,8 @@ function timelineLabel(event) {
|
|
|
712
723
|
return "sync disconnected";
|
|
713
724
|
case "sync:auth-failed":
|
|
714
725
|
return "sync auth failed";
|
|
726
|
+
case "sync:suspended":
|
|
727
|
+
return `sync suspended (${event.reason})`;
|
|
715
728
|
case "sync:clock-skew":
|
|
716
729
|
return `clock skew ${Math.round(event.skewMs / 1e3)}s (${event.severity})`;
|
|
717
730
|
case "sync:clock-rebase":
|
|
@@ -720,6 +733,16 @@ function timelineLabel(event) {
|
|
|
720
733
|
return `schema mismatch client ${event.clientSchemaVersion} server ${event.serverSchemaVersion}`;
|
|
721
734
|
case "sync:apply-failed":
|
|
722
735
|
return `sync apply failed ${event.operationId}`;
|
|
736
|
+
case "sync:apply-blocked":
|
|
737
|
+
return `sync apply blocked ${event.failure.collection}/${event.failure.recordId}`;
|
|
738
|
+
case "sync:apply-retrying":
|
|
739
|
+
return `sync apply retry ${event.failure.collection}/${event.failure.recordId}`;
|
|
740
|
+
case "sync:apply-recovered":
|
|
741
|
+
return `sync apply recovered ${event.failure.collection}/${event.failure.recordId}`;
|
|
742
|
+
case "sync:apply-abandoned":
|
|
743
|
+
return `sync apply abandoned ${event.failure.collection}/${event.failure.recordId}`;
|
|
744
|
+
case "sync:operation-rejected":
|
|
745
|
+
return `sync op rejected ${event.collection}/${event.recordId} (${event.code})`;
|
|
723
746
|
case "sync:sent":
|
|
724
747
|
return `sync sent ${event.batchSize}`;
|
|
725
748
|
case "sync:received":
|
|
@@ -740,6 +763,10 @@ function timelineLabel(event) {
|
|
|
740
763
|
return `bandwidth ${event.direction} ${event.bytesPerSecond}B/s`;
|
|
741
764
|
case "sync:initial-sync-progress":
|
|
742
765
|
return `initial sync ${Math.round(event.progress * 100)}%`;
|
|
766
|
+
case "sync:delivery-gap":
|
|
767
|
+
return `delivery gap expected ${event.expectedBase} received ${event.receivedBase}`;
|
|
768
|
+
case "sync:delivery-stalled":
|
|
769
|
+
return `delivery stalled at ${event.watermark} (${event.repeatCount} repeats)`;
|
|
743
770
|
case "awareness:updated":
|
|
744
771
|
return `awareness ${event.states.size} peers`;
|
|
745
772
|
case "state-machine:transition":
|
|
@@ -750,6 +777,12 @@ function timelineLabel(event) {
|
|
|
750
777
|
return `store persistence error ${event.message}`;
|
|
751
778
|
case "store:quota-exceeded":
|
|
752
779
|
return "store quota exceeded";
|
|
780
|
+
case "store:storage-fallback":
|
|
781
|
+
return `store fallback ${event.from} \u2192 ${event.to}`;
|
|
782
|
+
case "store:opfs-unavailable":
|
|
783
|
+
return `store OPFS unavailable (${event.reason}), running in memory`;
|
|
784
|
+
case "store:db-name-collision":
|
|
785
|
+
return `store db-name collision ${event.dbName}`;
|
|
753
786
|
case "replay:completed":
|
|
754
787
|
return `replay ${event.operationsApplied} ops`;
|
|
755
788
|
}
|