update

package
v1.1.60 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package update provides non-blocking version update detection based on the npm registry. It never blocks the user: network checks run in the background and failures only affect the update notification.

Index

Constants

View Source
const PackageName = "mothx"

PackageName is the npm package used for update detection.

Variables

This section is empty.

Functions

func CheckInBackground

func CheckInBackground(current string, notify func(string))

CheckInBackground refreshes the cache in a background goroutine if it is stale. It returns immediately and never blocks the caller. When the fetched npm latest version is newer than current, notify is called from the background goroutine. Disable with the VIBECODING_NO_UPDATE_CHECK environment variable.

func Notice

func Notice(current, latest string) string

Notice returns the update reminder text for current and latest.

Types

This section is empty.

Jump to

Keyboard shortcuts

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