mirror of
https://github.com/decaf-dev/obsidian-vault-explorer.git
synced 2026-07-22 10:10:31 +00:00
feat: add migration for properties
This commit is contained in:
parent
4b499a2c12
commit
4dc9c4e7ff
4 changed files with 11 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue