Skip to content

Commit

Permalink
0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
benmerckx committed Feb 5, 2024
1 parent 689a4ce commit efbda4f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/backend/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/backend/loader/JsonLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efbda4f

Please sign in to comment.