From fdce218e886d405d6afe273e3ff82728f3ccdabf Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 14 Mar 2021 22:56:27 +0100 Subject: [PATCH 1/2] release 0.46.5 --- package.json | 2 +- src/services/build.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 169e4dbf5..638b0253a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "trilium", "productName": "Trilium Notes", "description": "Trilium Notes", - "version": "0.46.4-beta", + "version": "0.46.5", "license": "AGPL-3.0-only", "main": "electron.js", "bin": { diff --git a/src/services/build.js b/src/services/build.js index 4bbb79fa2..3734b6b3b 100644 --- a/src/services/build.js +++ b/src/services/build.js @@ -1 +1 @@ -module.exports = { buildDate:"2021-03-10T23:35:12+01:00", buildRevision: "6f901e6852c33ba0dae6c70efb9f65e5b0028995" }; +module.exports = { buildDate:"2021-03-14T22:56:27+01:00", buildRevision: "6c8d20288df302f3a415bd1bdcace98bf29d4bf6" }; From 4e21d12202230647c0d5b90596ba0b83b26497fc Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 15 Mar 2021 20:31:12 +0100 Subject: [PATCH 2/2] fix nodejs 10 compatibility, closes #1746 --- src/services/note_cache/entities/note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/note_cache/entities/note.js b/src/services/note_cache/entities/note.js index 25e928503..3adef3148 100644 --- a/src/services/note_cache/entities/note.js +++ b/src/services/note_cache/entities/note.js @@ -405,7 +405,7 @@ class Note { return 0; } - let minDistance = 999_999; + let minDistance = 999999; for (const parent of this.parents) { minDistance = Math.min(minDistance, parent.getDistanceToAncestor(ancestorNoteId) + 1);