Skip to content

0.3.0

Choose a tag to compare

@Hexagon Hexagon released this 25 Mar 19:41
· 2 commits to main since this release

@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!");