Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2021-04-06 20:20:53 +0300
committerJames M Snell <jasnell@gmail.com>2021-04-08 21:25:02 +0300
commit8930eba19947e26f90c086b750da410011760a11 (patch)
treee4483ecc04a28552bf274e34f1aea9424e5b2d41 /doc/api/assert.md
parent15b8e6b1c43c53400e9c48111969e42216a1a6f2 (diff)
assert: change status of legacy asserts
Previously marked deprecated, but these are unlikely to ever see breaking changes or complete removal. Mark as legacy instead. Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/38113 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'doc/api/assert.md')
-rw-r--r--doc/api/assert.md24
1 files changed, 20 insertions, 4 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md
index bfdd7cdd085..4e098e0bbc5 100644
--- a/doc/api/assert.md
+++ b/doc/api/assert.md
@@ -455,6 +455,10 @@ An alias of [`assert.ok()`][].
<!-- YAML
added: v0.1.21
changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/38113
+ description: In Legacy assertion mode, changed status from Deprecated to
+ Legacy.
- version: v14.0.0
pr-url: https://github.com/nodejs/node/pull/30766
description: NaN is now treated as being identical in case both sides are
@@ -496,7 +500,7 @@ An alias of [`assert.deepStrictEqual()`][].
**Legacy assertion mode**
-> Stability: 0 - Deprecated: Use [`assert.deepStrictEqual()`][] instead.
+> Stability: 3 - Legacy: Use [`assert.deepStrictEqual()`][] instead.
Tests for deep equality between the `actual` and `expected` parameters. Consider
using [`assert.deepStrictEqual()`][] instead. [`assert.deepEqual()`][] can have
@@ -1122,6 +1126,10 @@ assert.doesNotThrow(
<!-- YAML
added: v0.1.21
changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/38113
+ description: In Legacy assertion mode, changed status from Deprecated to
+ Legacy.
- version: v14.0.0
pr-url: https://github.com/nodejs/node/pull/30766
description: NaN is now treated as being identical in case both sides are
@@ -1138,7 +1146,7 @@ An alias of [`assert.strictEqual()`][].
**Legacy assertion mode**
-> Stability: 0 - Deprecated: Use [`assert.strictEqual()`][] instead.
+> Stability: 3 - Legacy: Use [`assert.strictEqual()`][] instead.
Tests shallow, coercive equality between the `actual` and `expected` parameters
using the [Abstract Equality Comparison][] ( `==` ). `NaN` is special handled
@@ -1446,6 +1454,10 @@ instance of an [`Error`][] then it will be thrown instead of the
<!-- YAML
added: v0.1.21
changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/38113
+ description: In Legacy assertion mode, changed status from Deprecated to
+ Legacy.
- version: v14.0.0
pr-url: https://github.com/nodejs/node/pull/30766
description: NaN is now treated as being identical in case both sides are
@@ -1483,7 +1495,7 @@ An alias of [`assert.notDeepStrictEqual()`][].
**Legacy assertion mode**
-> Stability: 0 - Deprecated: Use [`assert.notDeepStrictEqual()`][] instead.
+> Stability: 3 - Legacy: Use [`assert.notDeepStrictEqual()`][] instead.
Tests for any deep inequality. Opposite of [`assert.deepEqual()`][].
@@ -1622,6 +1634,10 @@ instead of the [`AssertionError`][].
<!-- YAML
added: v0.1.21
changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/38113
+ description: In Legacy assertion mode, changed status from Deprecated to
+ Legacy.
- version: v14.0.0
pr-url: https://github.com/nodejs/node/pull/30766
description: NaN is now treated as being identical in case both sides are
@@ -1638,7 +1654,7 @@ An alias of [`assert.notStrictEqual()`][].
**Legacy assertion mode**
-> Stability: 0 - Deprecated: Use [`assert.notStrictEqual()`][] instead.
+> Stability: 3 - Legacy: Use [`assert.notStrictEqual()`][] instead.
Tests shallow, coercive inequality with the [Abstract Equality Comparison][]
(`!=` ). `NaN` is special handled and treated as being identical in case both