GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: support the Alpha release phase by RafaelGSS · Pull Request #9223 · nodejs/nodejs.org

feat: support the Alpha release phase #9223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
ovflowd merged 5 commits into nodejs:main from RafaelGSS:feat-support-the-alpha-release-phase
Oct 22, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

feat: support the Alpha release phase #9223

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit Hold shift + click to select a range
37dec44
feat: support the Alpha release phase
RafaelGSS Oct 16, 2026
99b298a
chore: bump @nodevu/core to 1.1.0
ovflowd Oct 21, 2026
d89f8d7
refactor: drop the nodevu workaround for Alpha releases
ovflowd Oct 21, 2026
a6ae48b
Merge branch 'main' into feat-support-the-alpha-release-phase
ovflowd Oct 21, 2026
f07bea1
Merge branch 'main' into feat-support-the-alpha-release-phase
ovflowd Oct 22, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: drop the nodevu workaround for Alpha releases
nodevu now keeps Alpha releases as they are, so the site no longer
strips pre-releases before nodevu parses index.json and rebuilds them
afterwards. The Alpha status comes from `alpha.isAlpha`, the same way
LTS comes from `lts.isLts`.

Assisted-by: Claude Opus 5.5 <[email protected]>
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@ovflowd
ovflowd committed Oct 21, 2026
commit d89f8d7b5f9c10c2b0d451852173b9eba73280ca

There are no files selected for viewing

100 changes: 0 additions & 100 deletions 100 apps/site/next-data/generators/__tests__/majorNodeReleases.test.mjs
Show comments
View file
Open in desktop

This file was deleted.

Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

8 changes: 8 additions & 0 deletions 8 apps/site/next-data/generators/__tests__/releaseData.test.mjs
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ describe('generateReleaseData', () => {
semver: { major: 20, raw: '20.12.0' },
dependencies: { npm: '10.8.2', v8: '11.3.244.8' },
lts: { isLts: false },
alpha: { isAlpha: false },
releaseDate: '2026-03-26',
modules: { version: '115' },
},
Expand Down Expand Up @@ -82,6 +83,7 @@ describe('generateReleaseData', () => {
semver: { major: 22, raw: '22.7.0' },
dependencies: { npm: '10.9.0', v8: '12.4.254.10' },
lts: { isLts: true },
alpha: { isAlpha: false },
releaseDate: '2026-02-18',
modules: { version: '124' },
},
Expand Down Expand Up @@ -110,6 +112,7 @@ describe('generateReleaseData', () => {
semver: { major: 24, raw: '24.1.0' },
dependencies: { npm: '11.1.0', v8: '13.0.12.7' },
lts: { isLts: false },
alpha: { isAlpha: false },
releaseDate: '2026-03-10',
modules: { version: '130' },
},
Expand Down Expand Up @@ -138,6 +141,7 @@ describe('generateReleaseData', () => {
semver: { major: 27, raw: '27.0.0-alpha.0.0.0' },
dependencies: { npm: '11.6.0', v8: '14.6.0.0' },
lts: { isLts: false },
alpha: { isAlpha: true },
releaseDate: '2026-10-28',
modules: { version: '150' },
},
Expand Down Expand Up @@ -167,13 +171,15 @@ describe('generateReleaseData', () => {
semver: { major: 27, raw: '27.0.0' },
dependencies: { npm: '11.6.0', v8: '14.6.0.0' },
lts: { isLts: false },
alpha: { isAlpha: false },
releaseDate: '2027-04-22',
modules: { version: '150' },
},
'v27.0.0-alpha.0.0.0': {
semver: { major: 27, raw: '27.0.0-alpha.0.0.0' },
dependencies: { npm: '11.6.0', v8: '14.6.0.0' },
lts: { isLts: false },
alpha: { isAlpha: true },
releaseDate: '2026-10-28',
modules: { version: '150' },
},
Expand Down Expand Up @@ -206,13 +212,15 @@ describe('generateReleaseData', () => {
semver: { major: 26, raw: '26.2.0' },
dependencies: { npm: '11.3.1', v8: '13.2.20.1' },
lts: { isLts: false },
alpha: { isAlpha: false },
releaseDate: '2026-04-01',
modules: { version: '132' },
},
'26.0.0': {
semver: { major: 26, raw: '26.0.0' },
dependencies: { npm: '11.0.0', v8: '13.1.0.0' },
lts: { isLts: false },
alpha: { isAlpha: false },
releaseDate: '2025-10-21',
modules: { version: '131' },
},
Expand Down
57 changes: 1 addition & 56 deletions 57 apps/site/next-data/generators/majorNodeReleases.mjs
Show comments
View file
Open in desktop
Comment thread
ovflowd marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

Original file line number Diff line number Diff line change
@@ -1,69 +1,14 @@
'use strict';

import nodevu from '@nodevu/core';
import semVer from 'semver';

import { fetchWithRetry } from '#site/next.fetch.mjs';

const toNodevuRelease = ({ version, date, npm, v8, modules, lts }) => {
const { version: raw, major, minor, patch } = semVer.parse(version);

return {
semver: { raw, major, minor, patch, line: `v${major}` },
releaseDate: date,
modules: { version: modules },
dependencies: { npm, v8 },
lts: { isLts: !!lts },
};
};

/**
* Filters Node.js release data to return only major releases with documented support.
*/
export default async function getMajorNodeReleases() {
const preReleases = [];
let schedule = {};

// nodevu coerces versions (v27.0.0-alpha.0.0.0 becomes v27.0.0), hence
// pre-releases are removed before nodevu parses index.json and added back
const fetchWithoutPreReleases = async (url, options) => {
const data = await fetchWithRetry(url, options).then(r => r.json());

if (!Array.isArray(data)) {
schedule = data;

return Response.json(data);
}

preReleases.push(
...data.filter(({ version }) => semVer.prerelease(version))
);

return Response.json(data.filter(r => !preReleases.includes(r)));
};

const releaseLines = await nodevu({ fetch: fetchWithoutPreReleases });

const preReleaseLines = {};

preReleases.forEach(release => {
const line = `v${semVer.major(release.version)}`;

if (!releaseLines[line] && !preReleaseLines[line]) {
const { codename, ...dates } = schedule[line] ?? {};

preReleaseLines[line] = {
releases: {},
support: schedule[line] && { codename, phases: { dates } },
};
}

const { releases } = releaseLines[line] ?? preReleaseLines[line];

releases[release.version] = toNodevuRelease(release);
});

const nodevuData = { ...preReleaseLines, ...releaseLines };
const nodevuData = await nodevu({ fetch: fetchWithRetry });

return Object.entries(nodevuData).filter(([version, { support }]) => {
// Filter out those without documented support
Expand Down
4 changes: 1 addition & 3 deletions 4 apps/site/next-data/generators/releaseData.mjs
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use strict';

import semVer from 'semver';

import getMajorNodeReleases from './majorNodeReleases.mjs';

// Gets the appropriate release status for each major release
Expand All @@ -16,7 +14,7 @@ const getNodeReleaseStatus = (latest, eol) => {
return 'LTS';
}

if (semVer.prerelease(latest.semver.raw)) {
if (latest.alpha.isAlpha) {
return 'Alpha';
}

Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.