Commit graph

236 commits

Author SHA1 Message Date
adam
2ce674fe46 nodejs: updated to 14.5.0
Version 14.5.0 (Current)

Notable Changes

V8 engine is updated to version 8.3
Initial experimental implementation of EventTarget
2020-07-03 19:00:15 +00:00
gutteridge
088cc5f256 nodejs/nodejs10/nodejs12: these now require nghttp2>=1.41.0
As of the last updates to each of these, made earlier this month, they
now require nghttp2>=1.41.0 to build. They expect
nghttp2_option_set_max_settings to be available.
2020-06-18 04:58:24 +00:00
adam
06db8f0be1 nodejs: updated to 14.4.0
Version 14.4.0 (Current)

Notable changes

This is a security release.

Vulnerabilities fixed:

CVE-2020-8172: TLS session reuse can lead to host certificate verification bypass (High).
CVE-2020-11080: HTTP/2 Large Settings Frame DoS (Low).
CVE-2020-8174: napi_get_value_string_*() allows various kinds of memory corruption (High).

Commits

- crypto: update root certificates
- (SEMVER-MINOR) deps: update nghttp2 to 1.41.0
- (SEMVER-MINOR) http2: implement support for max settings entries
- napi: fix memory corruption vulnerability
- tls: emit session after verifying certificate
- tools: update certdata.txt
2020-06-03 08:41:24 +00:00
adam
6bd0c30da6 Revbump for icu 2020-06-02 08:22:31 +00:00
wiz
188111f641 *: reset MAINTAINER for fhajny on his request 2020-05-27 19:37:36 +00:00
adam
2919b86586 nodejs: updated to 14.3.0
Version 14.3.0 (Current)

Notable Changes
REPL previews improvements with autocompletion

The output preview is changed to generate previews for autocompleted input instead of the actual input.

Pressing <enter> during a preview is now going to evaluate the whole string including the autocompleted part. Pressing <escape> cancels that behavior.

Support for Top-Level Await

It's now possible to use the await keyword outside of async functions.
2020-05-20 06:58:35 +00:00
adam
c5d1f2ed56 nodejs: updated to 14.2.0
Version 14.2.0 (Current)

Notable Changes
* Track function calls with assert.CallTracker (experimental)
* Console groupIndentation option
2020-05-08 13:47:25 +00:00
adam
7d4b705c63 revbump after boost update 2020-05-06 14:04:05 +00:00
adam
dd51385ab7 nodejs: updated to 14.1.0
Version 14.1.0

Notable Changes

deps: upgrade openssl sources to 1.1.1g
doc: add juanarbol as collaborator
http: doc deprecate abort and improve docs
module: do not warn when accessing __esModule of unfinished exports
n-api: detect deadlocks in thread-safe function
src: deprecate embedder APIs with replacements
stream:
* don't emit end after close
* don't wait for close on legacy streams
* pipeline should only destroy un-finished streams
vm: add importModuleDynamically option to compileFunction


Version 14.0.0 (Current)

Notable Changes

ECMAScript Modules - Experimental Warning Removal
New V8 ArrayBuffer API
cli, report: move --report-on-fatalerror to stable
deps: upgrade to libuv 1.37.0
fs: add fs/promises alias module
2020-04-30 06:58:21 +00:00
riastradh
a732f7fc89 lang/nodejs: Bump libuv API depends to 1.29 for uv_get_constrained_memory. 2020-04-29 19:23:10 +00:00
ryoon
333dd367b6 nodejs: Fix build under NetBSD 2020-04-17 10:57:02 +00:00
adam
19ac058519 nodejs: updated to 13.13.0
Version 13.13.0 (Current)

Notable Changes

New file system APIs

Added a new function, fs.readv (with sync and promisified versions). This function takes an array of ArrayBufferView elements and will write the data it reads sequentially to the buffers.
A new overload is available for fs.readSync, which allows to optionally pass any of the offset, length and position parameters.

Other changes

dns:
Added the dns.ALL flag, that can be passed to dns.lookup() with dns.V4MAPPED to return resolved IPv6 addresses as well as IPv4 mapped IPv6 addresses.

http:
The default maximum HTTP header size was changed from 8KB to 16KB.

n-api:
Calls to napi_call_threadsafe_function from the main thread can now return the napi_would_deadlock status in certain circumstances.

util:
Added a new maxStrLength option to util.inspect, to control the maximum length of printed strings. Its default value is Infinity.

worker:
Added support for passing a transferList along with workerData to the Worker constructor
2020-04-17 07:51:55 +00:00
adam
24daafa112 Recursive revision bump after textproc/icu update 2020-04-12 08:27:48 +00:00
adam
0ea3262011 nodejs: updated to 13.12.0
Version 13.12.0
build:
* macOS package notarization
deps:
* upgrade npm to 6.14.4
* update to uvwasi 0.0.6
* upgrade to libuv 1.35.0
lib:
* add --disable-proto option to cli
node_report:
* move diagnostic reports to stable
worker:
* allow URL in Worker constructor
util:
* use a global symbol for util.promisify.custom
2020-04-06 20:21:57 +00:00
rillig
27765e1864 lang/nodejs: allow no-op SUBST 2020-03-22 20:28:13 +00:00
adam
d4f3db6918 nodejs: updated to 3.11.0
Version 13.11.0

Notable Changes:
async_hooks: add sync enterWith to ALS
cli: allow --jitless V8 flag in NODE_OPTIONS
fs: return first folder made by mkdir recursive
n-api: define release 6
os: create a getter for kernel version
wasi: add returnOnExit option
2020-03-18 10:03:59 +00:00
tnn
22a17c931b nodejs: remove a stale portability skip. Add another one. 2020-03-13 00:45:06 +00:00
jperkin
19524e16da nodejs*: Unbreak builds, again, this time with comment. 2020-03-11 09:22:49 +00:00
adam
573b699def nodejs: updated to 13.10.1
Version 13.10.1 (Current):

In Node.js 13.9.0 deps/zlib was switched to the chromium maintained implementation. This change had the unforseen consequence of breaking building from the tarballs we release as we were too aggressively removing unneccessary files from the deps/zlib folder. This release includes a patch that ensures that individuals will once again be able to build Node.js from source.
2020-03-05 10:13:18 +00:00
adam
c6bbb4e69e nodejs: updated to 13.10.0
Version 13.10.0 (Current):

Notable Changes

async_hooks
- introduce async-context API
stream
- support passing generator functions into pipeline()
tls
- expose SSL_export_keying_material
vm
- implement vm.measureMemory() for per-context memory measurement
2020-03-04 18:59:39 +00:00
adam
62522c0c94 nodejs: updated to 13.9.0
Version 13.9.0 (Current)
async_hooks
* add executionAsyncResource
crypto
* add crypto.diffieHellman
* add DH support to generateKeyPair
* simplify DH groups
* add key type 'dh'
test
* skip keygen tests on arm systems
perf_hooks
* add property flags to GCPerformanceEntry
process
* report ArrayBuffer memory in memoryUsage()
readline
* make tab size configurable
report
* add support for Workers
worker
* add ability to take heap snapshot from parent thread
added new collaborators
* add ronag to collaborators
2020-02-24 16:04:21 +00:00
jperkin
2dfcdec6c1 nodejs*: Consolidate python27 requirement.
It's still required as of nodejs v13.
2020-02-18 23:06:05 +00:00
adam
17f4d01def nodejs: updated to 13.8.0
Version 13.8.0 (Current):

Notable Changes

This is a security release.

Vulnerabilities fixed:

CVE-2019-15606: HTTP header values do not have trailing OWS trimmed.
CVE-2019-15605: HTTP request smuggling using malformed Transfer-Encoding header.
CVE-2019-15604: Remotely trigger an assertion on a TLS server with a malformed certificate string.

Also, HTTP parsing is more strict to be more secure. Since this may cause problems in interoperability with some non-conformant HTTP implementations, it is possible to disable the strict checks with the --insecure-http-parser command line flag, or the insecureHTTPParser http option. Using the insecure HTTP parser should be avoided.
2020-02-07 09:51:53 +00:00
jperkin
982c63fe94 *: Remove obsolete BUILDLINK_API_DEPENDS.openssl. 2020-01-25 10:45:10 +00:00
adam
cc82abf612 nodejs12: use external OpenSSL; bump revision 2020-01-24 18:55:49 +00:00
adam
b3c2386e9c nodejs: updated to 13.7.0
Version 13.7.0

Notable Changes
deps:
* upgrade to libuv 1.34.1
* upgrade npm to 6.13.6
module
* add API for interacting with source maps
* loader getSource, getFormat, transform hooks
* logical conditional exports ordering
* unflag conditional exports
process:
* allow monitoring uncaughtException
2020-01-24 18:52:20 +00:00
adam
a308b104e2 nodejs: updated to 13.6.0
Version 13.6.0 (Current):

Notable Changes
* assert:
  - Implement assert.match() and assert.doesNotMatch()
* events:
  - Add EventEmitter.on to async iterate over events
  - Allow monitoring error events
* fs:
  - Allow overriding fs for streams
* perf_hooks:
  - Move perf_hooks out of experimental
* repl:
  - Implement ZSH-like reverse-i-search
* tls:
  - Add PSK (pre-shared key) support
2020-01-08 22:30:38 +00:00
tnn
832b24ce43 nodejs: work around type issue in NetBSD's copy of libc++ headers 2020-01-06 23:06:44 +00:00
adam
2013de043b nodejs: updated to 13.5.0
Version 13.5.0 (Current):
Notable Changes
cli:
* add --trace-exit cli option
http,https:
* increase server headers timeout
readline:
* update ansi-regex
* promote _getCursorPos to public api
repl:
* add completion preview
util:
* add Set and map size to inspect output
wasi:
* require CLI flag to require() wasi module
2019-12-29 15:38:04 +00:00
adam
02cd59eccf Get rid of http-parser for nodejs 12+ 2019-12-13 06:26:07 +00:00
adam
7a3df3ad92 nodejs: updated to 13.3.0
Version 13.3.0:

Notable Changes
fs:
Reworked experimental recursive rmdir()
The maxBusyTries option is renamed to maxRetries, and its default is set to 0. The emfileWait option has been removed, and EMFILE errors use the same retry logic as other errors. The retryDelay option is now supported. ENFILE errors are now retried.
http:
Make maximum header size configurable per-stream or per-server
http2:
Make maximum tolerated rejected streams configurable
Allow to configure maximum tolerated invalid frames
wasi:
Introduce initial WASI support
2019-12-09 20:03:51 +00:00
adam
89d7e0a79d nodejs: updated to 10.17.0
Version 10.17.0 'Dubnium' (LTS):

Notable changes
crypto:
- add support for chacha20-poly1305 for AEAD
- increase maxmem range from 32 to 53 bits
deps:
- update npm to 6.11.3
- upgrade openssl sources to 1.1.1d
dns: remove dns.promises experimental warning
fs: remove experimental warning for fs.promises
http: makes response.writeHead return the response
http2: makes response.writeHead return the response
n-api:
- make func argument of napi_create_threadsafe_function optional
- mark version 5 N-APIs as stable
- implement date object
process: add --unhandled-rejections flag
stream:
- implement Readable.from async iterator utility
- make Symbol.asyncIterator support stable
2019-11-24 15:49:31 +00:00
rillig
8c6aee8563 lang: align variable assignments
pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
2019-11-03 19:03:56 +00:00
kamil
012de308d9 nodejs: Fix build with Clang 10+ 2019-09-12 16:04:07 +00:00
maya
581bc2b0bd Create a node.js REPLACE_* mk-fragment.
Extracting the code in devel/yarn to be used in another package, too.
2019-08-18 03:44:42 +00:00
adam
4df09907ad nodejs: updated to 10.16.3
Version 10.16.3 'Dubnium' (LTS):

Notable changes

This is a security release.

Node.js, as well as many other implementations of HTTP/2, have been found vulnerable to Denial of Service attacks. See https://github.com/Netflix/security-bulletins/blob/master/advisories/third-party/2019-002.md for more information.

Vulnerabilities fixed:

CVE-2019-9511 “Data Dribble”: The attacker requests a large amount of data from a specified resource over multiple streams. They manipulate window size and stream priority to force the server to queue the data in 1-byte chunks. Depending on how efficiently this data is queued, this can consume excess CPU, memory, or both, potentially leading to a denial of service.

CVE-2019-9512 “Ping Flood”: The attacker sends continual pings to an HTTP/2 peer, causing the peer to build an internal queue of responses. Depending on how efficiently this data is queued, this can consume excess CPU, memory, or both, potentially leading to a denial of service.

CVE-2019-9513 “Resource Loop”: The attacker creates multiple request streams and continually shuffles the priority of the streams in a way that causes substantial churn to the priority tree. This can consume excess CPU, potentially leading to a denial of service.

CVE-2019-9514 “Reset Flood”: The attacker opens a number of streams and sends an invalid request over each stream that should solicit a stream of RST_STREAM frames from the peer. Depending on how the peer queues the RST_STREAM frames, this can consume excess memory, CPU, or both, potentially leading to a denial of service.

CVE-2019-9515 “Settings Flood”: The attacker sends a stream of SETTINGS frames to the peer. Since the RFC requires that the peer reply with one acknowledgement per SETTINGS frame, an empty SETTINGS frame is almost equivalent in behavior to a ping. Depending on how efficiently this data is queued, this can consume excess CPU, memory, or both, potentially leading to a denial of service.

CVE-2019-9516 “0-Length Headers Leak”: The attacker sends a stream of headers with a 0-length header name and 0-length header value, optionally Huffman encoded into 1-byte or greater headers. Some implementations allocate memory for these headers and keep the allocation alive until the session dies. This can consume excess memory, potentially leading to a denial of service.

