Skip to content

Commit 94a4bcd

Browse files
chore: name what the next major must decide to drop the is() guard (#22609)
Claude-Session: https://claude.ai/code/session_01FuxKwZepsFsatQwWC2XFQy
1 parent 9b55eda commit 94a4bcd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎lib/graph/isDependencyKind.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
* @returns {dependency is DependencyKinds[K]} true when the dependency is of that kind
1717
*/
1818
const isDependencyKind = (dependency, kind) =>
19-
// TODO in the next major release: remove, every dependency then has `is()`
19+
// TODO in the next major release: remove, require plugin dependencies to extend the current
20+
// `Dependency` and call `dependency.is(kind)` directly
2021
typeof dependency.is === "function" && dependency.is(kind);
2122

2223
module.exports = isDependencyKind;

0 commit comments

Comments
 (0)