Skip to content

Commit 7070618

Browse files
authored
Exclude obsolete deprecations when making a version fatal (#400)
1 parent 2bdc2f0 commit 7070618

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/deprecations.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ function isFatal(
130130
for (const fatal of options.fatalDeprecations ?? []) {
131131
if (fatal instanceof Version) {
132132
if (versionNumber === null) continue;
133+
if (deprecation.obsoleteIn !== null) continue;
133134
if (
134135
versionNumber <=
135136
fatal.major * 1000000 + fatal.minor * 1000 + fatal.patch

0 commit comments

Comments
 (0)