Skip to content

Hasta 0.4.0

Choose a tag to compare

@66HEX 66HEX released this 15 Nov 02:52
· 36 commits to main since this release
v0.4.0
883cb58

Added

  • Cached geometry tracking with automatic invalidation for DOM changes, resize, scrolling, and animations, including tracked shadow roots.
  • hasta.invalidate() and controller.invalidate() to refresh all target bounds after changes such as CSSOM edits. target.invalidate() refreshes one target.
  • Regression tests for geometry caching, spatial queries, active rules, and shared prediction misses.
  • GitHub repository link in the documentation header.

Changed

  • Geometry is cached by default. Set bounds: 'frame' to retain the per-frame measurement policy of 0.3.0. Cached bounds preserve their actual measuredAt timestamp.
  • Reduced runtime work with a spatial grid, reused target and rule snapshots, and shared miss bookkeeping while preserving callback stability and cancellation behavior.
  • Demo controls use colored inset shadows for hover, focus, and prediction highlights.

Fixed

  • Limited documentation tests to essential behavior: framework selection, copying, navigation, preferences, demo callbacks, and social metadata. Removed visual and contrast checks; library coverage is unchanged.