@lmzhen/dsh-evolution-state-json 0.3.32 → 0.3.33
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/lib/index.js +7 -0
- package/package.json +6 -6
package/lib/index.js
CHANGED
|
@@ -175,6 +175,13 @@ function apply(ctx, rawConfig) {
|
|
|
175
175
|
const parsed = JSON.parse(current);
|
|
176
176
|
if (Array.isArray(parsed)) archive = parsed;
|
|
177
177
|
} catch {}
|
|
178
|
+
const archiveKeys = /* @__PURE__ */ new Set();
|
|
179
|
+
archive = archive.filter((entry) => {
|
|
180
|
+
const key = pendingArchiveKey(entry);
|
|
181
|
+
if (archiveKeys.has(key)) return false;
|
|
182
|
+
archiveKeys.add(key);
|
|
183
|
+
return true;
|
|
184
|
+
});
|
|
178
185
|
const seen = new Set(archive.map(pendingArchiveKey));
|
|
179
186
|
const fresh = records.filter((record) => !seen.has(pendingArchiveKey(record)));
|
|
180
187
|
if (fresh.length === 0) return current;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-state-json",
|
|
3
3
|
"description": "JSON-file evolution state provider over the IO seam (community build)",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.33",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
34
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
34
|
+
"@lmzhen/dsh-evolution-core": "^0.3.33"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
38
38
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
39
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
40
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.3.
|
|
39
|
+
"@lmzhen/dsh-evolution-io": "^0.3.33",
|
|
40
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.3.33"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
44
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
45
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.3.
|
|
44
|
+
"@lmzhen/dsh-evolution-io": "^0.3.33",
|
|
45
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.3.33"
|
|
46
46
|
}
|
|
47
47
|
}
|