-
-
Notifications
You must be signed in to change notification settings - Fork 762
Description
Problem
Primary labels and aliases are:
lts,latest,current
Until last week, current was the newest version of node 24, which will be the next lts version. lts was (and is still` the newest version of node 22 which has now moved from active support to security support.
Last week, node 25 was released and that's what current now returns. In fact, latest, active, current all return 25.0.0, while lts, lts_active, lts_latest, supported all return 22.21.0.
Node recommends that odd versions should not be used in production since they become unsupported after six months.
Production applications should only use Active LTS or Maintenance LTS releases.
We are in the transition period where 24 has been active for six months and will be lts, but currently, there is no label in n that resolves to node 24, so I've had to change my script from n latest to n 24 and will have to remember to change it again next year.
IMO, for consistency with Node.js terminology, active should never resolve to an odd version, although current may. (See the diagram below)
Alternatively, lts_active should now resolve to 24, since 22 is now in maintenance.
Image from Node.js Releases:
Configuration Details
$ n --version
10.2.0
$ node -p process.platform
darwin