Skip to content

Commit b32641c

Browse files
Merge pull request #1008 from nodejs/main
Create a new pull request by comparing changes across two branches
2 parents 14d7213 + d955497 commit b32641c

File tree

159 files changed

+3824
-554
lines changed

Some content is hidden

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

159 files changed

+3824
-554
lines changed

.github/workflows/tools.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
- acorn
1717
- acorn-walk
1818
- ada
19+
- amaro
1920
- brotli
2021
- c-ares
2122
- cjs-module-lexer
@@ -82,6 +83,14 @@ jobs:
8283
cat temp-output
8384
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
8485
rm temp-output
86+
- id: amaro
87+
subsystem: deps
88+
label: dependencies
89+
run: |
90+
./tools/dep_updaters/update-amaro.sh > temp-output
91+
cat temp-output
92+
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
93+
rm temp-output
8594
- id: brotli
8695
subsystem: deps
8796
label: dependencies

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ release.
6363
<a href="doc/changelogs/CHANGELOG_V21.md#21.0.0">21.0.0</a><br/>
6464
</td>
6565
<td valign="top">
66-
<b><a href="doc/changelogs/CHANGELOG_V20.md#20.15.1">20.15.1</a></b><br/>
66+
<b><a href="doc/changelogs/CHANGELOG_V20.md#20.16.0">20.16.0</a></b><br/>
67+
<a href="doc/changelogs/CHANGELOG_V20.md#20.15.1">20.15.1</a><br/>
6768
<a href="doc/changelogs/CHANGELOG_V20.md#20.15.0">20.15.0</a><br/>
6869
<a href="doc/changelogs/CHANGELOG_V20.md#20.14.0">20.14.0</a><br/>
6970
<a href="doc/changelogs/CHANGELOG_V20.md#20.13.1">20.13.1</a><br/>

