Releases: hyperaudio/hyperaudio-lite
Version 2.4.2
Version 2.4.1
What's Changed
Full Changelog: v2.4.0...v2.4.1
Version 2.4.0
v2.4.0 — Native Smooth Autoscroll
🚀 Removed
- velocity.js dependency. Hyperaudio Lite no longer requires
<script src=".../velocity.js">
in your HTML. You can safely delete that line from your project.
✨ Changed
- Autoscroll now uses native browser APIs (
requestAnimationFrame+scrollTop) with
easeInOutCubiceasing over 800ms — slower and more fluid than the browser's built-in
scroll-behavior: smooth(~300ms, vendor-controlled). - Active paragraph pins to the top of the transcript viewport as playback advances, instead
of scrolling the nearest-edge. - Smoother handling of rapid paragraph changes — in-flight scroll animations are cancelled
when a new one starts, so they no longer fight each other on fast speech.
🐛 Fixed
- Scroll-position math now uses
getBoundingClientRect, so it works regardless of where the
transcript sits on the page (a latent bug where the wrong element was treated as the scroll
container).
🧹 Cleanup
- Removed leftover Velocity wiring (
scroller,scrollerContainer, thesetupAutoScroll
branch) and several abandoned drafts ofscrollToParagraph.
📦 Migration
If you're upgrading from v2.3.x, the only thing you need to do is remove the velocity.js
<script> tag from your HTML:
<!-- Delete this line -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/velocity/1.5.0/velocity.js"></script>No other API changes. autoscroll: true continues to work exactly as before.
🌐 Browser support
Now works in more browsers than the previous scrollTo({behavior:'smooth'})-based fallback would
have — requestAnimationFrame + scrollTop is supported back to IE10. Safari versions before 15.4
(March 2022) now also get smooth scrolling, which they didn't before.
Pre-existing issues
GitHub Dependabot reports several vulnerabilities in transitive devDependencies (jest and
friends). These are test-time only and not shipped to users of the library. A dependency-bump
release will address them separately.
Full Changelog: v2.3.2...v2.4.0
Version 2.3.2
What's Changed
- Bump micromatch from 4.0.7 to 4.0.8 by @dependabot in #206
- 207 fix autoscroll by @maboa in #208
Full Changelog: v2.3.1...v2.3.2
Version 2.3.1
Version 2.3.0
Version 2.2.4
Version 2.2.3
What's Changed
- Bump @babel/traverse from 7.18.6 to 7.24.8 by @dependabot in #196
- 199 selection range fix by @maboa in #200
Full Changelog: v2.2.2...v2.2.3
Version 2.2.2
What's Changed
Full Changelog: v2.2.1...v2.2.2
Version 2.2.1
What's Changed
- Bump braces from 3.0.2 to 3.0.3 by @dependabot in #188
- Bump ws from 8.14.2 to 8.17.1 by @dependabot in #189
Full Changelog: v2.2.0...v2.2.1