woaru
Version:
Universal Project Setup Autopilot - Analyze and automatically configure development tools for ANY programming language
53 lines • 1.53 kB
TypeScript
/**
* VersionManager handles version checking and updates for WOARU
* Now with full i18n support for internationalized messages
*/
export interface VersionInfo {
current: string;
latest: string;
isUpToDate: boolean;
releaseDate?: string;
}
/**
* Manages version checking and updates for WOARU
*
* This class provides utilities for:
* - Checking the current installed version
* - Fetching the latest available version from npm
* - Comparing versions and displaying update notifications
* - Performing self-updates of the WOARU package
*
* All user-facing messages are internationalized using the i18n system.
*/
export declare class VersionManager {
private static packageJsonPath;
/**
* Get the current version from package.json
*/
static getCurrentVersion(): string;
/**
* Get the latest version from npm registry (secure implementation)
*/
static getLatestVersion(): Promise<string>;
/**
* Get the release date of the latest version (secure implementation)
*/
static getReleaseDate(): Promise<string | undefined>;
/**
* Check version status
*/
static checkVersion(): Promise<VersionInfo>;
/**
* Display version information
*/
static displayVersion(): void;
/**
* Display version check results
*/
static displayVersionCheck(): Promise<void>;
/**
* Update WOARU to the latest version
*/
static updateToLatest(): Promise<void>;
}
//# sourceMappingURL=versionManager.d.ts.map