Skip to content

Releases: pbakaus/scroller

1.3.0 - Modernized for Current Browsers

16 Jul 19:16

Choose a tag to compare

🚀 Scroller v1.3.0 - Major Modernization Release

This release represents a comprehensive modernization of Scroller, bringing it up to current web standards while maintaining full backward compatibility for the public API.

🔧 Build System & Development Tools

  • Modern build pipeline with Vite and Rollup for better development experience
  • Comprehensive test suite with Jest testing framework covering all core functionality
  • Enhanced demos with improved examples and better documentation
  • Development documentation added with contribution guidelines
  • Updated package.json with modern dependencies and scripts

Legacy Code Removal & Modernization

  • Simplified requestAnimationFrame - Removed complex polyfills and vendor prefix detection (~70 lines of legacy code removed)
  • Modern CSS transforms - Eliminated browser engine detection, now uses standard transform and transformOrigin properties
  • Updated scroll APIs - Removed fallbacks for pageXOffset/pageYOffset as they're universally supported
  • Modern data attributes - Replaced element.attributes.getNamedItem() with modern dataset API
  • Standard wheel events - Replaced legacy mousewheel event with standard wheel event and proper deltaY handling
  • Cleaner event listeners - Removed unnecessary false parameters from addEventListener calls
  • Simplified Date.now() usage - Removed unnecessary fallback code

🏠 Repository & Documentation Updates

  • Updated repository references from github.com/zynga/scroller to github.com/pbakaus/scroller
  • Fixed demo links and build messages to reflect new repository location
  • Updated license headers across all source files
  • Improved build output with clearer console messages

📦 Technical Improvements

  • Reduced bundle size by removing 100+ lines of unnecessary polyfill code
  • Improved performance by eliminating function call overhead from wrapper functions
  • Enhanced code clarity using modern browser APIs directly
  • Better maintainability with simplified, standards-based implementations
  • Full ES module support with proper build pipeline

🧪 Testing & Quality

  • Complete test coverage for all core components (Scroller, EasyScroller, Animate)
  • Cross-browser testing setup for modern browsers
  • Automated testing with npm scripts
  • All existing functionality preserved - no breaking changes to public API

📊 Files Changed

  • 22 files modified across source, tests, demos, and documentation
  • Net reduction of ~127 lines despite adding comprehensive tests
  • Enhanced demos and examples for better developer experience

🔄 Migration Notes

No migration required! This release maintains full backward compatibility while modernizing the underlying implementation for better performance and maintainability in modern browsers.


Full Changelog: db551ce...v1.1.0