mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
4354a1de0e
Notable changes: This release marks the transition of Node.js 22.x into Long Term Support (LTS) with the codename 'Jod'. The 22.x release line now moves into "Active LTS" and will remain so until October 2025. After that time, it will move into "Maintenance" until end of life in April 2027. Other than updating metadata, such as the `process.release` object, to reflect that the release is LTS, no further changes from Node.js 22.10.0 are included. PR-URL: https://github.com/nodejs/node/pull/55504
35 lines
1.5 KiB
JavaScript
35 lines
1.5 KiB
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 if (versionParts[0] === '12' && versionParts[1] >= 13) {
|
|
assert.strictEqual(process.release.lts, 'Erbium');
|
|
} else if (versionParts[0] === '14' && versionParts[1] >= 15) {
|
|
assert.strictEqual(process.release.lts, 'Fermium');
|
|
} else if (versionParts[0] === '16' && versionParts[1] >= 13) {
|
|
assert.strictEqual(process.release.lts, 'Gallium');
|
|
} else if (versionParts[0] === '18' && versionParts[1] >= 12) {
|
|
assert.strictEqual(process.release.lts, 'Hydrogen');
|
|
} else if (versionParts[0] === '20' && versionParts[1] >= 9) {
|
|
assert.strictEqual(process.release.lts, 'Iron');
|
|
} else if (versionParts[0] === '22' && versionParts[1] >= 11) {
|
|
assert.strictEqual(process.release.lts, 'Jod');
|
|
} else {
|
|
assert.strictEqual(process.release.lts, undefined);
|
|
}
|