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:
Connor Byrne
2026-05-12 18:20:11 -07:00
parent e74250fd8a
commit 8da221b5db
10 changed files with 59 additions and 35 deletions

View File

@@ -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()