cry-synced-db-client 0.1.178 → 0.1.179
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/CHANGELOG.md +25 -0
- package/dist/index.js +23 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Versions
|
|
2
2
|
|
|
3
|
+
## 0.1.179 (2026-05-13)
|
|
4
|
+
|
|
5
|
+
### Non-error `console.*` calls now pass numbers as separate arguments
|
|
6
|
+
|
|
7
|
+
The console-reporting skill was updated to distinguish two flavors of
|
|
8
|
+
Rule 3:
|
|
9
|
+
|
|
10
|
+
- For `console.error` (and error-reporting `console.warn`): interpolate
|
|
11
|
+
critical info into the first-arg string. Grep-friendly single line.
|
|
12
|
+
- For progress / count / duration style writes: separate strings and
|
|
13
|
+
numbers into separate arguments. Dev console renders numbers natively
|
|
14
|
+
and the runtime avoids eager string coercion.
|
|
15
|
+
|
|
16
|
+
Five sites updated:
|
|
17
|
+
|
|
18
|
+
- `RestProxy` timing logs (`operation: 12.34 ms (total: 567.89 ms, count: 42)`)
|
|
19
|
+
in both `restCall` and `findNewerManyStream`.
|
|
20
|
+
- `SyncEngine.uploadDirtyItems` "X dirty entries but 0 resolvable" warn.
|
|
21
|
+
- `SyncEngine.uploadDirtyItems` "X items sent but not acknowledged" warn.
|
|
22
|
+
- `SyncedDb.init` "X dirty record(s) had no matching Dexie main row" warn.
|
|
23
|
+
|
|
24
|
+
`console.error` sites (including the `typeof` debug log in
|
|
25
|
+
`PendingChangesManager`) keep their fully-interpolated form — they
|
|
26
|
+
report errors and grep-friendliness wins there.
|
|
27
|
+
|
|
3
28
|
## 0.1.178 (2026-05-13)
|
|
4
29
|
|
|
5
30
|
### Error reason interpolated into every `console.*` tag line
|
package/dist/index.js
CHANGED
|
@@ -3298,7 +3298,9 @@ var _SyncEngine = class _SyncEngine {
|
|
|
3298
3298
|
}
|
|
3299
3299
|
if (updates.length === 0) {
|
|
3300
3300
|
console.warn(
|
|
3301
|
-
`[SyncEngine] uploadDirtyItems: ${collectionName} has
|
|
3301
|
+
`[SyncEngine] uploadDirtyItems: ${collectionName} has`,
|
|
3302
|
+
dirtyChanges.length,
|
|
3303
|
+
"dirty entries but 0 resolvable items",
|
|
3302
3304
|
skipped
|
|
3303
3305
|
);
|
|
3304
3306
|
if (this.callbacks.onUploadSkip) {
|
|
@@ -3571,7 +3573,9 @@ var _SyncEngine = class _SyncEngine {
|
|
|
3571
3573
|
}
|
|
3572
3574
|
if (unacked.length > 0) {
|
|
3573
3575
|
console.warn(
|
|
3574
|
-
`[SyncEngine] uploadDirtyItems: ${collection}
|
|
3576
|
+
`[SyncEngine] uploadDirtyItems: ${collection}:`,
|
|
3577
|
+
unacked.length,
|
|
3578
|
+
"items sent but not acknowledged:",
|
|
3575
3579
|
unacked
|
|
3576
3580
|
);
|
|
3577
3581
|
}
|
|
@@ -6409,7 +6413,9 @@ var _SyncedDb = class _SyncedDb {
|
|
|
6409
6413
|
}
|
|
6410
6414
|
if (orphanCount > 0) {
|
|
6411
6415
|
console.warn(
|
|
6412
|
-
`[SyncedDb] init(${name})
|
|
6416
|
+
`[SyncedDb] init(${name}):`,
|
|
6417
|
+
orphanCount,
|
|
6418
|
+
"dirty record(s) had no matching Dexie main row \u2014 included in in-mem pending next sync."
|
|
6413
6419
|
);
|
|
6414
6420
|
}
|
|
6415
6421
|
allItems.length = 0;
|
|
@@ -9385,7 +9391,13 @@ var RestProxy = class {
|
|
|
9385
9391
|
this._requestCount++;
|
|
9386
9392
|
if (this.timeRequestsPrint) {
|
|
9387
9393
|
console.log(
|
|
9388
|
-
`[RestProxy] ${operation}
|
|
9394
|
+
`[RestProxy] ${operation}:`,
|
|
9395
|
+
elapsed.toFixed(2),
|
|
9396
|
+
"ms (total:",
|
|
9397
|
+
this._totalRequestMs.toFixed(2),
|
|
9398
|
+
"ms, count:",
|
|
9399
|
+
this._requestCount,
|
|
9400
|
+
")"
|
|
9389
9401
|
);
|
|
9390
9402
|
}
|
|
9391
9403
|
}
|
|
@@ -9517,7 +9529,13 @@ var RestProxy = class {
|
|
|
9517
9529
|
this._requestCount++;
|
|
9518
9530
|
if (this.timeRequestsPrint) {
|
|
9519
9531
|
console.log(
|
|
9520
|
-
|
|
9532
|
+
"[RestProxy] findNewerManyStream:",
|
|
9533
|
+
elapsed.toFixed(2),
|
|
9534
|
+
"ms (total:",
|
|
9535
|
+
this._totalRequestMs.toFixed(2),
|
|
9536
|
+
"ms, count:",
|
|
9537
|
+
this._requestCount,
|
|
9538
|
+
")"
|
|
9521
9539
|
);
|
|
9522
9540
|
}
|
|
9523
9541
|
}
|