Add REQUIRED_FRONTEND_VERSION prop on node def

This commit is contained in:
Chenlei Hu
2025-03-21 17:04:31 -04:00
parent e73c78e292
commit 92de68aabd
3 changed files with 69 additions and 21 deletions

View File

@@ -220,7 +220,7 @@ class ComfyNodeABC(ABC):
"""Flags a node as experimental, informing users that it may change or not work as expected."""
DEPRECATED: bool
"""Flags a node as deprecated, indicating to users that they should find alternatives to this node."""
REQUIRED_FRONTEND_VERSION: str
REQUIRED_FRONTEND_VERSION: str | None
"""The minimum version of the ComfyUI frontend required to load this node.
Usage::