Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v14.2.0 release proposal #33232

Merged
merged 62 commits into from
May 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
c87ed21
assert: port common.mustCall() to assert
DavenportEmma Feb 27, 2020
4423304
vm: throw error when duplicated exportNames in SyntheticModule
himself65 Apr 13, 2020
8c40ffc
tools: update broken types in type parser
cjihrig Apr 25, 2020
8d5ac1b
wasi: rename __wasi_unstable_reactor_start()
cjihrig Apr 26, 2020
d7d9960
wasi: update start() behavior to match spec
cjihrig Apr 26, 2020
8325c29
deps: update to uvwasi 0.0.8
cjihrig Apr 26, 2020
ed45b51
path: fix comment grammar
thecodrr Apr 20, 2020
ec24577
v8: use AliasedBuffers for passing heap statistics around
joyeecheung Apr 19, 2020
542da43
lib: fix validateport error message when allowZero is false
rickyes Apr 15, 2020
aced1f5
test: flaky test-stdout-close-catch on freebsd
sam-github Apr 14, 2020
f79ef96
test: mark test flaky on freebsd
sam-github Apr 14, 2020
3cb1713
http2,doc: minor fixes
mildsunrise Apr 27, 2020
db293c4
cluster: fix error on worker disconnect/destroy
santigimeno Apr 1, 2020
637442f
crypto: key size must be int32 in DiffieHellman()
bnoordhuis Apr 10, 2020
e07cca6
crypto: generator must be int32 in DiffieHellman()
bnoordhuis Apr 10, 2020
83e165b
crypto: check DiffieHellman p and g params
bnoordhuis Apr 10, 2020
c49e3ea
console: support console constructor groupIndentation option
rickyes Apr 21, 2020
10a87c8
src: remove unnecessary fully qualified names
rickyes Apr 26, 2020
12426f5
tools: update [email protected]
Trott Apr 26, 2020
c5a2f9a
doc: fix markdown parsing on doc/api/os.md
juanarbol Apr 25, 2020
466213d
n-api: simplify uv_idle wrangling
bnoordhuis Apr 22, 2020
82e459d
doc: don't check links in tmp dirs
bnoordhuis Apr 22, 2020
92c7e06
test: check args on SourceTextModule cachedData
juanarbol Apr 20, 2020
b183d0a
stream: let Duplex re-use Writable properties
ronag Apr 26, 2020
289a5c8
doc: some grammar fixes
ChrisAHolland Apr 26, 2020
de15edc
doc: improve worker pool example
ranjan-purbey Apr 26, 2020
3c2f608
test: correct typo in test name
cjihrig Apr 27, 2020
c6d632a
worker: unify custom error creation
addaleax Apr 27, 2020
bc9e413
worker: add stack size resource limit option
addaleax Apr 27, 2020
bc40ed3
stream: add null check in Readable.from
rexagod Apr 16, 2020
2396219
doc: correct Nodejs to Node.js spelling
nschonni Apr 27, 2020
541ea03
src: separate out NgLibMemoryManagerBase
jasnell Apr 27, 2020
eab4be1
lib: cosmetic change to builtinLibs list for maintainability
jasnell Apr 27, 2020
f4e5ab1
src: crypto::UseSNIContext to use BaseObjectPtr
jasnell Apr 27, 2020
f61928b
src: return undefined when validation err == 0
jasnell Apr 27, 2020
3866dc1
wasi: use free() to release preopen array
addaleax Apr 28, 2020
de643bc
src: use unique_ptr for CachedData in ContextifyScript::New
addaleax Apr 28, 2020
9ccb6b2
test: add missing calls to napi_async_destroy
addaleax Apr 28, 2020
af7da46
test: fix out-of-bound reads from invalid sizeof usage
addaleax Apr 28, 2020
f62d92b
build: add --error-on-warn configure flag
danbev Apr 6, 2020
a87d371
tools: fix redundant-move warning in inspector
danbev Apr 6, 2020
5eccf1e
module: no type module resolver side effects
guybedford Apr 27, 2020
4cfa7e0
stream: simplify Readable push/unshift logic
himself65 Apr 17, 2020
d39254a
vm: fix vm.measureMemory() and introduce execution option
joyeecheung Apr 22, 2020
45032a3
stream: fix stream.finished on Duplex
ronag Apr 28, 2020
89ed7a5
test: move test-process-title to sequential
addaleax Apr 29, 2020
c5a4534
deps: V8: backport e29c62b74854
addaleax Apr 28, 2020
e276524
test: skip memory usage tests when ASAN is enabled
addaleax Apr 28, 2020
451993e
http: set default timeout in agent keepSocketAlive
omsmith Apr 28, 2020
a990137
doc: fix the spelling error in stream.md
yunnysunny Feb 1, 2020
36d5002
doc: clarify when not to run CI on docs
juanarbol Apr 27, 2020
d02ced8
doc: add util.types.isArrayBufferView()
kevinoid Apr 27, 2020
6734cc4
tools: bump remark-preset-lint-node to 1.15.0
Trott Apr 30, 2020
bb2d2f6
src: remove unused v8 Message namespace
edsadr Apr 30, 2020
7893bde
doc: fix a typo in crypto.generateKeyPairSync()
himself65 May 1, 2020
a4ec01c
http: simplify sending header
ronag May 1, 2020
2174159
esm: improve commonjs hint on module not found
dnlup Mar 21, 2020
413f5d3
doc: add missing deprecation not
ronag May 1, 2020
60ebbc4
test: update c8 ignore comment
bcoe Apr 30, 2020
74b0e8c
http: ensure client request emits close
ronag Apr 30, 2020
6925b35
doc: mark assert.CallTracker experimental
BridgeAR Apr 28, 2020
d68f78f
2020-05-05, Version 14.2.0 (Current)
targos May 4, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V14.md#14.1.0">14.1.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V14.md#14.2.0">14.2.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V14.md#14.1.0">14.1.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V14.md#14.0.0">14.0.0</a><br/>
</td>
<td valign="top">
Expand Down
12 changes: 10 additions & 2 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
'uv_library%': 'static_library',

