validateVersionsJson
Validates a plugin’s versions.json content.
When manifestVersion is given, a missing entry for it is a warning: Obsidian reads versions.json to find the newest plugin version an older app can install, so a version bumped by hand without its entry leaves that lookup stale.
Import:
import { validateVersionsJson } from '@mnaoumov/obsidian-dev-toolkit/plugin-release-checks';Signature:
function validateVersionsJson(versions: unknown, manifestVersion: string | null | undefined): PluginCheckFinding[]Parameters:
| Parameter | Type | Description |
|---|---|---|
versions |
unknown | The parsed versions.json. |
manifestVersion |
string | null | undefined | The version of manifest.json that must have an entry, or null / undefined to skip that check. |
Returns: PluginCheckFinding[] — The findings, empty when it maps semver plugin versions to semver app versions.