Make checkApiVersion semver-based (todo §2); strict parseSemver via official semver regex (no dep), major/minor compatibility rules

This commit is contained in:
2026-06-16 10:46:02 +02:00
parent 3be67ff8e4
commit a0d39ef624
5 changed files with 78 additions and 30 deletions

View File

@@ -186,7 +186,7 @@ import { definePlugin } from "../../src/plugin.ts";
import { listShifts } from "./shifts.ts";
export default definePlugin({
apiVersion: 1, // host contract this plugin targets; mismatch fails loud at boot
apiVersion: "1.0.0", // semver of the host contract this targets; mismatch fails loud at boot
id: "scheduling",
basePath: "/scheduling",