Releases
v1.2.0
AnimBase v1.2.0 – Strict Mode, Extensibility, Performance & CI Upgrade
Latest
Compare
Sorry, something went wrong.
No results found
✨ New Features
Added Strict Mode via data-anim-strict="true" to throw errors on invalid JSON/easing/color during development.
Added Extensible Handler API :
registerKeyHandler(key, handlerTypeOrFn)
registerHandlerType(type, handlerFn)
Added new Custom Handler demo in docs (live counter example).
🚀 Performance Improvements
Skip update when frame value doesn’t change.
Cache Object.entries for style config to reduce per-frame work.
Early return when no config exists.
🐛 Bug Fixes
Fixed hex color regex to properly validate ([0-9a-fA-F]).
Fixed registerKeyHandler so it actually works and supports custom handler types.
Added warn-once for unknown handler types and invalid easing/color in non-strict mode.
✅ Test Coverage
Coverage now focused on src/** only (no dist/docs noise).
Added extensive tests for:
strict mode (JSON, easing, color)
handler mapping & custom handlers
autoinit behaviors (controller mapping, custom events, autostart, hooks, pause/resume/seek/stop)
parsing edge cases & hex colors
Coverage significantly improved (>95% overall in CI).
🛠 CI
CI upgraded:
Node matrix (18 & 20)
concurrency cancel
coverage artifact upload
Codecov integration
workflow dispatch
Added Release workflow : publish to npm only when tagging vX.Y.Z.
🏷️ Badges
Added CI badge.
Added Codecov badge.
You can’t perform that action at this time.