versioncheck

package
v1.0.98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package versioncheck owns version and environment predicates shared by update and Skills notification checks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a, b string) bool

Equal reports whether two versions are the same after Normalize.

func IsCIEnv

func IsCIEnv() bool

IsCIEnv reports whether the process is running in a supported CI environment.

func IsNewer

func IsNewer(a, b string) bool

IsNewer reports whether a is a SemVer update over b. A valid remote version is considered newer than an unparseable local development version.

func IsRelease

func IsRelease(version string) bool

IsRelease reports whether version is a clean published SemVer rather than a git-describe development build.

func Normalize

func Normalize(version string) string

Normalize canonicalizes a version string for comparison: trims whitespace and strips a leading "v"/"V" so versions written by the Makefile (git describe → "v1.0.0") and npm (no prefix → "1.0.0") compare equal.

func Parse

func Parse(version string) []int

Parse returns the major, minor, and patch components of a SemVer value.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL