Repository navigation
0.3.0
@check/self - Initial release
Initial release of the JSR version checking utility for Deno.
- Easily determine if users are running the latest version of your jsr.io published programs.
- Includes error handling for common issues (ConfigNotFoundError, PackageConfigError, JsrLookupError).
Quick example:
deno add @check/self
import { checkJsrVersion } from "@check/self";
try {
const result = await checkJsrVersion();
if (!result.isUpToDate) {
console.warn(`'${result.currentVersion}' is outdated, upgrade to '${result.latestVersion}'.`);
}
} catch (_e) { /* Ignore */ }
console.log("The program is running!");