PluginVersionComparison
How an installed plugin’s release compares with the oldest release another plugin works with.
Import:
import type { PluginVersionComparison } from '@mnaoumov/obsidian-lib/plugin/plugin-install-state';Signature:
export enum PluginVersionComparisonMembers:
| Member | Value | Description |
|---|---|---|
AtLeastMinimum |
'atLeastMinimum' |
The release is the minimum or newer. |
BelowMinimum |
'belowMinimum' |
The release is older than the minimum. |
Invalid |
'invalid' |
The release, or the minimum, is not a version compare-versions can parse — an empty manifest.version among them. A caller deciding whether to run should treat it like PluginVersionComparison.BelowMinimum (fail closed); it is a separate member so a caller explaining the problem can say which one it is. |
Links to this page: