From 6254e435a361b72120285ca7522efbf8910999f7 Mon Sep 17 00:00:00 2001 From: DecafDev <40307803+decaf-dev@users.noreply.github.com> Date: Fri, 2 May 2025 20:34:07 -0600 Subject: [PATCH 1/2] fix: resolve crash on date input --- src/svelte/shared/services/time-utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/svelte/shared/services/time-utils.ts b/src/svelte/shared/services/time-utils.ts index 421dfdd..d2a51b3 100644 --- a/src/svelte/shared/services/time-utils.ts +++ b/src/svelte/shared/services/time-utils.ts @@ -54,7 +54,7 @@ export const getStartOfLastWeekMillis = () => { * @returns - The date in milliseconds */ export const getTimeMillis = (date: string) => { - const momentDate = (moment as any)()(date, DATE_FORMATS, true); + const momentDate = (moment as any)(date, DATE_FORMATS, true); if (!momentDate.isValid()) { throw new Error(`Date format not handled: ${date}`); @@ -68,7 +68,7 @@ export const getTimeMillis = (date: string) => { * @returns - True if the date is supported, false otherwise */ export const isDateSupported = (date: string) => { - const momentDate = (moment as any)()(date, DATE_FORMATS, true); + const momentDate = (moment as any)(date, DATE_FORMATS, true); return momentDate.isValid(); }; @@ -78,7 +78,7 @@ export const isDateSupported = (date: string) => { * @returns - The end of the day in milliseconds */ export const getEndOfDayMillis = (date: string) => { - const day = (moment as any)()(date); + const day = (moment as any)(date); day.set({ hour: 23, minute: 59, From 993763879a85333ba141ee2b617d6b2120d09fd8 Mon Sep 17 00:00:00 2001 From: DecafDev <40307803+decaf-dev@users.noreply.github.com> Date: Fri, 2 May 2025 20:34:34 -0600 Subject: [PATCH 2/2] chore: bump version --- manifest.json | 2 +- package.json | 2 +- versions.json | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index ceafc49..46a6077 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "vault-explorer", "name": "Vault Explorer", - "version": "1.47.1", + "version": "1.47.2", "minAppVersion": "1.4.13", "description": "Explore your vault in visual format", "author": "DecafDev", diff --git a/package.json b/package.json index 75f13e6..94078e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-vault-explorer", - "version": "1.47.1", + "version": "1.47.2", "description": "Explore your vault in visual format", "main": "main.js", "scripts": { diff --git a/versions.json b/versions.json index ac10307..d40cc1b 100644 --- a/versions.json +++ b/versions.json @@ -151,5 +151,6 @@ "1.45.0": "1.4.13", "1.46.0": "1.4.13", "1.47.0": "1.4.13", - "1.47.1": "1.4.13" + "1.47.1": "1.4.13", + "1.47.2": "1.4.13" }