diff --git a/changelog.md b/changelog.md index 9af20ca07..61f9df4b5 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## [0.7.1] + +- Support entries that were seeded in versions prior to 0.6.4 for backward + compatibility. + ## [0.7.0] - File and image titles can be edited. A focus point can be chosen for images. diff --git a/src/backend/Database.ts b/src/backend/Database.ts index 11fbfb8a9..ae8006d1f 100644 --- a/src/backend/Database.ts +++ b/src/backend/Database.ts @@ -602,7 +602,7 @@ export class Database implements Syncable { const seed = typeof seeded === 'string' ? this.seed.get(seeded) - : // Backwards compatibility + : // Backward compatibility seeded === true ? this.seed.get(file.filePath) : undefined diff --git a/src/backend/loader/JsonLoader.ts b/src/backend/loader/JsonLoader.ts index a5190103d..ea1602f85 100644 --- a/src/backend/loader/JsonLoader.ts +++ b/src/backend/loader/JsonLoader.ts @@ -9,7 +9,7 @@ export const JsonLoader: Loader = { extension: '.json', parse(schema: Schema, input: Uint8Array) { const raw = JSON.parse(decoder.decode(input)) - // This is backwards compatibility for the old format + // This is backward compatibility for the old format if (!raw[META_KEY]) raw[META_KEY] = raw.alinea ?? {} if (!raw[META_KEY].entryId) raw[META_KEY].entryId = raw.id ?? raw[META_KEY].id