Skip to content

Commit 31214fb

Browse files
committed
[GR-37528] Backport: Upgrading the underlying Node.js to version 16.14.2.
PullRequest: js/2395
2 parents b394105 + 0d879fb commit 31214fb

File tree

6,017 files changed

+184026
-160744
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,017 files changed

+184026
-160744
lines changed

3rd_party_licenses.txt

Lines changed: 16 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
512512

513513
================================================================================
514514

515-
Node.js 16.13.2
515+
Node.js 16.14.2
516516

517517
Node.js is licensed for use as follows:
518518

@@ -908,31 +908,29 @@ The externally maintained libraries used by Node.js are:
908908

909909
3. Lao Word Break Dictionary Data (laodict.txt)
910910

911-
# Copyright (c) 2013 International Business Machines Corporation
912-
# and others. All Rights Reserved.
911+
# Copyright (C) 2016 and later: Unicode, Inc. and others.
912+
# License & terms of use: http://www.unicode.org/copyright.html
913+
# Copyright (c) 2015 International Business Machines Corporation
914+
# and others. All Rights Reserved.
913915
#
914-
# Project: https://github.com/veer66/lao-dictionary
915-
# Dictionary: https://github.com/veer66/lao-dictionary/blob/master/Lao-Dictionary.txt
916-
# License: https://github.com/veer66/lao-dictionary/blob/master/Lao-Dictionary-LICENSE.txt
917-
# (copied below)
916+
# Project: https://github.com/rober42539/lao-dictionary
917+
# Dictionary: https://github.com/rober42539/lao-dictionary/laodict.txt
918+
# License: https://github.com/rober42539/lao-dictionary/LICENSE.txt
919+
# (copied below)
918920
#
919-
# This file is derived from the above dictionary, with slight
920-
# modifications.
921+
# This file is derived from the above dictionary version of Nov 22, 2020
921922
# ----------------------------------------------------------------------
922923
# Copyright (C) 2013 Brian Eugene Wilson, Robert Martin Campbell.
923924
# All rights reserved.
924925
#
925926
# Redistribution and use in source and binary forms, with or without
926-
# modification,
927-
# are permitted provided that the following conditions are met:
928-
#
929-
#
930-
# Redistributions of source code must retain the above copyright notice, this
931-
# list of conditions and the following disclaimer. Redistributions in
932-
# binary form must reproduce the above copyright notice, this list of
933-
# conditions and the following disclaimer in the documentation and/or
934-
# other materials provided with the distribution.
927+
# modification, are permitted provided that the following conditions are met:
935928
#
929+
# Redistributions of source code must retain the above copyright notice, this
930+
# list of conditions and the following disclaimer. Redistributions in binary
931+
# form must reproduce the above copyright notice, this list of conditions and
932+
# the following disclaimer in the documentation and/or other materials
933+
# provided with the distribution.
936934
#
937935
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
938936
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
@@ -1752,32 +1750,6 @@ The externally maintained libraries used by Node.js are:
17521750
THE SOFTWARE.
17531751
"""
17541752

1755-
- Babel, located at tools/node_modules/@babel, is licensed as follows:
1756-
"""
1757-
MIT License
1758-
1759-
Copyright (c) 2014-present Sebastian McKenzie and other contributors
1760-
1761-
Permission is hereby granted, free of charge, to any person obtaining
1762-
a copy of this software and associated documentation files (the
1763-
"Software"), to deal in the Software without restriction, including
1764-
without limitation the rights to use, copy, modify, merge, publish,
1765-
distribute, sublicense, and/or sell copies of the Software, and to
1766-
permit persons to whom the Software is furnished to do so, subject to
1767-
the following conditions:
1768-
1769-
The above copyright notice and this permission notice shall be
1770-
included in all copies or substantial portions of the Software.
1771-
1772-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1773-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1774-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1775-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
1776-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
1777-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
1778-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1779-
"""
1780-
17811753
- gtest, located at deps/googletest, is licensed as follows:
17821754
"""
17831755
Copyright 2008, Google Inc.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Changelog may include unreleased versions.
66
See [version roadmap](https://www.graalvm.org/release-notes/version-roadmap/) for release dates.
77

88
## Version 22.1.0
9-
* Updated Node.js to version 16.13.2.
9+
* Updated Node.js to version 16.14.2.
1010
* Graal.js now requires Java 11+ and no longer supports Java 8.
1111
* Implemented the [Intl.NumberFormat v3](https://github.com/tc39/proposal-intl-numberformat-v3) proposal.
1212
* Implemented the [Array Grouping v3](https://github.com/tc39/proposal-array-grouping) proposal. It is available in ECMAScript staging mode (`--js.ecmascript-version=staging`).

graal-nodejs/.eslintrc.js

Lines changed: 23 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ NodePlugin.RULES_DIR = path.resolve(__dirname, 'tools', 'eslint-rules');
1515
const ModuleFindPath = Module._findPath;
1616
const hacks = [
1717
'eslint-plugin-node-core',
18+
'eslint-plugin-jsdoc',
1819
'eslint-plugin-markdown',
1920
'@babel/eslint-parser',
2021
'@babel/plugin-syntax-import-assertions',
@@ -34,7 +35,8 @@ Module._findPath = (request, paths, isMain) => {
3435

3536
module.exports = {
3637
root: true,
37-
plugins: ['markdown', 'node-core'],
38+
extends: ['eslint:recommended', 'plugin:jsdoc/recommended'],
39+
plugins: ['jsdoc', 'markdown', 'node-core'],
3840
parser: '@babel/eslint-parser',
3941
parserOptions: {
4042
babelOptions: {
@@ -140,17 +142,14 @@ module.exports = {
140142
'comma-spacing': 'error',
141143
'comma-style': 'error',
142144
'computed-property-spacing': 'error',
143-
'constructor-super': 'error',
144145
'default-case-last': 'error',
145146
'dot-location': ['error', 'property'],
146147
'dot-notation': 'error',
147148
'eol-last': 'error',
148149
'eqeqeq': ['error', 'smart'],
149-
'for-direction': 'error',
150150
'func-call-spacing': 'error',
151151
'func-name-matching': 'error',
152152
'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
153-
'getter-return': 'error',
154153
'indent': ['error', 2, {
155154
ArrayExpression: 'first',
156155
CallExpression: { arguments: 'first' },
@@ -164,55 +163,29 @@ module.exports = {
164163
'keyword-spacing': 'error',
165164
'linebreak-style': ['error', 'unix'],
166165
'max-len': ['error', {
167-
code: 80,
166+
code: 120,
168167
ignorePattern: '^// Flags:',
169168
ignoreRegExpLiterals: true,
170169
ignoreTemplateLiterals: true,
171170
ignoreUrls: true,
172171
tabWidth: 2,
173172
}],
174173
'new-parens': 'error',
175-
'no-async-promise-executor': 'error',
176-
'no-class-assign': 'error',
177174
'no-confusing-arrow': 'error',
178-
'no-const-assign': 'error',
175+
'no-constant-condition': ['error', { checkLoops: false }],
179176
'no-constructor-return': 'error',
180-
'no-control-regex': 'error',
181-
'no-debugger': 'error',
182-
'no-delete-var': 'error',
183-
'no-dupe-args': 'error',
184-
'no-dupe-class-members': 'error',
185-
'no-dupe-keys': 'error',
186-
'no-dupe-else-if': 'error',
187-
'no-duplicate-case': 'error',
188177
'no-duplicate-imports': 'error',
189178
'no-else-return': ['error', { allowElseIf: true }],
190-
'no-empty-character-class': 'error',
191-
'no-ex-assign': 'error',
192-
'no-extra-boolean-cast': 'error',
193179
'no-extra-parens': ['error', 'functions'],
194-
'no-extra-semi': 'error',
195-
'no-fallthrough': 'error',
196-
'no-func-assign': 'error',
197-
'no-global-assign': 'error',
198-
'no-invalid-regexp': 'error',
199-
'no-irregular-whitespace': 'error',
200180
'no-lonely-if': 'error',
201-
'no-misleading-character-class': 'error',
202181
'no-mixed-requires': 'error',
203-
'no-mixed-spaces-and-tabs': 'error',
204182
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
205183
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0, maxBOF: 0 }],
206184
'no-new-require': 'error',
207-
'no-new-symbol': 'error',
208-
'no-nonoctal-decimal-escape': 'error',
209-
'no-obj-calls': 'error',
210-
'no-octal': 'error',
211185
'no-path-concat': 'error',
212186
'no-proto': 'error',
213187
'no-redeclare': ['error', { 'builtinGlobals': false }],
214188
'no-restricted-modules': ['error', 'sys'],
215-
/* eslint-disable max-len */
216189
'no-restricted-properties': [
217190
'error',
218191
{
@@ -265,42 +238,27 @@ module.exports = {
265238
message: 'Use Number.isNaN() instead of the global isNaN() function.',
266239
},
267240
],
268-
/* eslint-enable max-len */
269241
'no-return-await': 'error',
270-
'no-self-assign': 'error',
271242
'no-self-compare': 'error',
272-
'no-setter-return': 'error',
273-
'no-shadow-restricted-names': 'error',
274243
'no-tabs': 'error',
275244
'no-template-curly-in-string': 'error',
276-
'no-this-before-super': 'error',
277245
'no-throw-literal': 'error',
278246
'no-trailing-spaces': 'error',
279247
'no-undef': ['error', { typeof: true }],
280248
'no-undef-init': 'error',
281-
'no-unexpected-multiline': 'error',
282-
'no-unreachable': 'error',
283-
'no-unsafe-finally': 'error',
284-
'no-unsafe-negation': 'error',
285-
'no-unsafe-optional-chaining': 'error',
286249
'no-unused-expressions': ['error', { allowShortCircuit: true }],
287-
'no-unused-labels': 'error',
288250
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'all' }],
289251
'no-use-before-define': ['error', {
290252
classes: true,
291253
functions: false,
292254
variables: false,
293255
}],
294-
'no-useless-backreference': 'error',
295256
'no-useless-call': 'error',
296-
'no-useless-catch': 'error',
297257
'no-useless-concat': 'error',
298258
'no-useless-constructor': 'error',
299-
'no-useless-escape': 'error',
300259
'no-useless-return': 'error',
301260
'no-void': 'error',
302261
'no-whitespace-before-property': 'error',
303-
'no-with': 'error',
304262
'object-curly-newline': 'error',
305263
'object-curly-spacing': ['error', 'always'],
306264
'one-var': ['error', { initialized: 'never' }],
@@ -311,6 +269,7 @@ module.exports = {
311269
{ blankLine: 'always', prev: 'function', next: 'function' },
312270
],
313271
'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
272+
'prefer-object-has-own': 'error',
314273
'quotes': ['error', 'single', { avoidEscape: true }],
315274
'quote-props': ['error', 'consistent'],
316275
'rest-spread-spacing': 'error',
@@ -333,9 +292,25 @@ module.exports = {
333292
'symbol-description': 'error',
334293
'template-curly-spacing': 'error',
335294
'unicode-bom': 'error',
336-
'use-isnan': 'error',
337295
'valid-typeof': ['error', { requireStringLiterals: true }],
338296

297+
// ESLint recommended rules that we disable
298+
'no-inner-declarations': 'off',
299+
300+
// JSDoc recommended rules that we disable
301+
'jsdoc/require-jsdoc': 'off',
302+
'jsdoc/require-param-description': 'off',
303+
'jsdoc/newline-after-description': 'off',
304+
'jsdoc/require-returns-description': 'off',
305+
'jsdoc/valid-types': 'off',
306+
'jsdoc/no-undefined-types': 'off',
307+
'jsdoc/require-param': 'off',
308+
'jsdoc/check-tag-names': 'off',
309+
'jsdoc/require-returns': 'off',
310+
'jsdoc/require-property-description': 'off',
311+
'jsdoc/check-param-names': 'off',
312+
'jsdoc/tag-lines': 'off',
313+
339314
// Custom rules from eslint-plugin-node-core
340315
'node-core/no-unescaped-regexp-dot': 'error',
341316
'node-core/no-duplicate-requires': 'error',

graal-nodejs/.github/CODEOWNERS

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,15 @@
55
# 3. PRs touching any code with a codeowner must be signed off by at least one
66
# person on the code owner team.
77

8-
# tsc & commcomm
8+
# tsc
99

1010
/.github/CODEOWNERS @nodejs/tsc
1111
/GOVERNANCE.md @nodejs/tsc
1212
/onboarding.md @nodejs/tsc
13-
/CODE_OF_CONDUCT.md @nodejs/tsc @nodejs/community-committee
14-
/CONTRIBUTING.md @nodejs/tsc @nodejs/community-committee
15-
/LICENSE @nodejs/tsc @nodejs/community-committee
16-
/doc/guides/contributing/code-of-conduct.md @nodejs/tsc @nodejs/community-committee
17-
# TODO(mmarchini): the bot doens't have a notion of precedence, that might
18-
# change when move the codeowners code to an Action, at which point we can
19-
# uncomment the line below
20-
# /doc/guides/contributing/*.md @nodejs/tsc
21-
/doc/guides/contributing/issues.md @nodejs/tsc
22-
/doc/guides/contributing/pull-requests.md @nodejs/tsc
23-
/doc/guides/collaborator-guide.md @nodejs/tsc
24-
/doc/guides/offboarding.md @nodejs/tsc
13+
/CODE_OF_CONDUCT.md @nodejs/tsc
14+
/CONTRIBUTING.md @nodejs/tsc
15+
/LICENSE @nodejs/tsc
16+
/doc/contributing/*.md @nodejs/tsc
2517

2618
# streams
2719

@@ -90,12 +82,12 @@
9082
/lib/internal/bootstrap/loaders.js @nodejs/modules
9183
/src/module_wrap* @nodejs/modules @nodejs/vm
9284

93-
# N-API
85+
# Node-API
9486

95-
/src/node_api* @nodejs/n-api
96-
/src/js_native_api* @nodejs/n-api
97-
/doc/guides/adding-new-napi-api.md @nodejs/n-api
98-
/doc/api/n-api.md @nodejs/n-api
87+
/src/node_api* @nodejs/node-api
88+
/src/js_native_api* @nodejs/node-api
89+
/doc/contributing/adding-new-napi-api.md @nodejs/node-api
90+
/doc/api/n-api.md @nodejs/node-api
9991

10092
# gyp
10193

graal-nodejs/.github/ISSUE_TEMPLATE/1-bug-report.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ body:
99
This issue tracker is for bugs and issues found within Node.js core.
1010
If you require more general support please file an issue on our help repo. https://github.com/nodejs/help
1111
12-
Please fill in as much of the form below as you're able.
12+
Please fill in as much of the following form as you're able.
1313
- type: input
1414
attributes:
1515
label: Version
@@ -39,6 +39,8 @@ body:
3939
attributes:
4040
label: What do you see instead?
4141
description: If possible please provide textual output instead of screenshots.
42+
validations:
43+
required: true
4244
- type: textarea
4345
attributes:
4446
label: Additional information

graal-nodejs/.github/ISSUE_TEMPLATE/2-feature-request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "\U0001F680 Feature request"
2+
description: Suggest an idea for this project
3+
labels: ["feature request"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for suggesting an idea to make Node.js better.
9+
10+
Please fill in as much of the following form as you're able.
11+
12+
For more information on how the project manages feature
13+
requests, see [Feature request management](https://github.com/nodejs/node/blob/HEAD/doc/guides/feature-request-management.md).
14+
- type: textarea
15+
attributes:
16+
label: What is the problem this feature will solve?
17+
validations:
18+
required: true
19+
- type: textarea
20+
attributes:
21+
label: What is the feature you are proposing to solve the problem?
22+
validations:
23+
required: true
24+
- type: textarea
25+
attributes:
26+
label: What alternatives have you considered?

0 commit comments

Comments
 (0)