10 lines
939 B
Markdown
10 lines
939 B
Markdown
# WRNexusJS v0.6 architecture
|
|
|
|
The v0.6 compiler produces separate server and browser targets, generated declarations, component/store metadata, and an RPC manifest. Client functions are loaded as browser modules; server functions remain server-side. Shared functions are emitted to both targets.
|
|
|
|
The RPC endpoint accepts only manifest-declared server calls, validates input and output, enforces same-origin and CSRF checks, and returns structured traceable errors. Compile-time typing is never treated as an authorization boundary.
|
|
|
|
SSR creates one store container per request. Only serializable shared/client store state enters the hydration payload. Server state is excluded. CSR retains global stores across navigation and disposes page stores when the route changes.
|
|
|
|
Compatibility mode retains legacy component discovery, string layouts, unmodified legacy functions, and legacy output handling while emitting migration diagnostics.
|