mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-23 22:25:05 +00:00
refactor(ext-api): rename defineNodeExtension → defineNode, defineWidgetExtension → defineWidget
Shorter function names improve ergonomics while maintaining clarity: - defineNode() - register node-scoped extensions - defineWidget() - register widget type extensions Old names kept as deprecated aliases for backwards compatibility. Will be removed in v1.0. Updates all docs, examples, tests, and internal references. Addresses review discussion item #4 from design-review-12142.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -860,7 +860,7 @@ export class ComfyApp {
|
||||
void useSubgraphStore().fetchSubgraphs()
|
||||
await useExtensionService().loadExtensions()
|
||||
// Start the v2 node-extension reactive mount watcher (I-SR.3 / MIG1.E5).
|
||||
// Must run after loadExtensions() so all defineNodeExtension() calls have
|
||||
// Must run after loadExtensions() so all defineNode() calls have
|
||||
// pushed into nodeExtensions[] before the first watcher tick.
|
||||
startExtensionSystem()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user