Skip to content

Commit

Permalink
meta: switch v6.x to LTS (TO BE REVERTED) (#973)
Browse files Browse the repository at this point in the history
This is a band aid solution for now that changes the copy for v6.x
to be LTS rather than Current. This should be reverted when we release
v7.x

This removed tests and hacks `scripts/helpers/latestversion.js` to
get things working temporarily.
  • Loading branch information
MylesBorins committed Oct 18, 2016
1 parent e036137 commit 8c53b4b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 67 deletions.
6 changes: 3 additions & 3 deletions locale/en/download/current.md
Expand Up @@ -4,14 +4,14 @@ title: Download
download: Download
downloads:
headline: Downloads
lts: LTS
current: Current
lts: LTS v4.x
current: LTS v6.x
tagline-current: Latest Features
tagline-lts: Recommended For Most Users
display-hint: Display downloads for
intro: >
Download the Node.js source code or a pre-built installer for your platform, and start developing today.
currentVersion: Latest Current Version
currentVersion: LTS Version
buildDisclaimer: "Note: Python 2.6 or 2.7 is required to build from source tarballs."
additional:
headline: Additional Platforms
Expand Down
6 changes: 3 additions & 3 deletions locale/en/download/index.md
Expand Up @@ -4,14 +4,14 @@ title: Download
download: Download
downloads:
headline: Downloads
lts: LTS
current: Current
lts: LTS v4.x
current: LTS v6.x
tagline-current: Latest Features
tagline-lts: Recommended For Most Users
display-hint: Display downloads for
intro: >
Download the Node.js source code or a pre-built installer for your platform, and start developing today.
currentVersion: Latest LTS Version
currentVersion: LTS Version
buildDisclaimer: "Note: Python 2.6 or 2.7 is required to build from source tarballs."
additional:
headline: Additional Platforms
Expand Down
4 changes: 2 additions & 2 deletions locale/en/index.md
@@ -1,13 +1,13 @@
---
layout: index.hbs
labels:
current-version: Current Version
current-version: LTS
download: Download
download-for: Download for
other-downloads: Other Downloads
other-lts-downloads: Other LTS Downloads
other-current-downloads: Other Current Downloads
current: Current
current: LTS
lts: LTS
tagline-current: Latest Features
tagline-lts: Recommended For Most Users
Expand Down
6 changes: 3 additions & 3 deletions scripts/helpers/latestversion.js
Expand Up @@ -9,9 +9,9 @@ const map = (release) => release && {
openssl: release.openssl
}

exports.current = (releases) => {
const match = releases.find((release) => !release.lts && semver.gte(release.version, '5.0.0'))
exports.lts = (releases) => {
const match = releases.find((release) => release.lts && semver.lte(release.version, '5.0.0'))
return map(match)
}

exports.lts = (releases) => map(releases.find((release) => release.lts))
exports.current = (releases) => map(releases.find((release) => release.lts))
56 changes: 0 additions & 56 deletions tests/scripts/latestversion.test.js

This file was deleted.

0 comments on commit 8c53b4b

Please sign in to comment.