Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2023 19:30:01 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5577e1f82531 - main - Mk/Uses/nodejs.mk: Add nodejs 21 and update current and lts
Message-ID:  <202311011930.3A1JU1jo002615@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5577e1f825319f2b8314364f50919879a51cd1f5

commit 5577e1f825319f2b8314364f50919879a51cd1f5
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-01 19:29:10 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-01 19:29:10 +0000

    Mk/Uses/nodejs.mk: Add nodejs 21 and update current and lts
    
    Node.js 20 is the new LTS with active LTS support since October 24, 2023.
    Node.js 21 is the new current.
    
    Reference:      https://github.com/nodejs/Release/blob/main/README.md#release-schedule
---
 Mk/Uses/nodejs.mk | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/Mk/Uses/nodejs.mk b/Mk/Uses/nodejs.mk
index ab307d21467e..bfe00c3fe1fb 100644
--- a/Mk/Uses/nodejs.mk
+++ b/Mk/Uses/nodejs.mk
@@ -7,13 +7,13 @@
 #   - build     use node as build-time dependency
 #   - run       use node as runtime dependency
 #   - env       set the environment (NODEJS_VERSION and NODEJS_SUFFIX)
-#   - version   available version: lts, current, 16, 18, 20
+#   - version   available version: lts, current, 16, 18, 20, 21
 #
 # Note:
 # - The supported versions follow upstream release schedule
 #   https://github.com/nodejs/Release/blob/main/README.md#release-schedule
-#   - lts is 18 now
-#   - current is 20 now
+#   - lts is 20 now
+#   - current is 21 now
 # - USES=nodejs means USES=nodejs:build,run
 # - If you define a version, you must provide run and/or build
 #
@@ -22,13 +22,13 @@
 .if !defined(_INCLUDE_USES_NODEJS_MK)
 _INCLUDE_USES_NODEJS_MK=	yes
 
-_VALID_NODEJS_VERSIONS=	16 18 20 current lts
+_VALID_NODEJS_VERSIONS=	16 18 20 21 current lts
 
 .  if ! ${_VALID_NODEJS_VERSIONS:M${NODEJS_DEFAULT}}
 IGNORE=	Invalid default nodejs version ${NODEJS_DEFAULT}; valid versions are ${_VALID_NODEJS_VERSIONS}
 .  endif
 
-.  if !empty(nodejs_ARGS:Nbuild:Nenv:Nrun:Nlts:Ncurrent:N16:N18:N20)
+.  if !empty(nodejs_ARGS:Nbuild:Nenv:Nrun:Nlts:Ncurrent:N16:N18:N20:N21)
 IGNORE=		USES=nodejs has invalid arguments ${nodejs_ARGS}
 .  endif
 
@@ -47,7 +47,7 @@ _NODEJS_VER=	${version}
 _NODEJS_VER=	${NODEJS_DEFAULT}
 .  endif
 
-NODEJS_VERSION=	${_NODEJS_VER:S|current|20|:S|lts|18|}
+NODEJS_VERSION=	${_NODEJS_VER:S|current|21|:S|lts|20|}
 NODEJS_SUFFIX=	-node${NODEJS_VERSION}
 
 .  if ${nodejs_ARGS:M*build*}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311011930.3A1JU1jo002615>