Skip to content

Commit 3770d3a

Browse files
committed
2022-11-14, Version 19.1.0 (Current)
Notable changes: * deps: * update ICU to 72.1 (Michaël Zasso) [#45068](#45068) * doc: * add lukekarrys to collaborators (Luke Karrys) [#45180](#45180) * add anonrig to collaborators (Yagiz Nizipli) [#45002](#45002) * fs: * (SEMVER-MINOR) fs: add recursive watch to linux (Yagiz Nizipli) [#45098](#45098) * lib: * drop fetch experimental warning (Matteo Collina) [#45287](#45287) * test_runner: * support function mocking (Colin Ihrig) [#45326](#45326) * util * (SEMVER-MINOR) add MIME utilities (Bradley Farias) [#21128](#21128) * improve textdecoder decode performance (Yagiz Nizipli) [#45294](#45294) PR-URL: #45269
1 parent dbce478 commit 3770d3a

File tree

9 files changed

+277
-21
lines changed

9 files changed

+277
-21
lines changed

doc/api/fs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4320,7 +4320,7 @@ The `atime` and `mtime` arguments follow these rules:
43204320
<!-- YAML
43214321
added: v0.5.10
43224322
changes:
4323-
- version: REPLACEME
4323+
- version: v19.1.0
43244324
pr-url: https://github.com/nodejs/node/pull/45098
43254325
description: Added recursive support for Linux, AIX and IBMi.
43264326
- version:

doc/api/stream.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ has less then 64 KiB of data because no `highWaterMark` option is provided to
16841684
##### `readable.compose(stream[, options])`
16851685

16861686
<!-- YAML
1687-
added: REPLACEME
1687+
added: v19.1.0
16881688
-->
16891689

16901690
> Stability: 1 - Experimental

doc/api/test.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ describe('tests', async () => {
749749
## Class: `MockFunctionContext`
750750

751751
<!-- YAML
752-
added: REPLACEME
752+
added: v19.1.0
753753
-->
754754

755755
The `MockFunctionContext` class is used to inspect or manipulate the behavior of
@@ -758,7 +758,7 @@ mocks created via the [`MockTracker`][] APIs.
758758
### `ctx.calls`
759759

760760
<!-- YAML
761-
added: REPLACEME
761+
added: v19.1.0
762762
-->
763763

764764
* {Array}
@@ -780,7 +780,7 @@ mock. Each entry in the array is an object with the following properties.
780780
### `ctx.callCount()`
781781

782782
<!-- YAML
783-
added: REPLACEME
783+
added: v19.1.0
784784
-->
785785

786786
* Returns: {integer} The number of times that this mock has been invoked.
@@ -792,7 +792,7 @@ is a getter that creates a copy of the internal call tracking array.
792792
### `ctx.mockImplementation(implementation)`
793793

794794
<!-- YAML
795-
added: REPLACEME
795+
added: v19.1.0
796796
-->
797797

798798
* `implementation` {Function|AsyncFunction} The function to be used as the
@@ -829,7 +829,7 @@ test('changes a mock behavior', (t) => {
829829
### `ctx.mockImplementationOnce(implementation[, onCall])`
830830

831831
<!-- YAML
832-
added: REPLACEME
832+
added: v19.1.0
833833
-->
834834

835835
* `implementation` {Function|AsyncFunction} The function to be used as the
@@ -873,7 +873,7 @@ test('changes a mock behavior once', (t) => {
873873
### `ctx.restore()`
874874

875875
<!-- YAML
876-
added: REPLACEME
876+
added: v19.1.0
877877
-->
878878

879879
Resets the implementation of the mock function to its original behavior. The
@@ -882,7 +882,7 @@ mock can still be used after calling this function.
882882
## Class: `MockTracker`
883883

884884
<!-- YAML
885-
added: REPLACEME
885+
added: v19.1.0
886886
-->
887887

888888
The `MockTracker` class is used to manage mocking functionality. The test runner
@@ -893,7 +893,7 @@ Each test also provides its own `MockTracker` instance via the test context's
893893
### `mock.fn([original[, implementation]][, options])`
894894

895895
<!-- YAML
896-
added: REPLACEME
896+
added: v19.1.0
897897
-->
898898

899899
* `original` {Function|AsyncFunction} An optional function to create a mock on.
@@ -944,7 +944,7 @@ test('mocks a counting function', (t) => {
944944
### `mock.method(object, methodName[, implementation][, options])`
945945

946946
<!-- YAML
947-
added: REPLACEME
947+
added: v19.1.0
948948
-->
949949

950950
* `object` {Object} The object whose method is being mocked.
@@ -998,7 +998,7 @@ test('spies on an object method', (t) => {
998998
### `mock.reset()`
999999

10001000
<!-- YAML
1001-
added: REPLACEME
1001+
added: v19.1.0
10021002
-->
10031003

10041004
This function restores the default behavior of all mocks that were previously
@@ -1014,7 +1014,7 @@ function manually is recommended.
10141014
### `mock.restoreAll()`
10151015

10161016
<!-- YAML
1017-
added: REPLACEME
1017+
added: v19.1.0
10181018
-->
10191019

10201020
This function restores the default behavior of all mocks that were previously

doc/api/tls.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ certificate.
11731173

11741174
<!-- YAML
11751175
changes:
1176-
- version: REPLACEME
1176+
- version: v19.1.0
11771177
pr-url: https://github.com/nodejs/node/pull/44935
11781178
description: Add "ca" property.
11791179
- version:

doc/api/util.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ equality.
10271027
## Class: `util.MIMEType`
10281028

10291029
<!-- YAML
1030-
added: REPLACEME
1030+
added: v19.1.0
10311031
-->
10321032

10331033
> Stability: 1 - Experimental
@@ -1226,7 +1226,7 @@ console.log(JSON.stringify(myMIMES));
12261226
### Class: `util.MIMEParams`
12271227

12281228
<!-- YAML
1229-
added: REPLACEME
1229+
added: v19.1.0
12301230
-->
12311231

12321232
The `MIMEParams` API provides read and write access to the parameters of a

doc/api/v8.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ following properties:
6666
<!-- YAML
6767
added: v11.13.0
6868
changes:
69-
- version: REPLACEME
69+
- version: v19.1.0
7070
pr-url: https://github.com/nodejs/node/pull/44989
7171
description: Support options to configure the heap snapshot.
7272
-->
@@ -304,7 +304,7 @@ disk unless [`v8.stopCoverage()`][] is invoked before the process exits.
304304
<!-- YAML
305305
added: v11.13.0
306306
changes:
307-
- version: REPLACEME
307+
- version: v19.1.0
308308
pr-url: https://github.com/nodejs/node/pull/44989
309309
description: Support options to configure the heap snapshot.
310310
- version: v18.0.0

doc/api/vm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ console.log(globalVar);
347347
### `script.sourceMapURL`
348348

349349
<!-- YAML
350-
added: REPLACEME
350+
added: v19.1.0
351351
-->
352352

353353
* {string|undefined}

doc/api/worker_threads.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ added:
10741074
- v13.9.0
10751075
- v12.17.0
10761076
changes:
1077-
- version: REPLACEME
1077+
- version: v19.1.0
10781078
pr-url: https://github.com/nodejs/node/pull/44989
10791079
description: Support options to configure the heap snapshot.
10801080
-->

0 commit comments

Comments
 (0)