mirror of
https://github.com/nodejs/node.git
synced 2025-05-18 02:19:02 +00:00

This release marks the transition of Node.js 10.x into Long Term Support (LTS) with the codename 'Dubnium'. The 10.x release line now moves in to "Active LTS" and will remain so until April 2020. After that time it will move in to "Maintenance" until end of life in April 2021. Notable Changes: This release only includes minimal changes necessary to fix known regressions prior to LTS. PR-URL: https://github.com/nodejs/node/pull/23831
23 lines
786 B
JavaScript
23 lines
786 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const assert = require('assert');
|
|
const versionParts = process.versions.node.split('.');
|
|
|
|
assert.strictEqual(process.release.name, 'node');
|
|
|
|
// it's expected that future LTS release lines will have additional
|
|
// branches in here
|
|
if (versionParts[0] === '4' && versionParts[1] >= 2) {
|
|
assert.strictEqual(process.release.lts, 'Argon');
|
|
} else if (versionParts[0] === '6' && versionParts[1] >= 9) {
|
|
assert.strictEqual(process.release.lts, 'Boron');
|
|
} else if (versionParts[0] === '8' && versionParts[1] >= 9) {
|
|
assert.strictEqual(process.release.lts, 'Carbon');
|
|
} else if (versionParts[0] === '10' && versionParts[1] >= 13) {
|
|
assert.strictEqual(process.release.lts, 'Dubnium');
|
|
} else {
|
|
assert.strictEqual(process.release.lts, undefined);
|
|
}
|