Skip to content

Commit 3b0c047

Browse files
committed
2023-03-07, Version 18.15.0 'Hydrogen' (LTS)
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
1 parent d4c3e3b commit 3b0c047

File tree

10 files changed

+182
-25
lines changed

10 files changed

+182
-25
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ release.
4747
<a href="doc/changelogs/CHANGELOG_V19.md#19.0.0">19.0.0</a><br/>
4848
</td>
4949
<td valign="top">
50-
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.14.2">18.14.2</a></b><br/>
50+
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.15.0">18.15.0</a></b><br/>
51+
<a href="doc/changelogs/CHANGELOG_V18.md#18.14.2">18.14.2</a><br/>
5152
<a href="doc/changelogs/CHANGELOG_V18.md#18.14.1">18.14.1</a><br/>
5253
<a href="doc/changelogs/CHANGELOG_V18.md#18.14.0">18.14.0</a><br/>
5354
<a href="doc/changelogs/CHANGELOG_V18.md#18.13.0">18.13.0</a><br/>

doc/api/buffer.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -5163,7 +5163,9 @@ and binary data should be performed using `Buffer.from(str, 'base64')` and
51635163
### `buffer.isAscii(input)`
51645164

51655165
<!-- YAML
5166-
added: v19.6.0
5166+
added:
5167+
- v19.6.0
5168+
- v18.15.0
51675169
-->
51685170

51695171
* input {Buffer | ArrayBuffer | TypedArray} The input to validate.

doc/api/cli.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,9 @@ Use this flag to enable [ShadowRealm][] support.
601601
### `--experimental-test-coverage`
602602

603603
<!-- YAML
604-
added: v19.7.0
604+
added:
605+
- v19.7.0
606+
- v18.15.0
605607
-->
606608

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

14211423
<!-- YAML
1422-
added: v19.6.0
1424+
added:
1425+
- v19.6.0
1426+
- v18.15.0
14231427
-->
14241428

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

14301434
<!-- YAML
1431-
added: v19.6.0
1435+
added:
1436+
- v19.6.0
1437+
- v18.15.0
14321438
-->
14331439

14341440
The destination for the corresponding test reporter. See the documentation on

doc/api/fs.md

+33-11
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,9 @@ changes:
15361536
### `fsPromises.statfs(path[, options])`
15371537
15381538
<!-- YAML
1539-
added: v19.6.0
1539+
added:
1540+
- v19.6.0
1541+
- v18.15.0
15401542
-->
15411543
15421544
* `path` {string|Buffer|URL}
@@ -4160,7 +4162,9 @@ Stats {
41604162
### `fs.statfs(path[, options], callback)`
41614163

41624164
<!-- YAML
4163-
added: v19.6.0
4165+
added:
4166+
- v19.6.0
4167+
- v18.15.0
41644168
-->
41654169

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

59335937
<!-- YAML
5934-
added: v19.6.0
5938+
added:
5939+
- v19.6.0
5940+
- v18.15.0
59355941
-->
59365942

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

70427048
<!-- YAML
7043-
added: v19.6.0
7049+
added:
7050+
- v19.6.0
7051+
- v18.15.0
70447052
-->
70457053

70467054
Provides information about a mounted file system.
@@ -7078,7 +7086,9 @@ StatFs {
70787086
#### `statfs.bavail`
70797087

70807088
<!-- YAML
7081-
added: v19.6.0
7089+
added:
7090+
- v19.6.0
7091+
- v18.15.0
70827092
-->
70837093

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

70907100
<!-- YAML
7091-
added: v19.6.0
7101+
added:
7102+
- v19.6.0
7103+
- v18.15.0
70927104
-->
70937105

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

71007112
<!-- YAML
7101-
added: v19.6.0
7113+
added:
7114+
- v19.6.0
7115+
- v18.15.0
71027116
-->
71037117

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

71107124
<!-- YAML
7111-
added: v19.6.0
7125+
added:
7126+
- v19.6.0
7127+
- v18.15.0
71127128
-->
71137129

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

71207136
<!-- YAML
7121-
added: v19.6.0
7137+
added:
7138+
- v19.6.0
7139+
- v18.15.0
71227140
-->
71237141

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

71307148
<!-- YAML
7131-
added: v19.6.0
7149+
added:
7150+
- v19.6.0
7151+
- v18.15.0
71327152
-->
71337153

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

71407160
<!-- YAML
7141-
added: v19.6.0
7161+
added:
7162+
- v19.6.0
7163+
- v18.15.0
71427164
-->
71437165

71447166
* {number|bigint}

doc/api/http.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2993,7 +2993,9 @@ headers with the same name.
29932993
### `outgoingMessage.setHeaders(headers)`
29942994

29952995
<!-- YAML
2996-
added: v19.6.0
2996+
added:
2997+
- v19.6.0
2998+
- v18.15.0
29972999
-->
29983000

29993001
* `headers` {Headers|Map}

doc/api/process.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,9 @@ over the IPC channel using `process.send()`.
11061106
## `process.constrainedMemory()`
11071107

11081108
<!-- YAML
1109-
added: v19.6.0
1109+
added:
1110+
- v19.6.0
1111+
- v18.15.0
11101112
-->
11111113

11121114
> Stability: 1 - Experimental

doc/api/test.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,9 @@ test('spies on an object method', (t) => {
511511
## Test reporters
512512

513513
<!-- YAML
514-
added: v19.6.0
514+
added:
515+
- v19.6.0
516+
- v18.15.0
515517
-->
516518

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

844846
<!-- YAML
845-
added: REPLACEME
847+
added: v18.15.0
846848
-->
847849

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

879881
<!-- YAML
880-
added: REPLACEME
882+
added: v18.15.0
881883
-->
882884

883885
Shorthand for marking a test as `only`,

doc/api/v8.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -1054,31 +1054,39 @@ Returns true if the Node.js instance is run to build a snapshot.
10541054
## Class: `v8.GCProfiler`
10551055

10561056
<!-- YAML
1057-
added: v19.6.0
1057+
added:
1058+
- v19.6.0
1059+
- v18.15.0
10581060
-->
10591061

10601062
This API collects GC data in current thread.
10611063

10621064
### `new v8.GCProfiler()`
10631065

10641066
<!-- YAML
1065-
added: v19.6.0
1067+
added:
1068+
- v19.6.0
1069+
- v18.15.0
10661070
-->
10671071

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

10701074
### `profiler.start()`
10711075

10721076
<!-- YAML
1073-
added: v19.6.0
1077+
added:
1078+
- v19.6.0
1079+
- v18.15.0
10741080
-->
10751081

10761082
Start collecting GC data.
10771083

10781084
### `profiler.stop()`
10791085

10801086
<!-- YAML
1081-
added: v19.6.0
1087+
added:
1088+
- v19.6.0
1089+
- v18.15.0
10821090
-->
10831091

10841092
Stop collecting GC data and return an object.The content of object

doc/api/vm.md

+1
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,7 @@ added: v10.10.0
966966
changes:
967967
- version:
968968
- v19.6.0
969+
- v18.15.0
969970
pr-url: https://github.com/nodejs/node/pull/46320
970971
description: The return value now includes `cachedDataRejected`
971972
with the same semantics as the `vm.Script` version

0 commit comments

Comments
 (0)