Skip to content

composurejs@0.2.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 19:45
025c916

Minor Changes

  • #21 11678d0 Thanks @BlueFrog130! - The placement check follows function components: a tag passed to one is checked against the parent it puts its children in (<Button> cannot go inside <Container> (in <ui.Primary>)), and what one renders against where it is placed ((rendered by <Card>)). Function components are followed in the module and through relative imports and re-exports; checkPlacement takes { file, load } for the latter. The lint rule reads imported modules from disk (@composurejs/eslint-plugin now depends on oxc-parser), and vite dev re-checks a module when one it followed changes.

  • #21 aaacd5e Thanks @BlueFrog130! - A local function is now an Inline Handler: const add = (c) => .. (or function add(c) {..}) in a component, named by onClick / onSelect / onSubmit, is hoisted with what it captures and stays callable. A hoisted handler that reads a function declared inside a function is now a compile error naming it, instead of failing at render.