Browse Source

blog: Show 0.8.0 even after 0.8.1 ships

The 0.(even).0 releases typically have benchmarks and other interesting
stuff, since that's a milestone.
v0.8.7-release
isaacs 13 years ago
parent
commit
37bdd36d70
  1. 9
      tools/blog/generate.js

9
tools/blog/generate.js

@ -170,10 +170,19 @@ function buildFeeds(data) {
}
// filter non-latest release notices out of main feeds.
// still show the first stable release of the family, since
// it usually is an important milestone with benchmarks and stuff.
var main = posts.filter(function(post) {
if (post.version && post.family) {
var ver = semver.parse(post.version)
if (+ver[2] % 2 === 0 && +ver[3] === 0) {
// 0.x.0, where x is event
return true;
}
if (post.version && post.family && post !== releases[post.family][0]) {
return false;
}
}
return true;
});

Loading…
Cancel
Save