Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit aa8e625

Browse files
committed
chore(docs): mark builds >= 1.3.0 as stable
Update isStable() to add builds >= 1.3.0 marked as stable. Previously, only builds with an even minor version number (1.0.x, 1.2.x) were marked as stable, while odd minor numbers (1.3.x) were marked as unstable. Now, 1.0.x, 1.2.x and 1.3+ will all be marked as stable. Prereleases remain marked as unstable, regardless of minor version.
1 parent 2b41a58 commit aa8e625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/versions/version-info.js

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ var getTaggedVersion = function() {
9797
* @return {Boolean} True if the version is stable
9898
*/
9999
var isStable = function(version) {
100-
return semver.satisfies(version, '1.0 || 1.2') && version.prerelease.length === 0;
100+
return semver.satisfies(version, '1.0 || 1.2 || >=1.3') && version.prerelease.length === 0;
101101
};
102102

103103
/**

0 commit comments

Comments
 (0)