release: WRNexusJS 0.5.0

This commit is contained in:
2026-07-29 12:51:10 +05:30
parent 76c768099d
commit 6afe32f63f
456 changed files with 40879 additions and 8850 deletions
+4 -8
View File
@@ -74,14 +74,10 @@ const components = readdirSync(componentsDir)
),
),
];
const events =
declaredEvents.length > 0
? declaredEvents
: (entry?.events ?? [
...new Set(
[...source.matchAll(/@([A-Za-z][A-Za-z0-9_-]*)=/g)].map((match) => match[1]),
),
]);
// Only `@event` declarations form the public component contract. Native
// handlers in a component's implementation are private wiring and must not
// leak into the generated consumer-facing reference.
const events = declaredEvents;
return {
name,
mount: name,