Skip to content

Commit

Permalink
2023-03-07, Version 18.15.0 'Hydrogen' (LTS)
Browse files Browse the repository at this point in the history
Notable changes:

buffer:
  * (SEMVER-MINOR) add isAscii method (Yagiz Nizipli) #46046
doc,lib,src,test:
  * rename --test-coverage (Colin Ihrig) #46017
fs:
  * (SEMVER-MINOR) add statfs() functions (Colin Ihrig) #46358
src,lib:
  * (SEMVER-MINOR) add constrainedMemory API for process (theanarkh) #46218
test_runner:
  * add initial code coverage support (Colin Ihrig) #46017
  * (SEMVER-MINOR) add reporters (Moshe Atlow) #45712
v8:
  * (SEMVER-MINOR) support gc profile (theanarkh) #46255
vm:
  * (SEMVER-MINOR) expose cachedDataRejected for vm.compileFunction (Anna Henningsen) #46320

PR-URL: #46920
  • Loading branch information
juanarbol committed Mar 7, 2023
1 parent d4c3e3b commit 3b0c047
Show file tree
Hide file tree
Showing 10 changed files with 182 additions and 25 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,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.14.2">18.14.2</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.15.0">18.15.0</a></b><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/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.13.0">18.13.0</a><br/>
Expand Down
4 changes: 3 additions & 1 deletion doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -5163,7 +5163,9 @@ and binary data should be performed using `Buffer.from(str, 'base64')` and
### `buffer.isAscii(input)`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

* input {Buffer | ArrayBuffer | TypedArray} The input to validate.
Expand Down
12 changes: 9 additions & 3 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,9 @@ Use this flag to enable [ShadowRealm][] support.
### `--experimental-test-coverage`

<!-- YAML
added: v19.7.0
added:
- v19.7.0
- v18.15.0
-->

When used in conjunction with the `node:test` module, a code coverage report is
Expand Down Expand Up @@ -1419,7 +1421,9 @@ whose name matches the provided pattern. See the documentation on
### `--test-reporter`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

A test reporter to use when running tests. See the documentation on
Expand All @@ -1428,7 +1432,9 @@ A test reporter to use when running tests. See the documentation on
### `--test-reporter-destination`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

The destination for the corresponding test reporter. See the documentation on
Expand Down
44 changes: 33 additions & 11 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,9 @@ changes:
### `fsPromises.statfs(path[, options])`
<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->
* `path` {string|Buffer|URL}
Expand Down Expand Up @@ -4160,7 +4162,9 @@ Stats {
### `fs.statfs(path[, options], callback)`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

* `path` {string|Buffer|URL}
Expand Down Expand Up @@ -5931,7 +5935,9 @@ Retrieves the {fs.Stats} for the path.
### `fs.statfsSync(path[, options])`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

* `path` {string|Buffer|URL}
Expand Down Expand Up @@ -7040,7 +7046,9 @@ of 0.12, `ctime` is not "creation time", and on Unix systems, it never was.
### Class: `fs.StatFs`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

Provides information about a mounted file system.
Expand Down Expand Up @@ -7078,7 +7086,9 @@ StatFs {
#### `statfs.bavail`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

* {number|bigint}
Expand All @@ -7088,7 +7098,9 @@ Free blocks available to unprivileged users.
#### `statfs.bfree`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

* {number|bigint}
Expand All @@ -7098,7 +7110,9 @@ Free blocks in file system.
#### `statfs.blocks`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

* {number|bigint}
Expand All @@ -7108,7 +7122,9 @@ Total data blocks in file system.
#### `statfs.bsize`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

* {number|bigint}
Expand All @@ -7118,7 +7134,9 @@ Optimal transfer block size.
#### `statfs.ffree`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

* {number|bigint}
Expand All @@ -7128,7 +7146,9 @@ Free file nodes in file system.
#### `statfs.files`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

* {number|bigint}
Expand All @@ -7138,7 +7158,9 @@ Total file nodes in file system.
#### `statfs.type`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

* {number|bigint}
Expand Down
4 changes: 3 additions & 1 deletion doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -2993,7 +2993,9 @@ headers with the same name.
### `outgoingMessage.setHeaders(headers)`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

* `headers` {Headers|Map}
Expand Down
4 changes: 3 additions & 1 deletion doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,9 @@ over the IPC channel using `process.send()`.
## `process.constrainedMemory()`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

> Stability: 1 - Experimental
Expand Down
8 changes: 5 additions & 3 deletions doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,9 @@ test('spies on an object method', (t) => {
## Test reporters

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

The `node:test` module supports passing [`--test-reporter`][]
Expand Down Expand Up @@ -842,7 +844,7 @@ Shorthand for marking a suite as `TODO`, same as
## `describe.only([name][, options][, fn])`

<!-- YAML
added: REPLACEME
added: v18.15.0
-->

Shorthand for marking a suite as `only`, same as
Expand Down Expand Up @@ -877,7 +879,7 @@ same as [`it([name], { todo: true }[, fn])`][it options].
## `it.only([name][, options][, fn])`

<!-- YAML
added: REPLACEME
added: v18.15.0
-->

Shorthand for marking a test as `only`,
Expand Down
16 changes: 12 additions & 4 deletions doc/api/v8.md
Original file line number Diff line number Diff line change
Expand Up @@ -1054,31 +1054,39 @@ Returns true if the Node.js instance is run to build a snapshot.
## Class: `v8.GCProfiler`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

This API collects GC data in current thread.

### `new v8.GCProfiler()`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

Create a new instance of the `v8.GCProfiler` class.

### `profiler.start()`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

Start collecting GC data.

### `profiler.stop()`

<!-- YAML
added: v19.6.0
added:
- v19.6.0
- v18.15.0
-->

Stop collecting GC data and return an object.The content of object
Expand Down
1 change: 1 addition & 0 deletions doc/api/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ added: v10.10.0
changes:
- version:
- v19.6.0
- v18.15.0
pr-url: https://github.com/nodejs/node/pull/46320
description: The return value now includes `cachedDataRejected`
with the same semantics as the `vm.Script` version
Expand Down

0 comments on commit 3b0c047

Please sign in to comment.