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

v18.9.0 release proposal #44521

Merged
merged 94 commits into from Sep 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
30da2b4
build: added NINJA env to customize ninja binary
jdx Aug 22, 2022
7039916
tls: use OpenSSL constant for client random size
tniessen Aug 22, 2022
1cdccbc
tls: remove SecureContext setFreeListLength
tniessen Aug 22, 2022
6857ee8
src: make minor improvements to SecureBuffer
tniessen Aug 22, 2022
28781a1
crypto: improve RSA-PSS digest error messages
tniessen Aug 22, 2022
768c9cb
src: fix multiple format string bugs
tniessen Aug 22, 2022
11e9d6e
test: make tmpdir.js importable from esm
GeoffreyBooth Aug 23, 2022
8cc5556
doc: fix typo in test runner code examples
MoLow Aug 23, 2022
4a0f750
doc: add daeyeon to collaborators
daeyeon Aug 23, 2022
65c1f40
doc: add history for net.createServer() options
lpinca Aug 23, 2022
bce827e
vm: make ContextifyContext template context-independent
joyeecheung Aug 16, 2022
736a04a
vm: include vm context in the embedded snapshot
joyeecheung Aug 16, 2022
c4a45a9
vm: avoid unnecessary property getter interceptor calls
joyeecheung Aug 17, 2022
57da3db
deps: update undici to 5.9.1
nodejs-github-bot Aug 24, 2022
8175c65
test_runner: support programmatically running `--test`
MoLow Aug 15, 2022
b1eafe1
debugger: decrease timeout used to wait for the port to be free
joyeecheung Aug 24, 2022
c65d7fb
test: add OpenSSL 3.x providers test
richardlau Aug 24, 2022
df25900
report: add queue info for udp
theanarkh Aug 24, 2022
1f23c17
report: expose report public native apis
legendecas Aug 24, 2022
8b0a4af
tty: fix TypeError when stream is closed
aduh95 Aug 24, 2022
88d9566
src: remove KeyObjectData::symmetric_key_len_
tniessen Aug 24, 2022
8e2dcaf
test: remove duplicate test
lpinca Aug 24, 2022
2563401
node-api: cleanup redundant static modifiers
legendecas Aug 25, 2022
3eb7918
src: make minor improvements to EnabledDebugList
tniessen Aug 25, 2022
ed52bd0
doc: fix style of n-api.md
theanarkh Aug 25, 2022
1e451dc
deps: upgrade llhttp to 6.0.9
ShogunPanda Aug 25, 2022
e001aaf
test: raise sleep times in child process tests
joyeecheung Aug 25, 2022
c3dbe18
crypto: simplify control flow in HKDF
tniessen Aug 25, 2022
2ed3b30
inspector: prevent integer overflow in open()
tniessen Aug 25, 2022
3a5fdac
test: fix WPT runner result
daeyeon Aug 26, 2022
1b50ff2
deps: update icu tzdata to 2022b
Manizuca Aug 18, 2022
2be8aca
src: simplify ECDH::GetCurves()
tniessen Aug 26, 2022
a86ef1b
lib: use safe `Promise` alternatives when available
aduh95 Aug 17, 2022
b670954
tools: refactor `avoid-prototype-pollution` lint rule
aduh95 Jun 17, 2022
7f16177
src: use `if constexpr` where appropriate
addaleax Aug 27, 2022
21437f7
doc: fix release guide example consistency
ruyadorno Aug 27, 2022
65134d6
stream: fix `ReadableStreamReader.releaseLock()`
daeyeon Aug 27, 2022
96df993
tools: update eslint to 8.23.0
nodejs-github-bot Aug 27, 2022
cef30f9
doc: note on release guide to update `main` branch
ruyadorno Aug 27, 2022
b8f08e5
lib: codify findSourceMap return value when not found
legendecas Aug 27, 2022
c03f28b
meta: update AUTHORS
nodejs-github-bot Aug 28, 2022
443730c
tools: update doc to unist-util-visit@4.1.1
nodejs-github-bot Aug 28, 2022
754d26a
deps: patch V8 to 10.2.154.15
targos Aug 28, 2022
e27e709
build: add --libdir flag to configure
sgallagher Aug 28, 2022
05fb650
src: simplify and optimize GetOpenSSLVersion()
tniessen Aug 28, 2022
78c6827
tools: don't use f-strings in test.py
santigimeno Aug 28, 2022
3c53548
cluster: fix cluster rr distribute error
theanarkh Aug 28, 2022
0f4e98b
src: restore context default IsCodeGenerationFromStringsAllowed value
legendecas Aug 28, 2022
dc1c95e
src: trace fs async api
theanarkh Aug 28, 2022
4ae1f49
test: split report OOM tests
joyeecheung Aug 25, 2022
b660b74
doc,worker: document resourceLimits overrides
kvakil Aug 29, 2022
6714736
os: add machine method
theanarkh Aug 29, 2022
048e440
src: fix ssize_t error from nghttp2.h
RaisinTen Aug 29, 2022
8e41dbb
doc: mention cherry-pick edge-case on release
RafaelGSS Aug 26, 2022
3e6cde5
doc: fix spacing issue in `--build-snapshot` help text
syohex Aug 29, 2022
1e62bb1
tools: fix typo in `avoid-prototype-pollution` lint rule
aduh95 Aug 30, 2022
8db2e66
src: make Endianness an enum class
tniessen Aug 30, 2022
92046e8
doc: apply scroll-margin-top to h2, h3 elements
metonym Aug 30, 2022
4776b47
src: fix uv_err_name memory leak
theanarkh Aug 30, 2022
2dd88b8
test: fix multiple incorrect mustNotCall() uses
tniessen Aug 30, 2022
35cbe1a
crypto: use actual option name in error message
tniessen Aug 31, 2022
fd611cc
src: remove base64_select_table and base64_table
tniessen Aug 31, 2022
ef08cbd
node-api: avoid calling virtual methods in base's dtor
legendecas Aug 31, 2022
0f071b8
test: split heap prof tests
joyeecheung Aug 25, 2022
0af15c7
test: make the vm timeout escape tests more lenient
joyeecheung Aug 29, 2022
e36ed44
test: deflake child process exec timeout tests
joyeecheung Aug 25, 2022
dcc1cf4
src: add error handling to `uv_uptime` call
juanarbol Aug 24, 2022
255e7fb
deps: update Acorn to v8.8.0
targos Aug 31, 2022
71c8696
doc: add missing imports in events sample code
mrbrianevans Aug 31, 2022
ae028e8
doc: improve assert.snapshot() docs
cjihrig Aug 28, 2022
0d77342
test: style updates for assert.snapshot()
cjihrig Aug 28, 2022
11452a9
doc: add --update-assert-snapshot to node.1
cjihrig Aug 28, 2022
c5413a1
src: simplify enable_if logic of `ToStringHelper::BaseConvert`
F3n67u Sep 1, 2022
4c33e5d
test: avoid race in file write stream handle tests
joyeecheung Aug 24, 2022
c5630ad
deps: V8: backport ff8d67c88449
targos Sep 1, 2022
4331bbe
src: expose environment RequestInterrupt api
legendecas Aug 21, 2022
18b7208
src: avoid casting std::trunc(... / ...) to size_t
tniessen Sep 1, 2022
aa34f73
src: fix incorrect comments in crypto
tniessen Sep 1, 2022
125ab7d
src: improve error handling in CloneSSLCerts
tniessen Sep 1, 2022
54b6ed5
doc: use serial comma in addons docs
tniessen Sep 1, 2022
b17cc87
report: fix missing section javascriptHeap on OOMError
legendecas Aug 25, 2022
807b1e5
report: get stack trace with cross origin contexts
legendecas Aug 26, 2022
cf19a79
deps: upgrade npm to 8.19.1
npm-cli-bot Sep 2, 2022
05006ed
doc: do not use "Returns:" for crypto.constants
tniessen Sep 2, 2022
c868e36
crypto: add digest name to INVALID_DIGEST errors
tniessen Sep 2, 2022
5cefd02
crypto: handle invalid prepareAsymmetricKey JWK inputs
panva Sep 3, 2022
2facf8b
stream: fix setting abort reason in `ReadableStream.pipeTo()`
daeyeon Sep 3, 2022
a35c2f9
test_runner: fix `duration_ms` to be milliseconds
MoLow Sep 4, 2022
e519ac7
meta: update AUTHORS
nodejs-github-bot Sep 4, 2022
6fe189b
tools: update lint-md-dependencies to rollup@2.79.0
nodejs-github-bot Sep 4, 2022
fc17b80
src: rename misleading arg in ClientHelloParser
tniessen Sep 4, 2022
1c87a7e
doc: add missing parenthesis in TLSSocket section
tniessen Sep 4, 2022
8ef5c40
deps: update corepack to 0.14.0
nodejs-github-bot Sep 5, 2022
9ae2af4
2022-09-08, Version v18.9.0 (Current)
RafaelGSS Sep 5, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions AUTHORS
Expand Up @@ -3510,5 +3510,9 @@ Jeremiah Gowdy <jgowdy@godaddy.com>
Matthew Peveler <matt.peveler@gmail.com>
Wing <damianleung@gmail.com>
Hana <andywangsy@gmail.com>
Jeff Dickey <216188+jdxcode@users.noreply.github.com>
Matías Zúñiga <matias.nicolas.zc@gmail.com>
metonym <ericyl.us@gmail.com>
Brian Evans <53117772+mrbrianevans@users.noreply.github.com>

