From 4dc9c4e7ffd74b9118a1de1deb605472bad291ed Mon Sep 17 00:00:00 2001 From: DecafDev <40307803+decaf-dev@users.noreply.github.com> Date: Tue, 10 Sep 2024 01:06:31 -0600 Subject: [PATCH] feat: add migration for properties --- manifest.json | 2 +- package.json | 2 +- src/migrations/migrate_1_42_0.ts | 7 +++++++ versions.json | 3 ++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 9c76180..4f2a961 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "vault-explorer", "name": "Vault Explorer", - "version": "1.42.0", + "version": "1.42.1", "minAppVersion": "1.4.13", "description": "Explore your vault in visual format", "author": "DecafDev", diff --git a/package.json b/package.json index cd5a4f1..07d7a4e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-vault-explorer", - "version": "1.42.0", + "version": "1.42.1", "description": "Explore your vault in visual format", "main": "main.js", "scripts": { diff --git a/src/migrations/migrate_1_42_0.ts b/src/migrations/migrate_1_42_0.ts index e27cfe3..7e66544 100644 --- a/src/migrations/migrate_1_42_0.ts +++ b/src/migrations/migrate_1_42_0.ts @@ -7,6 +7,13 @@ export default class Migrate_1_42_0 implements MigrationInterface { const typedData = data as unknown as VaultExplorerPluginSettings_1_41_1; const newData: VaultExplorerPluginSettings = { ...typedData, + properties: { + ...typedData.properties, + image: typedData.properties.image || "image", + coverImageFit: + typedData.properties.coverImageFit || "image-fit", + url: typedData.properties.url || "url", + }, }; delete (newData as any).filterGroupsWidth; delete (newData as any).shouldWrapFilterGroups; diff --git a/versions.json b/versions.json index e7d5c8e..f5b7f42 100644 --- a/versions.json +++ b/versions.json @@ -137,5 +137,6 @@ "1.40.2": "1.4.13", "1.41.0": "1.4.13", "1.41.1": "1.4.13", - "1.42.0": "1.4.13" + "1.42.0": "1.4.13", + "1.42.1": "1.4.13" }