Skip to content

Commit 89a783c

Browse files
committed
Rename 'Stable' release to 'Current'
1 parent 04b4e04 commit 89a783c

File tree

16 files changed

+41
-41
lines changed

16 files changed

+41
-41
lines changed

build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ function fullBuild () {
252252
project: {
253253
versions,
254254
currentVersions: {
255-
stable: latestVersion.stable(versions),
255+
current: latestVersion.current(versions),
256256
lts: latestVersion.lts(versions)
257257
},
258258
banner: {

layouts/download-stable.hbs renamed to layouts/download-current.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<h1>{{downloads.headline}}</h1>
1313
</div>
1414

15-
{{> primary-download-matrix version=project.currentVersions.stable versionTypeStable="true"}}
16-
{{> secondary-download-matrix version=project.currentVersions.stable versionTypeStable="true"}}
15+
{{> primary-download-matrix version=project.currentVersions.current versionTypeCurrent="true"}}
16+
{{> secondary-download-matrix version=project.currentVersions.current versionTypeCurrent="true"}}
1717

1818
</article>
1919

layouts/index.hbs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,23 @@
4141

4242
</div>
4343

44-
{{#if project.currentVersions.stable}}
44+
{{#if project.currentVersions.current}}
4545
<div class="home-downloadblock">
4646

47-
<a href="https://nodejs.org/dist/{{ project.currentVersions.stable }}/" class="home-downloadbutton" title="{{ labels.download }} {{ project.currentVersions.stable }} {{ labels.stable }}" data-version="{{ project.currentVersions.stable }}">
48-
{{ project.currentVersions.stable }} {{ labels.stable }}
49-
<small>{{ labels.tagline-stable }}</small>
47+
<a href="https://nodejs.org/dist/{{ project.currentVersions.current }}/" class="home-downloadbutton" title="{{ labels.download }} {{ project.currentVersions.current }} {{ labels.current }}" data-version="{{ project.currentVersions.current }}">
48+
{{ project.currentVersions.current }} {{ labels.current }}
49+
<small>{{ labels.tagline-current }}</small>
5050
</a>
5151

5252
<ul class="list-divider-pipe home-secondary-links">
5353
<li>
54-
<a href="https://nodejs.org/{{site.locale}}/download/stable/">{{ labels.other-downloads }}</a>
54+
<a href="https://nodejs.org/{{site.locale}}/download/current/">{{ labels.other-downloads }}</a>
5555
</li>
5656
<li>
57-
<a href="https://github.com/nodejs/node/blob/{{ project.currentVersions.stable }}/CHANGELOG.md">{{ labels.changelog }}</a>
57+
<a href="https://github.com/nodejs/node/blob/{{ project.currentVersions.current }}/CHANGELOG.md">{{ labels.changelog }}</a>
5858
</li>
5959
<li>
60-
<a href="{{majorapidocslink project.currentVersions.stable}}">{{ labels.api }}</a>
60+
<a href="{{majorapidocslink project.currentVersions.current}}">{{ labels.api }}</a>
6161
</li>
6262
</ul>
6363

layouts/partials/primary-download-matrix.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<div class="title">{{downloads.lts}}</div>
1010
<div class="tag">{{downloads.tagline-lts}}</div>
1111
</a>
12-
<a {{#if versionTypeStable}}class="is-version"{{/if}} href="/{{site.locale}}/{{site.download.link}}/stable" title="{{downloads.display-hint}} {{downloads.stable}}">
13-
<div class="title">{{downloads.stable}}</div>
14-
<div class="tag">{{downloads.tagline-stable}}</div>
12+
<a {{#if versionTypeCurrent}}class="is-version"{{/if}} href="/{{site.locale}}/{{site.download.link}}/current" title="{{downloads.display-hint}} {{downloads.current}}">
13+
<div class="title">{{downloads.current}}</div>
14+
<div class="tag">{{downloads.tagline-current}}</div>
1515
</a>
1616
</div>
1717
</li>

locale/en/blog/community/node-v5.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ We just released [Node.js v5.0.0](https://nodejs.org/en/blog/release/v5.0.0/). Y
1313

1414
Node.js is growing, and growing fast. As we continue to innovate quickly, we will focus on two different release lines. One release line will fall under our **LTS** plan. All release lines that have LTS support will be even numbers, and (most importantly) focus on stability and security. These release lines are for organizations with complex environments that find it cumbersome to continually upgrade. We recently released the first in this line: [Node.js v4.2.1](https://nodejs.org/en/blog/release/v4.2.1/) “Argon.”
1515

16-
The other release line is called **Stable**. All release lines will be odd numbers, and have a shorter lifespan and more frequent updates to the code. The Stable release line will focus on active development of necessary features and refinement of existing APIs. Node.js version 5 is this type of release.
16+
The other release line is called **Current**. All release lines will be odd numbers, and have a shorter lifespan and more frequent updates to the code. The Current release line will focus on active development of necessary features and refinement of existing APIs. Node.js version 5 is this type of release.
1717

1818
We want to make sure that you are adopting the release that best meets your Node.js needs, so to break it down:
1919

@@ -47,7 +47,7 @@ First and foremost, if you haven’t read the [Essential Steps: Long Term Suppor
4747

4848
* There will be no more than two active LTS release lines at any given time. Overlap is intended to help ease migration planning.
4949

50-
* Once a Stable release line becomes LTS, no new features or breaking changes will be added to that release. Changes are limited to bug fixes for stability, security updates, possible npm updates, documentation updates and certain performance improvements that can be demonstrated to not break existing applications.
50+
* Once a Current release line becomes LTS, no new features or breaking changes will be added to that release. Changes are limited to bug fixes for stability, security updates, possible npm updates, documentation updates and certain performance improvements that can be demonstrated to not break existing applications.
5151

5252
## Questions?
5353

locale/en/download/stable.md renamed to locale/en/download/current.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
2-
layout: download-stable.hbs
2+
layout: download-current.hbs
33
title: Download
44
download: Download
55
downloads:
66
headline: Downloads
77
lts: LTS
8-
stable: Stable
9-
tagline-stable: Latest Features
8+
current: Current
9+
tagline-current: Latest Features
1010
tagline-lts: Recommended For Most Users
1111
display-hint: Display downloads for
1212
intro: >
1313
Download the Node.js source code or a pre-built installer for your platform, and start developing today.
14-
currentVersion: Current stable version
14+
currentVersion: Current version
1515
buildDisclaimer: "Note: Python 2.6 or 2.7 is required to build from source tarballs."
1616
additional:
1717
headline: Additional Platforms

locale/en/download/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ download: Download
55
downloads:
66
headline: Downloads
77
lts: LTS
8-
stable: Stable
9-
tagline-stable: Latest Features
8+
current: Current
9+
tagline-current: Latest Features
1010
tagline-lts: Recommended For Most Users
1111
display-hint: Display downloads for
1212
intro: >

locale/en/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ labels:
66
download-for: Download for
77
other-downloads: Other Downloads
88
other-lts-downloads: Other LTS Downloads
9-
other-stable-downloads: Other Stable Downloads
10-
stable: Stable
9+
other-current-downloads: Other Current Downloads
10+
current: Current
1111
lts: LTS
12-
tagline-stable: Latest Features
12+
tagline-current: Latest Features
1313
tagline-lts: Recommended For Most Users
1414
changelog: Changelog
1515
api: API Docs

locale/en/site.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"subtext": "LTS",
9090
"text": "v4.4.2 API"
9191
},
92-
"api-stable": {
92+
"api-current": {
9393
"link": "/dist/latest-v5.x/docs/api",
9494
"text": "v5.10.1 API"
9595
},

locale/it/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ labels:
66
download-for: Download per
77
other-downloads: Altri Downloads
88
other-lts-downloads: Altri Download LTS
9-
other-stable-downloads: Altri Download Stabili
10-
stable: Stabile
9+
other-current-downloads: Altri Download Stabili
10+
current: Corrente
1111
lts: LTS
12-
tagline-stable: Ultime funzionalità
12+
tagline-current: Ultime funzionalità
1313
tagline-lts: Maturo e affidabile
1414
changelog: Changelog
1515
api: Documentazione API

locale/it/site.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"subtext": "LTS",
8181
"text": "v4.4.2 API"
8282
},
83-
"api-stable": {
83+
"api-current": {
8484
"link": "/dist/latest-v5.x/docs/api",
8585
"text": "v5.10.1 API"
8686
},

locale/ko/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ labels:
66
download-for: Download for
77
other-downloads: 다른 운영 체제
88
other-lts-downloads: 다른 LTS 다운로드
9-
other-stable-downloads: 다른 안정 버전 다운로드
10-
stable: 안정 버전
9+
other-current-downloads: 다른 안정 버전 다운로드
10+
current: 안정 버전
1111
lts: LTS
12-
tagline-stable: 최신 기능
12+
tagline-current: 최신 기능
1313
tagline-lts: 안정적, 신뢰도 높음
1414
changelog: 변경사항
1515
api: API 문서

locale/ko/site.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"subtext": "LTS",
8282
"text": "v4.4.2 API"
8383
},
84-
"api-stable": {
84+
"api-current": {
8585
"link": "/dist/latest-v5.x/docs/api",
8686
"text": "v5.10.1 API"
8787
},

scripts/helpers/latestversion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const semver = require('semver')
44

5-
exports.stable = (releases) => {
5+
exports.current = (releases) => {
66
const match = releases.find((release) => !release.lts && semver.gte(release.version, '5.0.0'))
77
return match && match.version
88
}

tests/scripts/latestversion.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@ const test = require('tape')
44

55
const latestversion = require('../../scripts/helpers/latestversion')
66

7-
test('latestversion.stable()', (t) => {
7+
test('latestversion.current()', (t) => {
88
t.test('should be greater equal/greater than v5.0.0', (t) => {
9-
const stableVersion = latestversion.stable([
9+
const currentVersion = latestversion.current([
1010
{ version: 'v4.2.1', lts: true },
1111
{ version: 'v0.12.7', lts: false }
1212
])
1313

14-
t.equal(stableVersion, undefined)
14+
t.equal(currentVersion, undefined)
1515
t.end()
1616
})
1717

1818
t.test('should not be an LTS release', (t) => {
19-
const stableVersion = latestversion.stable([
19+
const currentVersion = latestversion.current([
2020
{ version: 'v5.0.0', lts: false },
2121
{ version: 'v4.2.1', lts: true },
2222
{ version: 'v0.12.7', lts: false }
2323
])
2424

25-
t.equal(stableVersion, 'v5.0.0')
25+
t.equal(currentVersion, 'v5.0.0')
2626
t.end()
2727
})
2828

tests/scripts/release-post.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ test('fetchVersionPolicy(<version>)', (t) => {
194194
const changelogFixture = path.resolve(__dirname, 'CHANGELOG.fixture.md')
195195
const changelogLegacyFixture = path.resolve(__dirname, 'CHANGELOG.fixture.legacy.md')
196196

197-
t.test('finds "Stable" version policy', (t) => {
197+
t.test('finds "Current" version policy', (t) => {
198198
const github = nock('https://raw.githubusercontent.com')
199199
.get('/nodejs/node/v4.1.0/CHANGELOG.md')
200200
.replyWithFile(200, changelogFixture)
201201

202202
releasePost.fetchVersionPolicy('4.1.0').then((policy) => {
203-
t.equal(policy, 'Stable')
203+
t.equal(policy, 'Current')
204204
t.true(github.isDone(), 'githubusercontent.com was requested')
205205

206206
t.end()

0 commit comments

Comments
 (0)