Skip to content

Outdated definition for latest alias under https://nodejs.org/download/release #67224

Open

Description

@MikeMcC399

Refs: #67135

Situation

The README > Current and LTS releases documentation section states:

The latest directory is an alias for the latest Current release.

referring to the https://nodejs.org/download/release/latest/ directory.

This is an outdated definition. During and after a transition to a new Alpha release, there is no release line with the label "Current".

The latest directory is an alias for the highest numbered release that is not a pre-release version according to SemVer definitions.

It corresponds to the Current version, if there is one active, or to the highest LTS version if there is no Current version active.

Release progressions

Date \ Status Maintenance LTS Active LTS Current Alpha latest
2026-10-27 22.23.4 24.22.1 26.12.1 - 26.12.1
2026-10-28 22.23.4
24.22.2
26.13.0 - - 26.13.0
2026-10-29 22.23.4
24.22.2
26.13.0 - 27.0.0-alpha.0.0.0 26.13.0
...
2027-04-22 22.x
24.x
26.x 27.0.0 - 27.0.0
2027-04-30 24.x 26.x 27.0.0 - 27.0.0

Suggestion

A simple definition would be to say:

The latest directory is an alias for the latest non-Alpha release.

Activity

  1. added
    doc
    release
    on Nov 3, 2026
  2. Saru-Work commented on Nov 3, 2026

    @Saru-Work
  3. MikeMcC399 commented on Nov 3, 2026

    @MikeMcC399
    Author
  4. self-assigned this
    on Nov 3, 2026
  5. MikeMcC399 commented on Nov 4, 2026

    @MikeMcC399
    MemberAuthor

    I learned in https://github.com/nodejs/Release/issues/1196 that creation of the latest-* symlinks is done by https://github.com/nodejs/nodejs-latest-linker which is owned by the Build WG (@nodejs/build).

    Edit: nodejs/nodejs-latest-linker#23 open to clarify / update the documentation also in that repo.

  6. aduh95 commented on Nov 4, 2026

    @aduh95
    Contributor

    I reckon it would be simpler to keep latest for Alpha versions. We tried to make the schedule so the Alpha versions are drop-in replacement for the "short-lived odd-numbered" release lines of the old schedule, so arguably it's logical to apply the same latest label to it

  7. MikeMcC399 commented on Nov 4, 2026

    @MikeMcC399
    MemberAuthor

    10. I reckon it would be simpler to keep latest for Alpha versions. We tried to make the schedule so the Alpha versions are drop-in replacement for the "short-lived odd-numbered" release lines of the old schedule, so arguably it's logical to apply the same latest label to it

    Effectively I made the same suggestion to move latest from the LTS version to the Alpha version when I submitted #67135. Based on community feedback and increased understanding about the internal and external impact, I withdrew that suggestion and closed the issue.

    I now believe that it would be disruptive and risky to change the usage of latest (from how it is being applied at the moment). It's currently pointing to Node.js 26.13.0 - the Active LTS release. It's fine to move latest to Node.js 27.0.0 next year (plan date 2027-04-22) when it moves to Current status.

  8. aduh95 commented on Nov 4, 2026

    @aduh95
    Contributor

    FWIW pointing to an LTS release is a change, it's never pointed to a LTS release until now

  9. MikeMcC399 commented on Nov 4, 2026

    @MikeMcC399
    MemberAuthor

    Related request nodejs/nodejs-latest-linker#25 to add a next alias (or similar name) to track the highest Alpha or Current release, whichever is available).

  10. rvagg commented on Nov 6, 2026

    @rvagg
    Member

    I think this is being decided for you already by the inclusion of the alphas in dist.json. https://github.com/actions/setup-node#supported-version-syntax

    current/latest/node always resolve to the latest dist version. That version is then downloaded from actions/node-versions if possible, or directly from Node.js if not. Since it will not be cached always, there is possibility of hitting rate limit when downloading from dist

    So even now, anyone using current in GHA is getting v27, e.g. https://github.com/rvagg/cborg/actions/runs/41948775554/job/126987451423

    In effect, nodejs/nodejs-dist-indexer#107 has made the decision for you and you should either roll with and make latest be the alpha, or wind that back. This probably should have been planned out more carefully when coming up with the alpha strategy in the first place, but this is where we're at now.

  11. MikeMcC399 commented on Nov 6, 2026

    @MikeMcC399
    MemberAuthor

    @rvagg

    You're describing a related topic, and there are already issues being worked on by the actions/setup-node team to correct this, and make it a user choice about whether Alpha is installed or not:

  12. MikeMcC399 commented on Nov 18, 2026

    @MikeMcC399
    MemberAuthor

    #67135 (comment) has a list of a few Node.js version managers which have converted to interpreting latest (or node) so that Alpha versions are excluded.

    That matches the way that https://nodejs.org/download/release/latest/ is populated (at the moment it's showing node-v26.13.1* files).

    GitHub Actions actions/setup-node suggest currently to run from the main branch to avoid latest referring to an Alpha release.

  13. ljharb commented on Nov 19, 2026

    @ljharb
    SponsorMember

    The entire point of alpha was "never use this in production" which also means nobody should get it by default. The decision to include it in index.tab/json in the first place was a mistake, and one that will inevitably be worked around by every version manager. It would be much more efficient to stop listing alphas there at all.

  14. shadowspawn commented on Nov 20, 2026

    @shadowspawn
    Member

    The entire point of alpha was "never use this in production".

    Entire point? I thought a major point of introducing alpha was to allow node to include breaking changes in a major version line which will eventually be promoted to production (aka LTS).

    It would be much more efficient to stop listing alphas there at all.

    A different location would have prevented alphas appearing unexpectedly. No argument there.

    But people encountering this are mostly using an alias/tag/label which implicitly was give-me-a-version-which-can-change-major-and-is-not-recommended-for-production. Albeit they may not have realised, which was part of the problem! At least with alpha in the version it is more noticeable now.

    One of the desires is to have library maintainers test the alpha version, especially in CI. If the alphas were listed somewhere else then every version manager would need to add support for a new source before it was conveniently possible, if they even did.


    My own path for interest. In advance of the alpha availability I decided to make n include alphas in latest like the odd versions were (same reasoning as @aduh95 described in earlier comment). Given nobody else has explicitly taken that route since the alpha release, I have now changed the behaviour to make alphas opt-in: excluded alphas from latest and added new latest-any label.

  15. ljharb commented on Nov 20, 2026

    @ljharb
    SponsorMember

    @shadowspawn it was indeed both. To allow multiple releases with breaking changes in the same "pre production" release line.

    Maintainers are much more likely to figure out how to install an alpha version than users are likely to figure out they shouldn't be using one. There are FAR more non-maintainers than maintainers, and the non-maintainers must be considered a higher priority.

  16. MikeMcC399 commented on Nov 20, 2026

    @MikeMcC399
    MemberAuthor

    The decision to include it in index.tab/json in the first place was a mistake, and one that will inevitably be worked around by every version manager. It would be much more efficient to stop listing alphas there at all.

    Version managers are indeed working around this, for example:

    Node.js version manager Version Alias resolved as
    GitHub actions/setup-node main latest 26.13.1
    n 12.0.0 latest 26.13.1
    nvm 0.41.0 node 26.13.1
    nvm-windows 1.2.2 latest 26.13.1
    nvm-windows >=2.1.0-beta.13 latest 26.13.1

    Also https://github.com/nodejs/docker-node has adapted to index.json including Alpha releases in the list and it publishes Node.js 27 Alpha images to https://hub.docker.com/_/node discovered this way.

    It would have been preferable to plan, publish and discuss these details before the Alpha release, but that didn't happen. The question was first asked on Oct 16, 2026 in nodejs/build#4522 less than 2 weeks before the release! Changing it now would be a breaking change and would spark off another round of adaption. It would break docker-node's Alpha publishing for instance.

    So my suggestion remains to document how things have been set up for the Alpha release, and my request is now not to make any related breaking changes for the Node.js 27 Alpha release. Learn from the Node.js 27 Alpha and make any necessary changes for the future Node.js 28 instead.

  17. MikeMcC399 commented on Nov 23, 2026

    @MikeMcC399
    MemberAuthor

    Wait for nodejs/nodejs-latest-linker#26 before updating the text in the README > Current and LTS releases documentation section.

    The section should be able to describe what is in the latest directory and where to find Alpha releases. This is still under discussion in nodejs/nodejs-latest-linker#26.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docrelease

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions