Skip to content

Commit 1be240b

Browse files
bpamiriclaude
andauthored
fix(plugin): validate provides.mixins targets against allowlist (#2256)
PackageLoader silently accepted unknown mixin targets: a typo like "controler" or an unsupported name like "view" produced zero mixin injection, so the package appeared loaded but its methods never reached the target. Added $validateMixinTargets() to reject unknown targets up front with a clear error naming the unknown entry and the full allowlist. Dropped the silent-noop "view" target from the basecoat and hotwire manifests (controller mixins already surface in views via variables scope) and aligned the CLAUDE.md provides.mixins description with the actual allowlist. Refs #2247 Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 17e216d commit 1be240b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Basecoat UI component helpers for Wheels. shadcn/ui-quality design using plain HTML + Tailwind CSS. No React required.",
66
"wheelsVersion": ">=3.0",
77
"provides": {
8-
"mixins": "controller,view",
8+
"mixins": "controller",
99
"services": [],
1010
"middleware": []
1111
},

0 commit comments

Comments
 (0)