Skip to content

Commit 58310cd

Browse files
authored
Merge pull request #329 from decaf-dev/migrate-default-property
feat: add migration for properties
2 parents 4b499a2 + 4dc9c4e commit 58310cd

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "vault-explorer",
33
"name": "Vault Explorer",
4-
"version": "1.42.0",
4+
"version": "1.42.1",
55
"minAppVersion": "1.4.13",
66
"description": "Explore your vault in visual format",
77
"author": "DecafDev",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-vault-explorer",
3-
"version": "1.42.0",
3+
"version": "1.42.1",
44
"description": "Explore your vault in visual format",
55
"main": "main.js",
66
"scripts": {

src/migrations/migrate_1_42_0.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ export default class Migrate_1_42_0 implements MigrationInterface {
77
const typedData = data as unknown as VaultExplorerPluginSettings_1_41_1;
88
const newData: VaultExplorerPluginSettings = {
99
...typedData,
10+
properties: {
11+
...typedData.properties,
12+
image: typedData.properties.image || "image",
13+
coverImageFit:
14+
typedData.properties.coverImageFit || "image-fit",
15+
url: typedData.properties.url || "url",
16+
},
1017
};
1118
delete (newData as any).filterGroupsWidth;
1219
delete (newData as any).shouldWrapFilterGroups;

versions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,6 @@
137137
"1.40.2": "1.4.13",
138138
"1.41.0": "1.4.13",
139139
"1.41.1": "1.4.13",
140-
"1.42.0": "1.4.13"
140+
"1.42.0": "1.4.13",
141+
"1.42.1": "1.4.13"
141142
}

0 commit comments

Comments
 (0)