Reference › Project
clarusjs 0.12.0
All releases · [email protected] on npm
Minor Changes
- A compile warning when state is changed in place, in a script or an event handler:
items.push(x),items.sort(),form.a = 1,form.b.c++,delete form.a, a Map's or Set'sset/add/delete/clear. Nothing notifies, so the page doesn't update; the warning says what to assign instead (items = [...items, …],form = { ...form, a: … }). Two-way bindings ([(value)]) already write a copy and aren't flagged. #358 - Other Vite plugins can name components for clarusjs to build:
api: { clarusComponents: (root) => [...files] }. They are found like the components undersrc/, so their styles reach the stylesheet and their islands get client chunks, though no page imports them by path (a docs theme's replacement for one of its parts, for example). #363
Patch Changes
clarusjs/forms: a multi-step form moves between steps inside a sandboxed frame too (asrcdociframe, an embedded preview). Therehistory.pushStatethrows, andnext()rejected with the step half-changed; now the step moves, without the URL hash. #357