What's new
Preact support
- Native Preact integration —
boneyard-js/preactusespreact/hooksdirectly, nopreact/compatneeded. Full feature parity with React: dark mode, responsive bones, stagger, transition, boneClass. CLI and Vite plugin auto-detect Preact projects. (#49, fixes #44)
React Native improvements
- Dynamic Type / font scaling — skeletons now adapt to iOS Dynamic Type and Android font scaling at runtime by measuring real content height and scaling bone positions proportionally via
scaleY. Generate bones at default font scale (1.0) — scaling is automatic. (#51) - Per-bone shimmer animation — shimmer now sweeps across each individual bone instead of the full container width. (#52)
- Stagger fade-in — the
staggerprop now works on React Native with per-bone incremental delay. (#52) - 60fps animations — all RN animations switched to
useNativeDriver: true. (#52) - Proper native.d.ts — full type definitions for
AnimationStyle,stagger,transition,configureBoneyard. (#52)
CLI improvements
- Guided crawling — add a
"skeletons"map toboneyard.config.jsonto skip route discovery and go directly to specified routes with per-skeleton wait times. (#28) - Auth diagnostics — CLI now logs when a page redirects (e.g. auth middleware →
/login) and when__BONEYARD_SNAPSHOTis not found on a page. (#29)
Bug fixes
- Paragraph spacing — consecutive text skeleton blocks now have a minimum 8px visual gap in block layout. (#50)
- Angular ESM export — added missing
"import"condition to./angularpackage export. (#45, fixes #42) - Homepage URL —
package.jsonhomepage now points to boneyard.vercel.app. (#47)
Chores
- Bump
@chenglou/pretextfrom ^0.0.3 to ^0.0.5 (performance improvements). (#48) - Set VS Code package manager to pnpm. (#46)
Contributors
- @JanoTheDev — Preact integration, RN shimmer/stagger/Dynamic Type, Angular export fix
- @CalmProton — pretext bump, homepage URL, VS Code pnpm setting
- @motopods — paragraph spacing report
- @basslii — Angular export issue report
- @watzak — Preact support request
- @NULL0B — guided crawling idea