github vercel-labs/scriptc v0.0.6

latest releases: v0.4.6, v0.4.5, v0.4.4...
3 months ago

Features

  • Recursive types compile statically: self-referential interfaces (interface TreeNode { label: string; children: TreeNode[] }), mutually recursive types, and recursive unions — the AST/tree/linked-list class — now map to native representations. Cyclic values are collected by the cycle collector; JSON.stringify on a cyclic value throws V8's exact circular-structure error; console.log prints Node's circular reference markers; JSON.parse(x) as T validates recursive shapes with path-exact failures.

Don't miss a new scriptc release

NewReleases is sending notifications on new releases.