new VersionService()
Service for managing application and server versions.
Methods
getAppVersion() → {string}
Get the current app version from environment variables.
Returns:
App version
- Type:
- string
(async) getServerVersion() → {Promise.<(string|null)>}
Get the current server version from the API.
Returns:
Server version or null if unavailable
- Type:
- Promise.<(string|null)>
isVersionNew(versionTag) → {boolean}
Check if a version tag is considered new.
Parameters:
| Name | Type | Description |
|---|---|---|
versionTag | string | Version tag to check |
Returns:
True if the version is new, false otherwise
- Type:
- boolean
resetCache()
Reset the cached server version