special sponsors
Boolean
lando.updates.updateAvailable(version1, version2) ⇒ Compares two versions and determines if an update is available or not
Kind: global function
Returns: Boolean
- Whether an update is avaiable.
Since: 3.0.0
Param | Type | Description |
---|---|---|
version1 | String | The current version. |
version2 | String | The potential update version |
Example
// Does our current version need to be updated?
const updateAvailable = lando.updates.updateAvailable('1.0.0', '1.0.1');
Boolean
lando.updates.fetch(data) ⇒ Determines whether we need to fetch updatest or not
Kind: global function
Returns: Boolean
- Whether we need to ping GitHub for new data or not
Since: 3.0.0
Param | Type | Description |
---|---|---|
data | Object | Cached update data |
Object
lando.updates.refresh(version, edge) ⇒ Get latest version info from github
Kind: global function
Returns: Object
- Update data
Since: 3.0.0
Param | Type | Default | Description |
---|---|---|---|
version | String | Lando version to use as a fallback | |
edge | Boolean | false | Whether to check for edge releases or not |