3.2 KiB
3.2 KiB
WRNexusJS 0.6.0 focused fixes — issues 1 through 7
This developer-test archive fixes the seven blockers identified in WRNexusJS-v0.6.0-validation-against-spec.md.
Fixed
-
Generated browser-module syntax
- JavaScript reserved words such as the
classprop are never destructured into invalid bindings. - Function parameters no longer collide with generated prop, state, output, server, props, or refs aliases.
- All 108 UI component browser modules were regenerated and passed JavaScript syntax parsing.
- JavaScript reserved words such as the
-
Browser-store RPC
- Generated store actions bind
serverfrom the store action context. - Browser store RPC sends same-origin structured requests with CSRF and request identifiers.
- A live simulated store called a server function successfully and updated reactive state.
- Generated store actions bind
-
Concrete UI output contracts
- No
unknownremains inside any UIoutputs {}declaration. - Component reference and showcase metadata were regenerated.
- Legacy
$emit,@event,$event, andevent.detailremain absent from framework UI components.
- No
-
Configured import modes
- Dev compilation reads
imports.mode,imports.aliases, andimports.autoImportfrom application configuration. legacyaccepts implicit discovery.compatibleaccepts it withWRN-IMPORT-IMPLICITdiagnostics.explicitrejects missing imports and accepts correctly imported components/layouts/stores.
- Dev compilation reads
-
Store persistence migration and validation
persist { migrations { ... } validate { ... } }is parsed and emitted.- Browser restore executes version migration before validation.
- Invalid or incompatible persisted values are reset with diagnostics.
- Include-only state is written with the current persistence version.
-
Store HMR integration
- Store browser modules expose hot-update definitions.
- The dev server broadcasts versioned
store-updatemessages. - The browser HMR client imports changed store modules and applies updates without a mandatory document reload.
- Compatible fields are preserved; added, removed, and incompatible fields are reported.
-
Restricted RPC exposure
- RPC manifests include only server functions referenced through
server.name(...)by browser-capable code. - Unreferenced server functions remain available for local SSR/server execution but are not remotely exposed.
- RPC manifests include only server functions referenced through
Focused validation completed
- 108 UI browser artifacts generated: 0 generation failures.
- 108 UI browser artifacts syntax checked: 0 syntax failures.
- 250 UI/showcase
.wrnfiles parsed: 0 parser failures. - Browser-store RPC/persistence/validation/HMR simulation: passed.
- Import mode simulation for legacy/compatible/explicit: passed.
- Restricted component and store RPC manifest probes: passed.
- Generated server-store TypeScript transpilation: 0 diagnostics.
- VS Code extension Node tests: 28 passed.
node scripts/validate-0.6.mjs: 12 passed, 1 Bun warning, 0 failed.
Remaining local release gate
Bun is unavailable in the packaging environment. Run the full point-8 suite locally before publishing:
bun install
bun run validate:0.6
bun run check
bun run --cwd examples/component-showcase check