v4.2 reworks the React and Vue packages around a single declarative <Foresight> component. Registering a list of elements no longer means wiring up useForesights and juggling callback refs. You wrap your items in <Foresight> and you're done. Under the hood the core also got a round of dedup and cleanup: duplicated settings/registration/logging paths are gone, and data-attribute mirroring is now a single global manager setting instead of a per-element concern.
js.foresight v4.2.0
- New:
dataAttributeMirroringglobal setting. Mirroring registration data to elementdata-*attributes is now controlled once on the manager instead of per element (#133). - Changed: active/parked element counts are now derived from state rather than tracked separately, removing a class of drift bugs (#134).
- Fix: changing the touch strategy to its current value no longer triggers a no-op settings change (#125).
- Fix: the desktop handler now respects
positionHistorySizeon init (#124). - Performance: only active elements are observed on handler connect; parked elements stay out of the observer until reactivated (#126).
- Internal: removed duplicated settings/registration/logging code paths (#129) and dropped the unused
HasListenersFunctiontype export (#127).
js.foresight-devtools v2.2.0
- Updated for the core changes above; element data-attribute display follows the new global
dataAttributeMirroringsetting (#133).
@foresightjs/react v0.3.0
- New:
<Foresight>component replacesuseForesightsfor registering dynamic lists of elements declaratively (#131). - Fix:
useForesightnow handles multiple refs correctly (#135).
@foresightjs/vue v0.3.0
- New:
<Foresight>component replacesuseForesightsfor registering dynamic lists of elements declaratively (#132). - Fix:
useForesightnow handles multiple refs correctly (#135).
Full Changelog: V4.1.0...V4.2.0