Project format updates

This commit is contained in:
Peter Willemsen
2026-11-30 17:25:03 +01:00
parent 563d1992a2
commit 4822a697bf
11 changed files with 425 additions and 111 deletions
+3
View File
@@ -19,6 +19,9 @@ export function parseProjectManifest(value) {
throw new TypeError(`Invalid project ${key}`);
}
}
if (value.archived !== undefined && typeof value.archived !== 'boolean') {
throw new TypeError('Invalid project archive state');
}
// Return a copy preserving fields belonging to newer consumers of this version.
return structuredClone(value);
}