ComfyUI now has native support for marking nodes as deprecated or
experimental, so the much of the code here no longer serves a purpose.
Zombie code for hiding nodes has been removed and this code now only
exists to display a text label on the node of a specific color.
This removes excessive console spam about deprecation in the reading of
setting values.
The workaround for filter being overwritten by applying to late for
refreshComboInNodes was to apply the filter with beforeRegisterNodeDef,
but that doesn't apply no js nodes inverted the issue of nodes being
hidden. A setup call has been added to ensure js nodes have the default
filter applied
Added color option to set the color of the warning text
When the warning text is an empty string, the widget has 0 height,
effectively hiding it.
Added a warn type as well as options for including nodes of type
'deprecated' or 'experimental' in search anyways. If a widget does not
have an assigned type, it defaults to deprecated.
Actually fix nodes being hidden on refresh. The last attempt was merely
nothing ever being hidden because of a syntax error preventing teh
script from loading. This implementation takes the rather more heavy
handed approach of applying at beforeRegisterNodeDef and setting up the
global filter option at init. This makes it marginally more likely to
interfere with other plugins that attempt to modify app.graph.filter, so
added safety has been included elsewhere in the code.
Added example usage to to Inject PIA as to demonstrate how it might be
used for an experimental node.