Skip to content

Commit

Permalink
tools: automate uvwasi dependency update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranieri93 committed Apr 13, 2023
1 parent 25ad49b commit 9563b6e
Show file tree
Hide file tree
Showing 34 changed files with 919 additions and 56 deletions.
34 changes: 28 additions & 6 deletions .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,10 @@ jobs:
subsystem: deps
label: dependencies
run: |
NEW_VERSION=$(npm view undici dist-tags.latest)
CURRENT_VERSION=$(node -p "require('./deps/undici/src/package.json').version")
if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
./tools/update-undici.sh
fi
./tools/dep_updaters/update-undici.sh > temp-output
cat temp-output
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
rm temp-output
- id: postject
subsystem: deps,test
label: test
Expand Down Expand Up @@ -176,6 +174,30 @@ jobs:
cat temp-output
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
rm temp-output
- id: ngtcp2
subsystem: deps
label: dependencies
run: |
./tools/dep_updaters/update-ngtcp2.sh > temp-output
cat temp-output
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
rm temp-output
- id: nghttp3
subsystem: deps
label: dependencies
run: |
./tools/dep_updaters/update-nghttp3.sh > temp-output
cat temp-output
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
rm temp-output
- id: uvwasi
subsystem: deps
label: dependencies
run: |
./tools/dep_updaters/update-uvwasi.sh > temp-output
cat temp-output
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
rm temp-output
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
Expand Down
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ Matteo Collina <matteo.collina@gmail.com> <hello@matteocollina.com>
Matthew Lye <muddletoes@hotmail.com>
Matthew Turner <matty_t47@hotmail.com> <ramesius@users.noreply.github.com>
Matthias Bastian <dev@matthias-bastian.de> <piepmatz@users.noreply.github.com>
Matthew Aitken <maitken033380023@gmail.com>
Maurice Hayward <mauricehayward1@gmail.com>
Maya Lekova <apokalyptra@gmail.com> <mslekova@chromium.org>
Mestery <mestery@protonmail.com> <mestery@pm.me>
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ release.
<a href="doc/changelogs/CHANGELOG_V19.md#19.0.0">19.0.0</a><br/>
</td>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.15.0">18.15.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.16.0">18.16.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.15.0">18.15.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.14.2">18.14.2</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.14.1">18.14.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.14.0">18.14.0</a><br/>
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ For information about the governance of the Node.js project, see
**Juan José Arboleda** <<soyjuanarbol@gmail.com>> (he/him)
* [JungMinu](https://github.com/JungMinu) -
**Minwoo Jung** <<nodecorelab@gmail.com>> (he/him)
* [KhafraDev](https://github.com/KhafraDev) -
**Matthew Aitken** <<maitken033380023@gmail.com>> (he/him)
* [kuriyosh](https://github.com/kuriyosh) -
**Yoshiki Kurihara** <<yosyos0306@gmail.com>> (he/him)
* [legendecas](https://github.com/legendecas) -
Expand Down
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
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.3',
'v8_embedder_string': '-node.4',

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

Expand Down
4 changes: 2 additions & 2 deletions deps/v8/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -3085,8 +3085,8 @@ v8_header_set("v8_internal_headers") {
"src/compiler/turboshaft/typed-optimizations-reducer.h",
"src/compiler/turboshaft/typer.h",
"src/compiler/turboshaft/types.h",
"src/compiler/turboshaft/undef-assembler.macros.inc",
"src/compiler/turboshaft/uniform-reducer-adapater.h",
"src/compiler/turboshaft/undef-assembler-macros.inc",
"src/compiler/turboshaft/uniform-reducer-adapter.h",
"src/compiler/turboshaft/utils.h",
"src/compiler/turboshaft/value-numbering-reducer.h",
"src/compiler/turboshaft/variable-reducer.h",
Expand Down
12 changes: 9 additions & 3 deletions doc/api/async_context.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ added:
- v13.10.0
- v12.17.0
changes:
- version: v19.7.0
- version:
- v19.7.0
- v18.16.0
pr-url: https://github.com/nodejs/node/pull/46386
description: Removed experimental onPropagate option.
- version:
Expand All @@ -139,7 +141,9 @@ Creates a new instance of `AsyncLocalStorage`. Store is only provided within a
### Static method: `AsyncLocalStorage.bind(fn)`

<!-- YAML
added: v19.8.0
added:
- v19.8.0
- v18.16.0
-->

> Stability: 1 - Experimental
Expand All @@ -153,7 +157,9 @@ Binds the given function to the current execution context.
### Static method: `AsyncLocalStorage.snapshot()`

<!-- YAML
added: v19.8.0
added:
- v19.8.0
- v18.16.0
-->

> Stability: 1 - Experimental
Expand Down
4 changes: 3 additions & 1 deletion doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,9 @@ console.log(bufA.length);
### Static method: `Buffer.copyBytesFrom(view[, offset[, length]])`

<!-- YAML
added: v19.8.0
added:
- v19.8.0
- v18.16.0
-->

* `view` {TypedArray} The {TypedArray} to copy.
Expand Down
4 changes: 3 additions & 1 deletion doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,9 @@ set by [`emitter.setMaxListeners(n)`][] or defaults to
<!-- YAML
added: v3.2.0
changes:
- version: v19.8.0
- version:
- v19.8.0
- v18.16.0
pr-url: https://github.com/nodejs/node/pull/46523
description: Added the `listener` argument.
-->
Expand Down
12 changes: 9 additions & 3 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -2721,7 +2721,9 @@ const cleanup = finished(rs, (err) => {
<!-- YAML
added: v10.0.0
changes:
- version: v19.7.0
- version:
- v19.7.0
- v18.16.0
pr-url: https://github.com/nodejs/node/pull/46307
description: Added support for webstreams.
- version: v18.0.0
Expand Down Expand Up @@ -2822,7 +2824,9 @@ const server = http.createServer((req, res) => {
<!-- YAML
added: v16.9.0
changes:
- version: v19.8.0
- version:
- v19.8.0
- v18.16.0
pr-url: https://github.com/nodejs/node/pull/46675
description: Added support for webstreams.
-->
Expand Down Expand Up @@ -3263,7 +3267,9 @@ readable.getReader().read().then((result) => {
<!-- YAML
added: v15.4.0
changes:
- version: v19.7.0
- version:
- v19.7.0
- v18.16.0
pr-url: https://github.com/nodejs/node/pull/46273
description: Added support for `ReadableStream` and
`WritableStream`.
Expand Down
4 changes: 3 additions & 1 deletion doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,9 @@ added:
- v18.6.0
- v16.17.0
changes:
- version: v19.8.0
- version:
- v19.8.0
- v18.16.0
pr-url: https://github.com/nodejs/node/pull/46889
description: Calling `it()` is now equivalent to calling `test()`.
-->
Expand Down
8 changes: 6 additions & 2 deletions doc/api/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,9 @@ argument.
<!-- YAML
added: v0.11.13
changes:
- version: v19.8.0
- version:
- v19.8.0
- v18.16.0
pr-url: https://github.com/nodejs/node/pull/46978
description: The `dhparam` option can now be set to `'auto'` to
enable DHE with appropriate well-known parameters.
Expand Down Expand Up @@ -2256,7 +2258,9 @@ added: v11.4.0
## `tls.DEFAULT_CIPHERS`

<!-- YAML
added: v19.8.0
added:
- v19.8.0
- v18.16.0
-->

* {string} The default value of the `ciphers` option of
Expand Down
4 changes: 3 additions & 1 deletion doc/api/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,9 @@ console.log(params.toString());
#### `urlSearchParams.size`

<!-- YAML
added: v19.8.0
added:
- v19.8.0
- v18.16.0
-->

The total number of parameter entries.
Expand Down
6 changes: 4 additions & 2 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,9 @@ channel.port2.postMessage(signal, [signal]);
## `util.aborted(signal, resource)`
<!-- YAML
added: v19.7.0
added:
- v19.7.0
- v18.16.0
-->
> Stability: 1 - Experimental
Expand Down Expand Up @@ -2539,7 +2541,7 @@ for these errors:
```js
const vm = require('node:vm');
const context = vm.createContext({});
const myError = vm.runInContext('new Error', context);
const myError = vm.runInContext('new Error()', context);
console.log(util.types.isNativeError(myError)); // true
console.log(myError instanceof Error); // false
```
Expand Down
12 changes: 8 additions & 4 deletions doc/api/wasi.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/47391
description: The version option is now required and has no default value.
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/47390
description: default value of returnOnExit changed to true.
- version: v19.8.0
pr-url: https://github.com/nodejs/node/pull/46469
description: version field added to options.
Expand All @@ -136,10 +139,11 @@ changes:
sandbox directory structure. The string keys of `preopens` are treated as
directories within the sandbox. The corresponding values in `preopens` are
the real paths to those directories on the host machine.
* `returnOnExit` {boolean} By default, WASI applications terminate the Node.js
process via the `__wasi_proc_exit()` function. Setting this option to `true`
causes `wasi.start()` to return the exit code rather than terminate the
process. **Default:** `false`.
* `returnOnExit` {boolean} By default, when WASI applications call
`__wasi_proc_exit()` `wasi.start()` will return with the exit code
specified rather than terminatng the process. Setting this option to
`false` will cause the Node.js process to exit with the specified
exit code instead. **Default:** `true`.
* `stdin` {integer} The file descriptor used as standard input in the
WebAssembly application. **Default:** `0`.
* `stdout` {integer} The file descriptor used as standard output in the
Expand Down
4 changes: 3 additions & 1 deletion doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,9 @@ if (isMainThread) {
<!-- YAML
added: v10.5.0
changes:
- version: v19.8.0
- version:
- v19.8.0
- v18.16.0
pr-url: https://github.com/nodejs/node/pull/46832
description: Added support for a `name` option, which allows
adding a name to worker title for debugging.
Expand Down
Loading

0 comments on commit 9563b6e

Please sign in to comment.