Files
WRNexusJS/FIXES-0.6.0-TYPECHECK-R2.md
T
2026-08-01 01:09:58 +05:30

1.1 KiB

WRNexusJS v0.6.0 typecheck correction R2

This correction addresses the first local Bun validation failures reported after the focused issues 1-7 build.

Corrected

  • Added a valid root .vscode/settings.json so the v0.6 JSON validator succeeds.
  • Store definitions now model shared, client-only, and server-only state as separate inferred object types.
  • Store actions no longer infer as never; action methods remain callable from returned store instances.
  • Renamed the internal initialization promise from ready to whenReady so application state may safely declare a field named ready.
  • Updated generated browser-store modules to use the same collision-safe whenReady field.

Focused validation

  • packages/store/test/store.test.ts passes strict TypeScript checking with a local Bun test declaration shim.
  • A live Node type-stripping probe passed server/client action dispatch, computed state, server-state exclusion, and the ready state collision case.
  • node scripts/validate-0.6.mjs reports 12 passed, 0 failed in the packaging environment; only the expected warning remains because Bun is unavailable there.