CVE-2019-9517 “Internal Data Buffering”: The attacker opens the HTTP/2 window so the peer can send without constraint; however, they leave the TCP window closed so the peer cannot actually write (many of) the bytes on the wire. The attacker then sends a stream of requests for a large response object. Depending on how the servers queue the responses, this can consume excess memory, CPU, or both, potentially leading to a denial of service.

CVE-2019-9518 “Empty Frames Flood”: The attacker sends a stream of frames with an empty payload and without the end-of-stream flag. These frames can be DATA, HEADERS, CONTINUATION and/or PUSH_PROMISE. The peer spends time processing each frame disproportionate to attack bandwidth. This can consume excess CPU, potentially leading to a denial of service.
2019-08-16 15:18:16 +00:00
adam
ecfb27dc23 nodejs: updated to 10.16.2
Version 10.16.2 'Dubnium' (LTS)

Notable changes

This release patches a regression in the OpenSSL upgrade to 1.1.1c that causes intermittent hangs in machines that have low entropy.
2019-08-07 07:33:25 +00:00
adam
aeb5ade84e nodejs: updated to 10.16.1
Version 10.16.1 'Dubnium' (LTS)

Notable changes
deps: upgrade openssl sources to 1.1.1c
stream: do not unconditionally call \_read() on resume()
worker: fix nullptr deref after MessagePort deser failure
2019-08-03 07:31:15 +00:00
jperkin
03236ba2db nodejs: Work around getentropy issue on SunOS.
Noticed by Stefan Husch in joyent/pkgsrc#203.
2019-07-02 17:09:25 +00:00
adam
1859920cb9 nodejs: updated to 10.16.0
Version 10.16.0 'Dubnium' (LTS)

Notable Changes
deps:
update ICU to 64.2
upgrade npm to 6.9.0
upgrade openssl sources to 1.1.1b
upgrade to libuv 1.28.0
events: add once method to use promises with EventEmitter
n-api: mark thread-safe function as stable
repl: support top-level for-await-of
zlib: add brotli support
2019-05-31 20:52:00 +00:00
ryoon
6fc378bce9 Recursive revbump from textproc/icu 2019-04-03 00:32:25 +00:00
tsutsui
5f0411ede0 nodejs: fix SIGABRT on NetBSD/i386 8.0 by pulling upstream PR #21848.
Also apply similar ifdefs for NetBSD as FreeBSD and OpenBSD.
Now nodejs binary won't fail during lang/npm and www/firefox builds
on NetBSD/i386 8.0.

Bump PKGREVISION.

No particular comments on pkgsrc-bug@:
 http://mail-index.netbsd.org/pkgsrc-bugs/2019/03/19/msg066102.html
Should close PR pkg/53497, PR pkg/53758, PR pkg/53792, and PR pkg/53794.
2019-03-23 11:15:18 +00:00
adam
2f28391c99 nodejs: updated to 10.15.3
Version 10.15.3 'Dubnium' (LTS)
Notable Changes
doc: add antsmartian to collaborators
http: fix error check in Execute()
stream: fix end-of-stream for HTTP/2
2019-03-07 08:47:45 +00:00
adam
85337a413b nodejs: updated to 10.15.2
Version 10.15.2 'Dubnium' (LTS):

This is a security release. All Node.js users should consult the security release summary at:

https://nodejs.org/en/blog/vulnerability/february-2019-security-releases/

for details on patched vulnerabilities.

A fix for the following CVE is included in this release:

Node.js: Slowloris HTTP Denial of Service with keep-alive (CVE-2019-5737)
Notable Changes

http: Further prevention of "Slowloris" attacks on HTTP and HTTPS connections by consistently applying the receive timeout set by server.headersTimeout to connections in keep-alive mode.
2019-03-01 08:47:07 +00:00
rin
f4fed899a6 - Fix OpenSSL support for NetBSD/amd64 (https works fine now)
- Fix NetBSD/i386 support (hopefully also works for other ILP32 archs)
- Add NetBSD/aarch64 support
- Bump revision
2019-02-24 12:18:55 +00:00
nia
264beaac80 nodejs: Require http-parser>=2.9.0.
ok leot
2019-01-31 13:38:49 +00:00
adam
57913482b8 nodejs: updated to 10.15.1
10.15.1:
Notable Changes
doc:
- add oyyd to collaborators (Ouyang Yadong)
tls:
- throw if protocol too long
Bug fixes
2019-01-31 08:46:37 +00:00
ryoon
605971ebbf Fix build under NetBSD/i386 8.0, based on PR pkg/53758 2019-01-21 11:00:45 +00:00
jperkin
afd0682525 nodejs: Ensure largefile is enabled on SunOS. 2019-01-18 16:24:37 +00:00
ryoon
77e41b0ce1 Fix build under NetBSD/earmv7hf-el 2019-01-10 13:02:41 +00:00