summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2020-05-04 15:34:19 +0200
committerMichaël Zasso <targos@protonmail.com>2020-05-05 20:24:37 +0200
commitf446b2058dcfaf9d4e2f6bdfe555bc4437f41acf (patch)
tree20e0da41b372f68a2a184fe112a251f3533edb90 /doc/api
parent1ffd182264dcf02e010aae3dc88406c2db9efcfb (diff)
downloadnode-new-f446b2058dcfaf9d4e2f6bdfe555bc4437f41acf.tar.gz
2020-05-05, Version 14.2.0 (Current)
Notable changes: * Track function calls with `assert.CallTracker` (experimental). https://github.com/nodejs/node/pull/31982 * Added a `groupIndentation` option to the `Console` constructor. https://github.com/nodejs/node/pull/32964 PR-URL: https://github.com/nodejs/node/pull/33232
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/assert.md10
-rw-r--r--doc/api/console.md2
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md
index ac7edf36dd..9ad01a48f0 100644
--- a/doc/api/assert.md
+++ b/doc/api/assert.md
@@ -151,7 +151,7 @@ try {
## Class: `assert.CallTracker`
<!-- YAML
-added: REPLACEME
+added: v14.2.0
-->
> Stability: 1 - Experimental
@@ -160,7 +160,7 @@ This feature is currently experimental and behavior might still change.
### `new assert.CallTracker()`
<!-- YAML
-added: REPLACEME
+added: v14.2.0
-->
Creates a new [`CallTracker`][] object which can be used to track if functions
@@ -189,7 +189,7 @@ process.on('exit', () => {
### `tracker.calls([fn][, exact])`
<!-- YAML
-added: REPLACEME
+added: v14.2.0
-->
* `fn` {Function} **Default** A no-op function.
@@ -216,7 +216,7 @@ const callsfunc = tracker.calls(func);
### `tracker.report()`
<!-- YAML
-added: REPLACEME
+added: v14.2.0
-->
* Returns: {Array} of objects containing information about the wrapper functions
@@ -262,7 +262,7 @@ tracker.report();
### `tracker.verify()`
<!-- YAML
-added: REPLACEME
+added: v14.2.0
-->
Iterates through the list of functions passed to
diff --git a/doc/api/console.md b/doc/api/console.md
index 9122b85efa..2f4a8e64ed 100644
--- a/doc/api/console.md
+++ b/doc/api/console.md
@@ -81,7 +81,7 @@ const { Console } = console;
### `new Console(options)`
<!-- YAML
changes:
- - version: REPLACEME
+ - version: v14.2.0
pr-url: https://github.com/nodejs/node/pull/32964
description: The `groupIndentation` option was introduced.
- version: v11.7.0