Node.js is a JavaScript runtime built on Chrome's V8 JavaScript
engine. Node.js uses an event-driven, non-blocking I/O model that
makes it lightweight and efficient. Node.js' package ecosystem,
npm, is the largest ecosystem of open source libraries in the world.
===> The following configuration options are available for node14-14.21.1_1:
BUNDLED_SSL=off: Use bundled OpenSSL implementation from node.js
COREPACK=on: Build and install corepack package manager
DOCS=on: Build and/or install documentation
DTRACE=on: Build with DTrace probes
NLS=on: Native Language Support
===> Use 'make config' to modify these settings
www/node14: Mark DEPRECATED
- Upstream EOL reaches on 2023-04-30
See: https://nodejs.dev/en/about/releases/
- Set EXPIRATION_DATE on 2023-05-26
- Mark BROKEN_SSL for openssl30 and later
Framework: Rewrite nodejs.mk and reorganize www/{node,npm,yarn}
The current USES=nodejs has the following issues:
- www/node is not the default version while www/node16 is.
- It also means inconsistent naming of node ports.
- www/npm duplicates with www/npm-node16.
- www/yarn duplicates with www/yarn-node16.
The notable changes are introduced to fix the above issues:
- Rewrite Mk/Uses/nodejs.mk.
- Add new LTS version of nodejs (www/noe18).
- Add new current version of nodejs (www/node19).
- Change default nodejs version from 16 to 18 (latest LTS).
- Use consistent naming for all supported node versions.
- Convert www/node, www/npm and www/yarn to meta ports.
After this commit:
- All supported node versions are named as node{14,16,18,19}
- www/node is a meta port which depends on the default version (e.g. www/node18)
- www/npm is a meta port which depends on the default version (e.g.
www/npm-node18)
- www/yarn is a meta port which depends on the default version (e.g.
www/yarn-node18)
- Bump PORTREVISION of dependent ports for dependency change (from www/node16 to
www/node18)
Discussed with: jrm, otis, pizzamig
www/node14: Update to 14.21.1
The following CVE is fixed in this release:
CVE-2022-43548: DNS rebinding in --inspect via invalid octal IP
address (Medium)
Changelog: https://github.com/nodejs/node/releases/tag/v14.21.1
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
*/*: Remove redundant '-[0-9]*' from CONFLICTS_INSTALL
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").
Approved by: portmgr (blanket)
www/node16: copy from www/node, update 16.11.1 -> 16.12.0
Create a new port for the latest Node.js v16.x release, which will
become the v16.x LTS release line. Update CONFLICTS for the existing
Node.js ports to include the new node16 port and remove non-existent ports.
https://nodejs.org/en/blog/release/v16.12.0/
MFH: 2021Q4
Sponsored by: Miles AS
www/node14: Update 14.17.0 -> 14.17.1
https://nodejs.org/en/blog/release/v14.17.1/
Drop files/patch-deps_v8_src_objects_js-list-format.cc since the change
has been upstreamed along with the ICU minimum version bump.
Sponsored by: Miles AS
www/node14: Update 14.16.1_1 -> 14.17.0
https://nodejs.org/en/blog/release/v14.17.0/
Remove files/patch-tools_genv8constants.py which had a change that was
incompatible with an upstream change to make the tool compatible with
Python 3. Regenerate remaining patches with `make makepatch`.
Sponsored by: Miles AS
www/node14: copy from www/node, update 14.14.0 -> 14.15.0 (LTS)
Create a new port for the latest Node.js 14.15.0 LTS release. Update
CONFLICTS for the existing Node.js ports to include the new node14 port
and remove non-existent ports.
https://nodejs.org/en/blog/release/v14.15.0/
Sponsored by: Miles AS