Skip to content

Releases: BlueFrog130/composure-js

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.

@composurejs/vite@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.

Patch Changes

  • #21 c64948a Thanks @BlueFrog130! - composure() names composurejs as the dep scanner's JSX runtime: a .tsx module with import.meta.glob no longer fails vite dev's dependency scan on react/jsx-dev-runtime.
  • Updated dependencies [11678d0, aaacd5e]:
    • composurejs@0.2.0

@composurejs/eslint-plugin@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.

Patch Changes

@composurejs/cli@0.1.4

Choose a tag to compare

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

Patch Changes

create-composurejs@0.1.3

Choose a tag to compare

@github-actions github-actions released this 26 Oct 15:03
197e78a

Patch Changes

create-composurejs@0.1.2

Choose a tag to compare

@github-actions github-actions released this 26 Oct 14:42
1ec6c4a

Patch Changes

composurejs@0.1.3

Choose a tag to compare

@github-actions github-actions released this 26 Oct 15:03
197e78a

Patch Changes

composurejs@0.1.2

Choose a tag to compare

@github-actions github-actions released this 26 Oct 14:42
1ec6c4a

Patch Changes

@composurejs/vite@0.1.3

Choose a tag to compare

@github-actions github-actions released this 26 Oct 15:03
197e78a

Patch Changes

@composurejs/vite@0.1.2

Choose a tag to compare

@github-actions github-actions released this 26 Oct 14:42
1ec6c4a

Patch Changes