Constructor
new ReleaseData()
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
generation |
number | The major generation of the Release |
|
channel |
string | The channel the Release belongs to, such as "stable" |
|
suffix |
string | An optional appended string display for the Release |
|
build |
number | The internal build number for the Release |
|
time |
number | When the Release was released |
|
node_version |
number |
<optional> |
The minimum required Node.js major version |
notes |
string |
<optional> |
Release notes for the update version |
download |
string |
<optional> |
A temporary download URL where this version may be obtained |
Extends
- DocumentData
Members
display
A formatted string for general display, such as "V9 Prototype 1"
shortDisplay
A formatted string for shortened display, such as "Version 9"
version
A formatted string for Version compatibility checking, such as "9.150"
Methods
isGenerationalChange(other) → {boolean}
Is this ReleaseData object a newer generation than some other version?
Parameters:
Name | Type | Description |
---|---|---|
other |
string | ReleaseData | Some other version to compare against |
Returns:
Is this ReleaseData a newer generation?
- Type
- boolean
isNewer(other) → {boolean}
Is this ReleaseData object newer than some other version?
Parameters:
Name | Type | Description |
---|---|---|
other |
string | ReleaseData | Some other version to compare against |
Returns:
Is this ReleaseData a newer version?
- Type
- boolean