fix(build,json): replace lodash.clonedeep with structuredClone and migrate package metadata to smartconfig

This commit is contained in:
2026-04-30 06:59:14 +00:00
parent 6ac04e2069
commit ba38d4377b
9 changed files with 2245 additions and 2986 deletions
+3 -3
View File
@@ -163,7 +163,7 @@ export class Smartjson {
// INSTANCE
// ========
public saveableProperties: string[];
public saveableProperties: string[] = [];
/**
* folds a class into an object
@@ -187,11 +187,11 @@ export class Smartjson {
if (Array.isArray(val)) {
return val.map((item) => foldValue(item));
}
return plugins.lodashCloneDeep(val);
return structuredClone(val);
};
const props: string[] = (this as any).saveableProperties || [];
for (const keyName of props) {
const value = this[keyName];
const value = (this as unknown as Record<string, unknown>)[keyName];
result[keyName] = foldValue(value);
}
return result;