LICENSE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,31 @@ The externally maintained libraries used by Node.js are:
130130
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
131131
"""
132132

133+
- amaro, located at deps/amaro, is licensed as follows:
134+
"""
135+
MIT License
136+
137+
Copyright (c) Marco Ippolito and Amaro contributors
138+
139+
Permission is hereby granted, free of charge, to any person obtaining a copy
140+
of this software and associated documentation files (the "Software"), to deal
141+
in the Software without restriction, including without limitation the rights
142+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
143+
copies of the Software, and to permit persons to whom the Software is
144+
furnished to do so, subject to the following conditions:
145+
146+
The above copyright notice and this permission notice shall be included in all
147+
copies or substantial portions of the Software.
148+
149+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
150+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
151+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
152+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
153+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
154+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
155+
SOFTWARE.
156+
"""
157+
133158
- ICU, located at deps/icu-small, is licensed as follows:
134159
"""
135160
UNICODE LICENSE V3

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,10 @@ For information about the governance of the Node.js project, see
166166
**Antoine du Hamel** <<[email protected]>> (he/him)
167167
* [anonrig](https://github.com/anonrig) -
168168
**Yagiz Nizipli** <<[email protected]>> (he/him)
169-
* [apapirovski](https://github.com/apapirovski) -
170-
**Anatoli Papirovski** <<[email protected]>> (he/him)
171169
* [benjamingr](https://github.com/benjamingr) -
172170
**Benjamin Gruenbaum** <<[email protected]>>
173171
* [BridgeAR](https://github.com/BridgeAR) -
174172
**Ruben Bridgewater** <<[email protected]>> (he/him)
175-
* [GeoffreyBooth](https://github.com/GeoffreyBooth) -
176-
**Geoffrey Booth** <<[email protected]>> (he/him)
177173
* [gireeshpunathil](https://github.com/gireeshpunathil) -
178174
**Gireesh Punathil** <<[email protected]>> (he/him)
179175
* [jasnell](https://github.com/jasnell) -
@@ -207,6 +203,8 @@ For information about the governance of the Node.js project, see
207203

208204
#### TSC regular members
209205

206+
* [apapirovski](https://github.com/apapirovski) -
207+
**Anatoli Papirovski** <<[email protected]>> (he/him)
210208
* [BethGriggs](https://github.com/BethGriggs) -
211209
**Beth Griggs** <<[email protected]>> (she/her)
212210
* [bnoordhuis](https://github.com/bnoordhuis) -
@@ -215,6 +213,8 @@ For information about the governance of the Node.js project, see
215213
**Colin Ihrig** <<[email protected]>> (he/him)
216214
* [codebytere](https://github.com/codebytere) -
217215
**Shelley Vohr** <<[email protected]>> (she/her)
216+
* [GeoffreyBooth](https://github.com/GeoffreyBooth) -
217+
**Geoffrey Booth** <<[email protected]>> (he/him)
218218
* [Trott](https://github.com/Trott) -
219219
**Rich Trott** <<[email protected]>> (he/him)
220220

@@ -355,6 +355,8 @@ For information about the governance of the Node.js project, see
355355
**Harshitha K P** <<[email protected]>> (she/her)
356356
* [himself65](https://github.com/himself65) -
357357
**Zeyu "Alex" Yang** <<[email protected]>> (he/him)
358+
* [jakecastelli](https://github.com/jakecastelli) -
359+
**Jake Yuesong Li** <<[email protected]>> (he/him)
358360
* [JakobJingleheimer](https://github.com/JakobJingleheimer) -
359361
**Jacob Smith** <<[email protected]>> (he/him)
360362
* [jasnell](https://github.com/jasnell) -

common.gypi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.17',
39+
'v8_embedder_string': '-node.18',
4040

4141
##### V8 defaults for Node.js #####
4242

@@ -113,6 +113,7 @@
113113
['target_arch in "arm ia32 mips mipsel ppc"', {
114114
'v8_enable_pointer_compression': 0,
115115
'v8_enable_31bit_smis_on_64bit_arch': 0,
116+
'v8_enable_sandbox': 0
116117
}],
117118
['target_arch in "ppc64 s390x"', {
118119
'v8_enable_backtrace': 1,

configure.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,6 +1639,7 @@ def configure_v8(o, configs):
16391639
o['variables']['v8_enable_maglev'] = B(not options.v8_disable_maglev and
16401640
o['variables']['target_arch'] in maglev_enabled_architectures)
16411641
o['variables']['v8_enable_pointer_compression'] = 1 if options.enable_pointer_compression else 0
1642+
o['variables']['v8_enable_sandbox'] = 1 if options.enable_pointer_compression else 0
16421643
o['variables']['v8_enable_31bit_smis_on_64bit_arch'] = 1 if options.enable_pointer_compression else 0
16431644
o['variables']['v8_enable_shared_ro_heap'] = 0 if options.enable_pointer_compression or options.disable_shared_ro_heap else 1
16441645
o['variables']['v8_enable_extensible_ro_snapshot'] = 0

deps/amaro/LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Marco Ippolito and Amaro contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

deps/amaro/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Amaro
2+
3+
Amaro is a wrapper around `@swc/wasm-typescript`, a WebAssembly port of the SWC TypeScript parser.
4+
It's currently used as an internal in Node.js for [Type Stripping](https://github.com/nodejs/loaders/issues/208), but in the future it will be possible to be upgraded separately by users.
5+
The main goal of this package is to provide a stable API for TypeScript parser, which is unstable and subject to change.
6+
7+
> Amaro means "bitter" in Italian. It's a reference to [Mount Amaro](https://en.wikipedia.org/wiki/Monte_Amaro_(Abruzzo)) on whose slopes this package was conceived.
8+
9+
## How to Install
10+
11+
To install Amaro, run:
12+
13+
```shell
14+
npm install amaro
15+
```
16+
17+
## How to Use
18+
19+
By default Amaro exports a `transformSync` function that performs type stripping.
20+
Stack traces are preserved, by replacing removed types with white spaces.
21+
22+
```javascript
23+
const amaro = require('amaro');
24+
const { code } = amaro.transformSync("const foo: string = 'bar';");
25+
console.log(code); // "const foo = 'bar';"
26+
```
27+
28+
## License (MIT)
29+
30+
See [`LICENSE.md`](./LICENSE.md).

0 commit comments

Comments
 (0)