fix: avoid unsupported settings API

This commit is contained in:
Michael Makarov 2026-06-13 18:08:56 +03:00
parent 1b1e37831d
commit b5b02c197f
6 changed files with 13 additions and 13 deletions

View file

@ -173,8 +173,8 @@ dist/mdmenu/LICENSE
GitHub releases are created from semver tags without a `v` prefix:
```bash
git tag 1.0.1
git push origin 1.0.1
git tag 1.0.2
git push origin 1.0.2
```
The release workflow runs on tags matching `x.y.z`. It installs dependencies with `npm ci`, runs `npm audit --omit=dev`, lints, typechecks, runs tests, builds `dist/mdmenu`, checks that the tag matches `package.json` and `manifest.json`, verifies release assets, creates GitHub artifact attestations, and publishes `main.js`, `manifest.json`, and `styles.css`.

View file

@ -1,7 +1,7 @@
{
"id": "mdmenu",
"name": "mdMenu",
"version": "1.0.1",
"version": "1.0.2",
"minAppVersion": "1.5.0",
"description": "A mini WYSIWYG-style Markdown formatting toolbar.",
"author": "Michael Makarov",

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "mdmenu",
"version": "1.0.1",
"version": "1.0.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "mdmenu",
"version": "1.0.1",
"version": "1.0.2",
"license": "MIT",
"devDependencies": {
"@types/node": "^25.9.3",

View file

@ -1,6 +1,6 @@
{
"name": "mdmenu",
"version": "1.0.1",
"version": "1.0.2",
"description": "A mini WYSIWYG-style Markdown formatting toolbar for Obsidian.",
"main": "main.js",
"type": "module",

View file

@ -116,7 +116,7 @@ export class MdMenuSettingTab extends PluginSettingTab {
}
await this.plugin.saveSettings();
this.plugin.refreshToolbar();
this.update();
this.display();
});
});
@ -134,7 +134,7 @@ export class MdMenuSettingTab extends PluginSettingTab {
];
await this.plugin.saveSettings();
this.plugin.refreshToolbar();
this.update();
this.display();
});
});
@ -148,7 +148,7 @@ export class MdMenuSettingTab extends PluginSettingTab {
);
await this.plugin.saveSettings();
this.plugin.refreshToolbar();
this.update();
this.display();
});
});
@ -206,7 +206,7 @@ export class MdMenuSettingTab extends PluginSettingTab {
];
await this.plugin.saveSettings();
this.plugin.refreshToolbar();
this.update();
this.display();
});
});
}
@ -280,7 +280,7 @@ export class MdMenuSettingTab extends PluginSettingTab {
);
await this.plugin.saveSettings();
this.plugin.refreshToolbar();
this.update();
this.display();
});
});
});
@ -304,7 +304,7 @@ export class MdMenuSettingTab extends PluginSettingTab {
this.plugin.settings.toolbarItems = items;
await this.plugin.saveSettings();
this.plugin.refreshToolbar();
this.update();
this.display();
}
private nextSeparatorId(): string {

View file

@ -1,3 +1,3 @@
{
"1.0.1": "1.5.0"
"1.0.2": "1.5.0"
}