Skip to content

Commit 4f5e0e0

Browse files
committed
[GR-42289] Backport: Upgrading the underlying Node.js to version 16.18.1.
PullRequest: js/2668
2 parents f4d4a44 + 9909fc9 commit 4f5e0e0

File tree

2,567 files changed

+88321
-22631
lines changed

Some content is hidden

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

2,567 files changed

+88321
-22631
lines changed

3rd_party_licenses.txt

Lines changed: 34 additions & 2 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.17.1
515+
Node.js 16.18.1
516516

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

@@ -571,7 +571,7 @@ The externally maintained libraries used by Node.js are:
571571
"""
572572
MIT License
573573

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

576576
Permission is hereby granted, free of charge, to any person obtaining a copy
577577
of this software and associated documentation files (the "Software"), to deal
@@ -2229,3 +2229,35 @@ The externally maintained libraries used by Node.js are:
22292229
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22302230
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22312231
"""
2232+
2233+
- base64, located at deps/base64/base64/, is licensed as follows:
2234+
"""
2235+
Copyright (c) 2005-2007, Nick Galbreath
2236+
Copyright (c) 2013-2019, Alfred Klomp
2237+
Copyright (c) 2015-2017, Wojciech Mula
2238+
Copyright (c) 2016-2017, Matthieu Darbois
2239+
All rights reserved.
2240+
2241+
Redistribution and use in source and binary forms, with or without
2242+
modification, are permitted provided that the following conditions are
2243+
met:
2244+
2245+
- Redistributions of source code must retain the above copyright notice,
2246+
this list of conditions and the following disclaimer.
2247+
2248+
- Redistributions in binary form must reproduce the above copyright
2249+
notice, this list of conditions and the following disclaimer in the
2250+
documentation and/or other materials provided with the distribution.
2251+
2252+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
2253+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2254+
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
2255+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2256+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2257+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
2258+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
2259+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
2260+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
2261+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
2262+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2263+
"""

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ The main focus is on user-observable behavior of the engine.
55
Changelog may include unreleased versions.
66
See [version roadmap](https://www.graalvm.org/release-notes/version-roadmap/) for release dates.
77

8+
## Version 22.3.1.
9+
* Updated Node.js to version 16.18.1.
10+
811
## Version 22.3.0
912
* Implemented the [WebAssembly multi-value](https://github.com/WebAssembly/multi-value) proposal.
1013
* Added an experimental option `--js.unhandled-rejections=handler` that allows to use a custom callback to track unhandled promise rejections.

graal-nodejs/.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
/src/node.cc @nodejs/startup
110110
/src/node_code_cache_stub.cc @nodejs/startup
111111
/src/node_native_module* @nodejs/startup
112+
/src/node_snapshot* @nodejs/startup
112113
/lib/internal/bootstrap/* @nodejs/startup
113114
/tools/code_cache/* @nodejs/startup
114115
/tools/snapshot/* @nodejs/startup

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ body:
1919
label: Platform
2020
description: |
2121
UNIX: output of `uname -a`
22-
Windows: output of `"$([Environment]::OSVersion | ForEach-Object VersionString) $(if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" })"` in PowerShell console
22+
Windows: output of `"$([Environment]::OSVersion.VersionString) $(('x86', 'x64')[[Environment]::Is64BitOperatingSystem])"` in PowerShell console
2323
- type: input
2424
attributes:
2525
label: Subsystem

graal-nodejs/.github/label-pr-config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ subSystemLabels:
101101
/^lib\/worker_threads.js$/: worker
102102
/^lib\/internal\/url\.js$/: whatwg-url
103103
/^lib\/internal\/modules\/esm/: esm
104+
/^lib\/internal\/webstreams/: web streams
105+
/^lib\/internal\/test_runner/: dont-land-on-v14.x
104106

105107
# All other lib/ files map directly
106108
/^lib\/_(\w+)_\w+\.js?$/: $1 # e.g. _(stream)_wrap
@@ -123,6 +125,7 @@ exlusiveLabels:
123125
/^test\/report\//: test, report
124126
/^test\/fixtures\/es-module/: test, esm
125127
/^test\/es-module\//: test, esm
128+
/^test\/fixtures\/wpt\/streams//: test, web streams
126129

127130
/^test\//: test
128131

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Label Flaky Test Issues
2+
3+
on:
4+
issues:
5+
types: [opened, labeled]
6+
7+
jobs:
8+
label:
9+
if: github.event.label.name == 'flaky-test'
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
steps:
14+
- name: Extract labels
15+
id: extract-labels
16+
env:
17+
BODY: ${{ github.event.issue.body }}
18+
run: |
19+
BODY="${BODY//$'\n'/'\n'}"
20+
21+
declare -A platform2label
22+
23+
platform2label["AIX"]="aix";
24+
platform2label["FreeBSD"]="freebsd";
25+
platform2label["Linux ARM64"]="linux";
26+
platform2label["Linux ARMv7"]="arm";
27+
platform2label["Linux PPC64LE"]="ppc";
28+
platform2label["Linux s390x"]="s390";
29+
platform2label["Linux x64"]="linux";
30+
platform2label["macOS ARM64"]="macos";
31+
platform2label["macOS x64"]="macos";
32+
platform2label["SmartOS"]="smartos";
33+
platform2label["Windows"]="windows";
34+
35+
# sed is cleaning up the edges
36+
PLATFORMS=$(echo $BODY | sed 's/^.*Platform\\n\\n//' | sed 's/\(, Other\)\?\\n\\n.*$//') 2> /dev/null
37+
readarray -d , -t list <<< "$PLATFORMS"
38+
labels=
39+
for row in "${list[@]}"; do \
40+
platform=$(echo $row | xargs); \
41+
labels="${labels}${platform2label[$platform]},"; \
42+
done;
43+
44+
echo "::set-output name=LABELS::${labels::-1}"
45+
46+
- name: Add labels
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
NUMBER: ${{ github.event.issue.number }}
50+
run: gh issue edit "$NUMBER" --repo ${{ github.repository }} --add-label "${{ steps.extract-labels.outputs.LABELS }}"

graal-nodejs/.github/workflows/test-internet.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ permissions:
2929

3030
jobs:
3131
test-internet:
32+
if: github.repository == 'nodejs/node' || github.event_name != 'schedule'
3233
runs-on: ubuntu-latest
3334
steps:
3435
- uses: actions/checkout@v3
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Timezone update
2+
on:
3+
schedule:
4+
# Run once a week at 00:05 AM UTC on Sunday.
5+
- cron: 5 0 * * 0
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
timezone_update:
14+
permissions:
15+
contents: write # to push local changes (gr2m/create-or-update-pull-request-action)
16+
pull-requests: write # to create a PR (gr2m/create-or-update-pull-request-action)
17+
18+
if: github.repository == 'nodejs/node'
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout nodejs/node
23+
uses: actions/checkout@v3
24+
with:
25+
persist-credentials: false
26+
27+
- name: Checkout unicode-org/icu-data
28+
uses: actions/checkout@v3
29+
with:
30+
path: icu-data
31+
persist-credentials: false
32+
repository: unicode-org/icu-data
33+
34+
- run: ./tools/update-timezone.mjs
35+
36+
- name: Open Pull Request
37+
uses: gr2m/create-or-update-pull-request-action@6720400cad8e74d7adc64640e4e6ea6748b83d8f # Create a PR or update the Action's existing PR
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
40+
with:
41+
author: Node.js GitHub Bot <[email protected]>
42+
body: |
43+
This PR was generated by tools/timezone-update.yml.
44+
45+
Updates the ICU files as per the instructions present in https://github.com/nodejs/node/blob/main/doc/contributing/maintaining-icu.md#time-zone-data
46+
47+
To test, build node off this branch & log the version of tz using
48+
```js
49+
console.log(process.versions.tz)
50+
```
51+
branch: actions/timezone-update
52+
commit-message: 'deps: update timezone'
53+
labels: dependencies
54+
title: 'deps: update timezone'
55+
reviewers: \@nodejs/i18n-api

graal-nodejs/.mailmap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ David Mark Clements <[email protected]> <[email protected]>
137137
138138
139139
Deepjyoti Mondal <[email protected]>
140+
140141
Domenic Denicola <[email protected]>
141142
142143
@@ -287,6 +288,8 @@ Ke Ding <[email protected]>
287288
Keith M Wesolowski <[email protected]> <[email protected]>
288289
Kelsey Breseman <[email protected]>
289290
Kevin Millikin <[email protected]>
291+
292+
290293
Khaidi Chu <[email protected]>
291294
292295
Kimberly Wilber <[email protected]>
@@ -371,6 +374,7 @@ Nam Nguyen <[email protected]>
371374
Nebu Pookins <[email protected]>
372375
Netto Farah <[email protected]>
373376
Nicholas Kinsey <[email protected]>
377+
374378
375379
376380
@@ -429,6 +433,8 @@ Ron Korving <[email protected]> <[email protected]>
429433
430434
431435
436+
437+
432438
Ryan Dahl <[email protected]>
433439
Ryan Emery <[email protected]>
434440
Ryan Mahan <[email protected]>

graal-nodejs/AUTHORS

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ Joran Siu <[email protected]>
10481048
Vitaly Tomilov <[email protected]>
10491049
Ratikesh Misra <[email protected]>
10501050
Alex Perkins <[email protected]>
1051-
Beth Griggs <bgriggs@redhat.com>
1051+
Beth Griggs <bethanyngriggs@gmail.com>
10521052
Joe Esposito <[email protected]>
10531053
Erin Spiceland <[email protected]>
10541054
Ravindra Barthwal <[email protected]>
@@ -1784,7 +1784,7 @@ Christopher Sidebottom <[email protected]>
17841784
Edward Andrew Robinson <[email protected]>
17851785
Shakeel Mohamed <[email protected]>
17861786
Tobias Kieslich <[email protected]>
1787-
Ruy Adorno <ruyadorno@hotmail.com>
1787+
Ruy Adorno <ruyadorno@google.com>
17881788
Stefania Sharp <[email protected]>
17891789
Pawel Golda <[email protected]>
17901790
Steven Scott <[email protected]>
@@ -2694,7 +2694,7 @@ Yann Hamon <[email protected]>
26942694
Ben Swinburne <[email protected]>
26952695
Colin Prince <[email protected]>
26962696
2697-
dnlup <dwon.dnl@gmail.com>
2697+
dnlup <dnlup.dev@gmail.com>
26982698
Hang Jiang <[email protected]>
26992699
Vladislav Kaminsky <[email protected]>
27002700
Daiki Ihara <[email protected]>
@@ -3457,7 +3457,7 @@ Yagiz Nizipli <[email protected]>
34573457
liuxingbaoyu <[email protected]>
34583458
Sergey Nazaryev <[email protected]>
34593459
William Marlow <[email protected]>
3460-
Keyhan Vakil <[email protected]>
3460+
Keyhan Vakil <[email protected]>
34613461
34623462
pupilTong <[email protected]>
34633463
@@ -3490,5 +3490,43 @@ John Gee <[email protected]>
34903490
Hrishikesh Kadam <[email protected]>
34913491
KrayzeeKev <[email protected]>
34923492
3493+
jiahao.si <[email protected]>
3494+
3495+
Mark S. Miller <[email protected]>
3496+
Jianru Lin <[email protected]>
3497+
Lenvin Gonsalves <[email protected]>
3498+
Andreu Botella <[email protected]>
3499+
3500+
Dominic Saadi <[email protected]>
3501+
3502+
NicoNekoru <[email protected]>
3503+
SADIK KUZU <[email protected]>
3504+
3505+
Saurabh Daware <[email protected]>
3506+
3507+
3508+
Basit Chonka <[email protected]>
3509+
Jeremiah Gowdy <[email protected]>
3510+
Matthew Peveler <[email protected]>
3511+
3512+
3513+
Jeff Dickey <[email protected]>
3514+
Matías Zúñiga <[email protected]>
3515+
3516+
Brian Evans <[email protected]>
3517+
falsandtru <[email protected]>
3518+
3519+
Fabian Meyer <[email protected]>
3520+
StefanStojanovic <[email protected]>
3521+
Claudio Wunder <[email protected]>
3522+
Shrujal Shah <[email protected]>
3523+
Taha-Chaudhry <[email protected]>
3524+
3525+
Brian Muenzenmeyer <[email protected]>
3526+
sidwebworks <[email protected]>
3527+
Connor Burton <[email protected]>
3528+
chexiongsheng <[email protected]>
3529+
Lucas Santos <[email protected]>
3530+
34933531

34943532
# Generated by tools/update-authors.mjs

0 commit comments

Comments
 (0)