2.6 KiB
2.6 KiB
WRNexusJS v0.6.0 R7 test-cascade fixes
This revision addresses the 71 failures reported after running bun run check on R6.
Root fixes
-
Synchronous CSR hydration restored
- Scopes without a browser module hydrate immediately again.
- The unresolved
__WRNEXUS_CLIENT_MODULE__placeholder used by direct compiler/test rendering also hydrates inline behavior immediately. - Real resolved browser modules still load asynchronously before scope setup.
-
Component event target selection corrected
- A scope with its own
data-wrn-eventsnow uses itself before searching descendants.
- A scope with its own
-
Lifecycle validation restored
- Component lifecycle supports
mount,update, andunmount. - Compatibility aliases
clientInitanddisposemap to mount/unmount. - Unknown component and store lifecycle hooks fail parsing.
- Component lifecycle supports
-
Browser binding collisions fixed
- Runtime names such as
output,server,props, andrefsare not generated as implicit state/prop aliases. - Function parameters may still intentionally use those names.
- Runtime names such as
-
Synchronous page exports preserved
- Pages remain synchronous unless imported stores require
await. - This restores in-process WRN HMR module behavior.
- Pages remain synchronous unless imported stores require
-
Store dispose lifecycle mutations fixed
disposenow runs through the same internal mutation guard as initialization and hydration hooks.
-
Typed UI contract tests updated
- Tests inspect parsed typed props and
outputs {}declarations instead of matching legacy untyped declarations and@eventlines. - Dropdown danger styling is asserted through its canonical
data-danger="true"state.
- Tests inspect parsed typed props and
-
Component reference generation corrected
- Output payload parsing now supports nested parentheses and object/union types.
- RangeSlider now documents
input,change,focus, andblur. - FeatureGrid now includes the universal
sizeandcolorprops.
Focused validation performed
- 250 WRN UI/showcase files parsed, generated, and browser-module syntax checked.
- 108 UI browser modules generated without syntax errors.
- Unknown lifecycle hook rejection passed.
- Reserved output/prop browser codegen probe passed.
- Synchronous non-store page generation probe passed.
- Store clientInit/dispose mutation probe passed.
- UI component reference exactly matches parsed public outputs.
- Component reference regeneration is idempotent.
- VS Code extension: 28 tests passed and all validation checks passed.
node scripts/validate-0.6.mjs: 15 passed, 0 failed; Bun warning only.
The complete Bun workspace test suite must still be run on a machine with installed dependencies.