Skip to content

Commit f65eadc

Browse files
jasnelltargos
authored andcommitted
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 <[email protected]> PR-URL: #38113 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
1 parent 854a2a9 commit f65eadc

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

doc/api/assert.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@ An alias of [`assert.ok()`][].
304304
<!-- YAML
305305
added: v0.1.21
306306
changes:
307+
- version: REPLACEME
308+
pr-url: https://github.com/nodejs/node/pull/38113
309+
description: In Legacy assertion mode, changed status from Deprecated to
310+
Legacy.
307311
- version: v14.0.0
308312
pr-url: https://github.com/nodejs/node/pull/30766
309313
description: NaN is now treated as being identical in case both sides are
@@ -345,7 +349,7 @@ An alias of [`assert.deepStrictEqual()`][].
345349

346350
**Legacy assertion mode**
347351

348-
> Stability: 0 - Deprecated: Use [`assert.deepStrictEqual()`][] instead.
352+
> Stability: 3 - Legacy: Use [`assert.deepStrictEqual()`][] instead.
349353
350354
Tests for deep equality between the `actual` and `expected` parameters. Consider
351355
using [`assert.deepStrictEqual()`][] instead. [`assert.deepEqual()`][] can have
@@ -754,6 +758,10 @@ assert.doesNotThrow(
754758
<!-- YAML
755759
added: v0.1.21
756760
changes:
761+
- version: REPLACEME
762+
pr-url: https://github.com/nodejs/node/pull/38113
763+
description: In Legacy assertion mode, changed status from Deprecated to
764+
Legacy.
757765
- version: v14.0.0
758766
pr-url: https://github.com/nodejs/node/pull/30766
759767
description: NaN is now treated as being identical in case both sides are
@@ -770,7 +778,7 @@ An alias of [`assert.strictEqual()`][].
770778

771779
**Legacy assertion mode**
772780

773-
> Stability: 0 - Deprecated: Use [`assert.strictEqual()`][] instead.
781+
> Stability: 3 - Legacy: Use [`assert.strictEqual()`][] instead.
774782
775783
Tests shallow, coercive equality between the `actual` and `expected` parameters
776784
using the [Abstract Equality Comparison][] ( `==` ). `NaN` is special handled
@@ -977,6 +985,10 @@ instance of an [`Error`][] then it will be thrown instead of the
977985
<!-- YAML
978986
added: v0.1.21
979987
changes:
988+
- version: REPLACEME
989+
pr-url: https://github.com/nodejs/node/pull/38113
990+
description: In Legacy assertion mode, changed status from Deprecated to
991+
Legacy.
980992
- version: v14.0.0
981993
pr-url: https://github.com/nodejs/node/pull/30766
982994
description: NaN is now treated as being identical in case both sides are
@@ -1014,7 +1026,7 @@ An alias of [`assert.notDeepStrictEqual()`][].
10141026

10151027
**Legacy assertion mode**
10161028

1017-
> Stability: 0 - Deprecated: Use [`assert.notDeepStrictEqual()`][] instead.
1029+
> Stability: 3 - Legacy: Use [`assert.notDeepStrictEqual()`][] instead.
10181030
10191031
Tests for any deep inequality. Opposite of [`assert.deepEqual()`][].
10201032

@@ -1113,6 +1125,10 @@ instead of the [`AssertionError`][].
11131125
<!-- YAML
11141126
added: v0.1.21
11151127
changes:
1128+
- version: REPLACEME
1129+
pr-url: https://github.com/nodejs/node/pull/38113
1130+
description: In Legacy assertion mode, changed status from Deprecated to
1131+
Legacy.
11161132
- version: v14.0.0
11171133
pr-url: https://github.com/nodejs/node/pull/30766
11181134
description: NaN is now treated as being identical in case both sides are
@@ -1129,7 +1145,7 @@ An alias of [`assert.notStrictEqual()`][].
11291145

11301146
**Legacy assertion mode**
11311147

1132-
> Stability: 0 - Deprecated: Use [`assert.notStrictEqual()`][] instead.
1148+
> Stability: 3 - Legacy: Use [`assert.notStrictEqual()`][] instead.
11331149
11341150
Tests shallow, coercive inequality with the [Abstract Equality Comparison][]
11351151
(`!=` ). `NaN` is special handled and treated as being identical in case both

0 commit comments

Comments
 (0)