# Generated by tools/update-authors.mjs
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -35,7 +35,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.8.0">18.8.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.9.0">18.9.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.8.0">18.8.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.7.0">18.7.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.6.0">18.6.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.5.0">18.5.0</a><br/>
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Expand Up @@ -55,7 +55,7 @@ The externally maintained libraries used by Node.js are:
"""
MIT License

Copyright (C) 2012-2020 by various contributors (see AUTHORS)
Copyright (C) 2012-2022 by various contributors (see AUTHORS)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Expand Up @@ -115,6 +115,7 @@ $(NODE_EXE) $(NODE_G_EXE): config.gypi out/Makefile
ln -fs out/${build_type}/$(NODE_EXE) $@; fi
else
ifeq ($(BUILD_WITH), ninja)
NINJA ?= ninja
ifeq ($(V),1)
NINJA_ARGS := $(NINJA_ARGS) -v
endif
Expand All @@ -124,11 +125,11 @@ else
NINJA_ARGS := $(NINJA_ARGS) $(filter -j%,$(MAKEFLAGS))
endif
$(NODE_EXE): config.gypi out/Release/build.ninja
ninja -C out/Release $(NINJA_ARGS)
$(NINJA) -C out/Release $(NINJA_ARGS)
if [ ! -r $@ ] || [ ! -L $@ ]; then ln -fs out/Release/$(NODE_EXE) $@; fi

$(NODE_G_EXE): config.gypi out/Debug/build.ninja
ninja -C out/Debug $(NINJA_ARGS)
$(NINJA) -C out/Debug $(NINJA_ARGS)
if [ ! -r $@ ] || [ ! -L $@ ]; then ln -fs out/Debug/$(NODE_EXE) $@; fi
else
$(NODE_EXE) $(NODE_G_EXE):
Expand Down
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -298,6 +298,8 @@ For information about the governance of the Node.js project, see
**Shelley Vohr** <<shelley.vohr@gmail.com>> (she/her)
* [cola119](https://github.com/cola119) -
**Kohei Ueno** <<kohei.ueno119@gmail.com>> (he/him)
* [daeyeon](https://github.com/daeyeon) -
**Daeyeon Jeong** <<daeyeon.dev@gmail.com>> (he/him)
* [danbev](https://github.com/danbev) -
**Daniel Bevenius** <<daniel.bevenius@gmail.com>> (he/him)
* [danielleadams](https://github.com/danielleadams) -
Expand Down
2 changes: 1 addition & 1 deletion common.gypi
Expand Up @@ -36,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.11',
'v8_embedder_string': '-node.12',

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

Expand Down
9 changes: 9 additions & 0 deletions configure.py
Expand Up @@ -735,6 +735,14 @@
help='compile shared library for embedding node in another project. ' +
'(This mode is not officially supported for regular applications)')

parser.add_argument('--libdir',
action='store',
dest='libdir',
default='lib',
help='a directory to install the shared library into relative to the '
'prefix. This is a no-op if --shared is not specified. ' +
'(This mode is not officially supported for regular applications)')

parser.add_argument('--without-v8-platform',
action='store_true',
dest='without_v8_platform',
Expand Down Expand Up @@ -1376,6 +1384,7 @@ def configure_node(o):
o['variables']['node_no_browser_globals'] = b(options.no_browser_globals)

o['variables']['node_shared'] = b(options.shared)
o['variables']['libdir'] = options.libdir
node_module_version = getmoduleversion.get_version()

if options.dest_os == 'android':
Expand Down
22 changes: 22 additions & 0 deletions deps/acorn/acorn/CHANGELOG.md
@@ -1,3 +1,25 @@
## 8.8.0 (2022-07-21)

### Bug fixes

Allow parentheses around spread args in destructuring object assignment.

Fix an issue where the tree contained `directive` properties in when parsing with a language version that doesn't support them.

### New features

Support hashbang comments by default in ECMAScript 2023 and later.

## 8.7.1 (2021-04-26)

### Bug fixes

Stop handling `"use strict"` directives in ECMAScript versions before 5.

Fix an issue where duplicate quoted export names in `export *` syntax were incorrectly checked.

Add missing type for `tokTypes`.

## 8.7.0 (2021-12-27)

### New features
Expand Down
2 changes: 1 addition & 1 deletion deps/acorn/acorn/LICENSE
@@ -1,6 +1,6 @@
MIT License

Copyright (C) 2012-2020 by various contributors (see AUTHORS)
Copyright (C) 2012-2022 by various contributors (see AUTHORS)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 7 additions & 14 deletions deps/acorn/acorn/README.md
Expand Up @@ -54,10 +54,10 @@ required):

- **ecmaVersion**: Indicates the ECMAScript version to parse. Must be
either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10 (2019),
11 (2020), 12 (2021), 13 (2022, partial support)
or `"latest"` (the latest the library supports). This influences
support for strict mode, the set of reserved words, and support
for new syntax features.
11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"` (the
latest the library supports). This influences support for strict
mode, the set of reserved words, and support for new syntax
features.

**NOTE**: Only 'stage 4' (finalized) ECMAScript features are being
implemented by Acorn. Other proposed new features must be
Expand Down Expand Up @@ -104,9 +104,9 @@ required):
- **allowSuperOutsideMethod**: By default, `super` outside a method
raises an error. Set this to `true` to accept such code.

- **allowHashBang**: When this is enabled (off by default), if the
code starts with the characters `#!` (as in a shellscript), the
first line will be treated as a comment.
- **allowHashBang**: When this is enabled, if the code starts with the
characters `#!` (as in a shellscript), the first line will be
treated as a comment. Defaults to true when `ecmaVersion` >= 2023.

- **locations**: When `true`, each node has a `loc` object attached
with `start` and `end` subobjects, each of which contains the
Expand Down Expand Up @@ -271,10 +271,3 @@ The utility spits out the syntax tree as JSON data.
## Existing plugins

- [`acorn-jsx`](https://github.com/RReverser/acorn-jsx): Parse [Facebook JSX syntax extensions](https://github.com/facebook/jsx)

Plugins for ECMAScript proposals:

- [`acorn-stage3`](https://github.com/acornjs/acorn-stage3): Parse most stage 3 proposals, bundling:
- [`acorn-class-fields`](https://github.com/acornjs/acorn-class-fields): Parse [class fields proposal](https://github.com/tc39/proposal-class-fields)
- [`acorn-import-meta`](https://github.com/acornjs/acorn-import-meta): Parse [import.meta proposal](https://github.com/tc39/proposal-import-meta)
- [`acorn-private-methods`](https://github.com/acornjs/acorn-private-methods): parse [private methods, getters and setters proposal](https://github.com/tc39/proposal-private-methods)n
4 changes: 2 additions & 2 deletions deps/acorn/acorn/bin/acorn
@@ -1,4 +1,4 @@
#!/usr/bin/env node
'use strict';
"use strict"

require('../dist/bin.js');
require("../dist/bin.js")
40 changes: 39 additions & 1 deletion deps/acorn/acorn/dist/acorn.d.ts
Expand Up @@ -11,8 +11,10 @@ declare namespace acorn {
[Symbol.iterator](): Iterator<Token>
}

type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 'latest'

interface Options {
ecmaVersion: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 'latest'
ecmaVersion: ecmaVersion
sourceType?: 'script' | 'module'
onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
onTrailingComma?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
Expand All @@ -36,8 +38,41 @@ declare namespace acorn {
}

class Parser {
// state.js
lineStart: number;
options: Options;
curLine: number;
start: number;
end: number;
input: string;
type: TokenType;

// state.js
constructor(options: Options, input: string, startPos?: number)
parse(this: Parser): Node

// tokenize.js
next(): void;
nextToken(): void;

// statement.js
parseTopLevel(node: Node): Node;

// node.js
finishNode(node: Node, type: string): Node;
finishNodeAt(node: Node, type: string, pos: number, loc: Position): Node;

// location.js
raise(pos: number, message: string) : void;
raiseRecoverable?(pos: number, message: string) : void;

// parseutils.js
unexpected(pos: number) : void;

// index.js
static acorn: typeof acorn;

// state.js
static parse(this: typeof Parser, input: string, options: Options): Node
static parseExpressionAt(this: typeof Parser, input: string, pos: number, options: Options): Node
static tokenizer(this: typeof Parser, input: string, options: Options): {
Expand Down Expand Up @@ -102,8 +137,10 @@ declare namespace acorn {
colon: TokenType
dot: TokenType
question: TokenType
questionDot: TokenType
arrow: TokenType
template: TokenType
invalidTemplate: TokenType
ellipsis: TokenType
backQuote: TokenType
dollarBraceL: TokenType
Expand All @@ -124,6 +161,7 @@ declare namespace acorn {
star: TokenType
slash: TokenType
starstar: TokenType
coalesce: TokenType
_break: TokenType
_case: TokenType
_catch: TokenType
Expand Down