From 394a3f9c52129f50ed1326099fcda2aaf3e6848a Mon Sep 17 00:00:00 2001 From: DecafDev <40307803+decaf-dev@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:09:37 -0600 Subject: [PATCH 1/3] fix: clear social media cache for compatability --- src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.ts b/src/main.ts index f9c1d2c5..b3b8d387 100644 --- a/src/main.ts +++ b/src/main.ts @@ -18,6 +18,7 @@ import { moveFocus } from "./focus-utils"; import { PluginEvent } from "./event/types"; import { isVersionLessThan } from "./utils"; import License from "./svelte/shared/services/license"; +import { clearSocialMediaImageCache } from "./svelte/app/services/social-media-image-cache"; export default class VaultExplorerPlugin extends Plugin { settings: VaultExplorerPluginSettings = DEFAULT_SETTINGS; @@ -188,6 +189,9 @@ export default class VaultExplorerPlugin extends Plugin { "vault-explorer-license-key"; localStorage.removeItem(LOCAL_STORAGE_LICENSE_KEY); } + if (isVersionLessThan(loadedVersion, "1.37.1")) { + await clearSocialMediaImageCache(); + } } } From 5f73f4e8f29919cfb4b4edc86880625dc1ade658 Mon Sep 17 00:00:00 2001 From: DecafDev <40307803+decaf-dev@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:09:55 -0600 Subject: [PATCH 2/3] refactor: disable console.log --- src/svelte/app/components/grid-card.svelte | 1 - 1 file changed, 1 deletion(-) diff --git a/src/svelte/app/components/grid-card.svelte b/src/svelte/app/components/grid-card.svelte index 89c5e42b..1b7d4e97 100644 --- a/src/svelte/app/components/grid-card.svelte +++ b/src/svelte/app/components/grid-card.svelte @@ -142,7 +142,6 @@ } imgSrc = imageUrl; } - console.log("Image", imageUrl, imgSrc); } function handleUrlClick(e: Event) { From 7a25c595c856028759de9f4b433dd72674d80814 Mon Sep 17 00:00:00 2001 From: DecafDev <40307803+decaf-dev@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:10:12 -0600 Subject: [PATCH 3/3] 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 1ed4cb03..2ed49796 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "vault-explorer", "name": "Vault Explorer", - "version": "1.37.0", + "version": "1.37.1", "minAppVersion": "1.4.13", "description": "Explore your vault in visual format", "author": "DecafDev", diff --git a/package.json b/package.json index 6353ec5f..f21a029d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-vault-explorer", - "version": "1.37.0", + "version": "1.37.1", "description": "Explore your vault in visual format", "main": "main.js", "scripts": { diff --git a/versions.json b/versions.json index 774fc5d5..6ccebc33 100644 --- a/versions.json +++ b/versions.json @@ -127,5 +127,6 @@ "1.36.1": "1.4.13", "1.36.2": "1.4.13", "1.36.3": "1.4.13", - "1.37.0": "1.4.13" + "1.37.0": "1.4.13", + "1.37.1": "1.4.13" }