'clang%': 0,
'error_on_warn%': 'false',

'openssl_fips%': '',
'openssl_no_asm%': 0,
Expand All @@ -35,7 +36,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.32',
'v8_embedder_string': '-node.33',

##### V8 defaults for Node.js #####

Expand Down Expand Up @@ -218,7 +219,14 @@
# Forcibly disable -Werror. We support a wide range of compilers, it's
# simply not feasible to squelch all warnings, never mind that the
# libraries in deps/ are not under our control.
'cflags!': ['-Werror'],
'conditions': [
[ 'error_on_warn=="false"', {
'cflags!': ['-Werror'],
}, '(_target_name!="<(node_lib_target_name)" or '
'_target_name!="<(node_core_target_name)")', {
'cflags!': ['-Werror'],
}],
],
'msvs_settings': {
'VCCLCompilerTool': {
'BufferSecurityCheck': 'true',
Expand Down
6 changes: 6 additions & 0 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@
choices=valid_os,
help='operating system to build for ({0})'.format(', '.join(valid_os)))

parser.add_option('--error-on-warn',
action='store_true',
dest='error_on_warn',
help='Turn compiler warnings into errors for node core sources.')

parser.add_option('--gdb',
action='store_true',
dest='gdb',
Expand Down Expand Up @@ -1018,6 +1023,7 @@ def configure_node(o):
o['variables']['node_install_npm'] = b(not options.without_npm)
o['variables']['debug_node'] = b(options.debug_node)
o['default_configuration'] = 'Debug' if options.debug else 'Release'
o['variables']['error_on_warn'] = b(options.error_on_warn)

host_arch = host_arch_win() if os.name == 'nt' else host_arch_cc()
target_arch = options.dest_cpu or host_arch
Expand Down
1 change: 1 addition & 0 deletions deps/uvwasi/include/fd_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ struct uvwasi_fd_wrap_t {
uv_file fd;
char* path;
char* real_path;
char* normalized_path;
uvwasi_filetype_t type;
uvwasi_rights_t rights_base;
uvwasi_rights_t rights_inheriting;
Expand Down
6 changes: 3 additions & 3 deletions deps/uvwasi/include/uvwasi.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extern "C" {

#define UVWASI_VERSION_MAJOR 0
#define UVWASI_VERSION_MINOR 0
#define UVWASI_VERSION_PATCH 6
#define UVWASI_VERSION_PATCH 8
#define UVWASI_VERSION_HEX ((UVWASI_VERSION_MAJOR << 16) | \
(UVWASI_VERSION_MINOR << 8) | \
(UVWASI_VERSION_PATCH))
Expand Down Expand Up @@ -66,7 +66,7 @@ typedef struct uvwasi_options_s {
const uvwasi_mem_t* allocator;
} uvwasi_options_t;

// Embedder API.
/* Embedder API. */
uvwasi_errno_t uvwasi_init(uvwasi_t* uvwasi, uvwasi_options_t* options);
void uvwasi_destroy(uvwasi_t* uvwasi);
uvwasi_errno_t uvwasi_embedder_remap_fd(uvwasi_t* uvwasi,
Expand All @@ -75,7 +75,7 @@ uvwasi_errno_t uvwasi_embedder_remap_fd(uvwasi_t* uvwasi,
const char* uvwasi_embedder_err_code_to_string(uvwasi_errno_t code);


// WASI system call API.
/* WASI system call API. */
uvwasi_errno_t uvwasi_args_get(uvwasi_t* uvwasi, char** argv, char* argv_buf);
uvwasi_errno_t uvwasi_args_sizes_get(uvwasi_t* uvwasi,
size_t* argc,
Expand Down
2 changes: 1 addition & 1 deletion deps/uvwasi/include/wasi_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <stddef.h>
#include <stdint.h>

/* API: https://github.com/WebAssembly/WASI/blob/master/phases/unstable/docs/wasi_unstable_preview0.md */
/* API: https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md */

typedef uint8_t uvwasi_advice_t;
#define UVWASI_ADVICE_NORMAL 0
Expand Down
4 changes: 2 additions & 2 deletions deps/uvwasi/src/clocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ uvwasi_errno_t uvwasi__clock_gettime_thread_cputime(uvwasi_timestamp_t* time) {
UVWASI__WIN_TIME_AND_RETURN(GetCurrentThread(), *time);
#elif defined(__APPLE__)
UVWASI__OSX_THREADTIME_AND_RETURN(*time);
#elif defined(CLOCK_THREAD_CPUTIME_ID) && !defined(__sun)
#elif defined(CLOCK_THREAD_CPUTIME_ID) && !defined(__sun) && !defined(__PASE__)
UVWASI__CLOCK_GETTIME_AND_RETURN(CLOCK_THREAD_CPUTIME_ID, *time);
#else
# if defined(RUSAGE_LWP)
Expand Down Expand Up @@ -185,7 +185,7 @@ uvwasi_errno_t uvwasi__clock_getres_thread_cputime(uvwasi_timestamp_t* time) {
UVWASI__WIN_GETRES_AND_RETURN(*time);
#elif defined(__APPLE__)
UVWASI__SLOW_GETRES_AND_RETURN(*time);
#elif defined(CLOCK_THREAD_CPUTIME_ID) && !defined(__sun)
#elif defined(CLOCK_THREAD_CPUTIME_ID) && !defined(__sun) && !defined(__PASE__)
UVWASI__CLOCK_GETTIME_AND_RETURN(CLOCK_THREAD_CPUTIME_ID, *time);
#elif defined(RUSAGE_THREAD) || defined(RUSAGE_LWP)
UVWASI__SLOW_GETRES_AND_RETURN(*time);
Expand Down
19 changes: 17 additions & 2 deletions deps/uvwasi/src/fd_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "uv.h"
#include "fd_table.h"
#include "path_resolver.h"
#include "wasi_types.h"
#include "wasi_rights.h"
#include "uv_mapping.h"
Expand Down Expand Up @@ -75,20 +76,33 @@ uvwasi_errno_t uvwasi_fd_table_insert(uvwasi_t* uvwasi,
char* mp_copy;
size_t rp_len;
char* rp_copy;
char* np_copy;

mp_len = strlen(mapped_path);
rp_len = strlen(real_path);
/* Reserve room for the mapped path, real path, and normalized mapped path. */
entry = (struct uvwasi_fd_wrap_t*)
uvwasi__malloc(uvwasi, sizeof(*entry) + mp_len + rp_len + 2);
if (entry == NULL) return UVWASI_ENOMEM;
uvwasi__malloc(uvwasi, sizeof(*entry) + mp_len + mp_len + rp_len + 3);
if (entry == NULL)
return UVWASI_ENOMEM;

mp_copy = (char*)(entry + 1);
rp_copy = mp_copy + mp_len + 1;
np_copy = rp_copy + rp_len + 1;
memcpy(mp_copy, mapped_path, mp_len);
mp_copy[mp_len] = '\0';
memcpy(rp_copy, real_path, rp_len);
rp_copy[rp_len] = '\0';

/* Calculate the normalized version of the mapped path, as it will be used for
any path calculations on this fd. Use the length of the mapped path as an
upper bound for the normalized path length. */
err = uvwasi__normalize_path(mp_copy, mp_len, np_copy, mp_len);
if (err) {
uvwasi__free(uvwasi, entry);
goto exit;
}

uv_rwlock_wrlock(&table->rwlock);

/* Check that there is room for a new item. If there isn't, grow the table. */
Expand Down Expand Up @@ -138,6 +152,7 @@ uvwasi_errno_t uvwasi_fd_table_insert(uvwasi_t* uvwasi,
entry->fd = fd;
entry->path = mp_copy;
entry->real_path = rp_copy;
entry->normalized_path = np_copy;
entry->type = type;
entry->rights_base = rights_base;
entry->rights_inheriting = rights_inheriting;
Expand Down
Loading