Repository navigation
v0.23.1
Engineering: every item now passes the React Compiler's rules and compiles with noUnusedLocals and noImplicitReturns. No API changed.
Fixed
- Safe under the React Compiler. A product that builds with
reactCompiler: truecompiles the kit's source with its own; components that read or wrote refs while rendering, set state synchronously in an effect, or calledDate.now()during render were skipped or could misbehave. Fixed with React's own patterns, behaviour unchanged except that a reset on a new prop now lands in the same render instead of one commit later (no stale frame):- state kept from the previous render instead of a ref:
field,choice-field(a fixed error fades out),island,image-grid(the lightbox's last picture),data-grid(the selection count while it leaves); - a reset when a prop changes, during render:
autocomplete,time-picker,media-player,route-progress,notification-center,camera-feed,use-presence; useSyncExternalStorefor browser-only facts:app-shell(Mac or not),list-detail(the first robot selected on wide screens);- latest values in a layout effect or
useEffectEvent:teleop-pad,robot-map,camera-feed;use-debouncekeeps its timer in a closure;use-long-pressdeclares its loop where it is used;input-group,tree(type-ahead times by the key event),graph,filters,attachment. data-grid's virtualiser (TanStack Virtual) is a library the compiler cannot optimise; it is left uncompiled on purpose, with the reason in the source.
- state kept from the previous render instead of a ref:
- Compiles with
noUnusedLocalsandnoImplicitReturns: no unused React import inagent-trace,card-mission,card-site,heatmap-zones,radial-chart-capacity,robot-status-card,sheet-robot-detail,sparkline-robot-list,sparkline-table,stats-cards,stats-meters,status-tracker-rollout,status-tracker-runs,form,status-glyph,load-more,meter,share-bar,theme-toggle;settings-webhooksreturns explicitly.
Re-install the items above (npx shadcn add @syncrobotic/<item> --overwrite); the version in each file's header says whether you have it.
Changed (repository)
- ESLint (TypeScript recommended, React hooks with the compiler rules) runs in CI as
npm run lint. - TypeScript:
noUnusedLocals,noUnusedParameters,noImplicitReturns,noFallthroughCasesInSwitch,noImplicitOverride; nobaseUrl(deprecated in TypeScript 6). - Docs site security headers:
frame-ancestors 'self',X-Frame-Options,nosniff,Referrer-Policy,Permissions-Policy(fullscreen and the clipboard stay allowed). - visual-baseline starts
cion the commit it pushes, so a release no longer waits on a check that never runs. - Node 22 pinned (
.nvmrc,engines). /brand: the product-photos placeholder is gone; no photos are planned.