cry-synced-db-client 0.1.160 → 0.1.162
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 +2 -8
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2888,11 +2888,6 @@ function fixDotnetArrays(changes, serverRev, baseRev) {
|
|
|
2888
2888
|
return cleaned;
|
|
2889
2889
|
}
|
|
2890
2890
|
|
|
2891
|
-
// src/utils/translateBracketPaths.ts
|
|
2892
|
-
function translateBracketPathsToIndex(changes, _entity) {
|
|
2893
|
-
return changes;
|
|
2894
|
-
}
|
|
2895
|
-
|
|
2896
2891
|
// src/utils/stripServerManaged.ts
|
|
2897
2892
|
var SERVER_MANAGED_KEYS2 = /* @__PURE__ */ new Set(["_ts", "_rev", "_csq"]);
|
|
2898
2893
|
function isObjectIdLike3(v) {
|
|
@@ -3142,7 +3137,7 @@ var _SyncEngine = class _SyncEngine {
|
|
|
3142
3137
|
const delta = dirtyChangesMap.get(String(fullItem._id));
|
|
3143
3138
|
if (delta) {
|
|
3144
3139
|
const currentServerRev = typeof fullItem._rev === "number" ? fullItem._rev : void 0;
|
|
3145
|
-
updates.push({ _id: fullItem._id, delta, currentServerRev
|
|
3140
|
+
updates.push({ _id: fullItem._id, delta, currentServerRev });
|
|
3146
3141
|
} else {
|
|
3147
3142
|
skipped.push({ _id: String(fullItem._id), reason: "no-delta-for-fullitem" });
|
|
3148
3143
|
}
|
|
@@ -3209,10 +3204,9 @@ var _SyncEngine = class _SyncEngine {
|
|
|
3209
3204
|
item.currentServerRev,
|
|
3210
3205
|
dirtyBaseRev
|
|
3211
3206
|
);
|
|
3212
|
-
const cleanedChanges = translateBracketPathsToIndex(fixed, item.fullItem);
|
|
3213
3207
|
return {
|
|
3214
3208
|
_id: item._id,
|
|
3215
|
-
update:
|
|
3209
|
+
update: fixed
|
|
3216
3210
|
};
|
|
3217
3211
|
}),
|
|
3218
3212
|
deletes: []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cry-synced-db-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.162",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"test": "bun test test/*.test.ts test/restProxy/*.test.ts && vitest run",
|
|
24
24
|
"test:bun": "bun test test/*.test.ts test/restProxy/*.test.ts",
|
|
25
25
|
"test:node-only": "vitest run",
|
|
26
|
+
"test:real-mongo": "USE_REAL_MONGO=1 bun test test/bracketArrayPathsAcrossWriters.test.ts test/restProxy/*.test.ts",
|
|
26
27
|
"prepublishOnly": "bun run build"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
@@ -36,7 +37,6 @@
|
|
|
36
37
|
"vitest": "^4.1.5"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"cry-db": "^2.4.33",
|
|
40
40
|
"cry-helpers": "^2.1.194",
|
|
41
41
|
"msgpackr": "^2.0.1",
|
|
42
42
|
"notepack": "^0.0.2",
|