Releases: pbakaus/scroller
Releases · pbakaus/scroller
1.3.0 - Modernized for Current Browsers
🚀 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
transformandtransformOriginproperties - Updated scroll APIs - Removed fallbacks for
pageXOffset/pageYOffsetas they're universally supported - Modern data attributes - Replaced
element.attributes.getNamedItem()with moderndatasetAPI - Standard wheel events - Replaced legacy
mousewheelevent with standardwheelevent and properdeltaYhandling - Cleaner event listeners - Removed unnecessary
falseparameters fromaddEventListenercalls - Simplified Date.now() usage - Removed unnecessary fallback code
🏠 Repository & Documentation Updates
- Updated repository references from
github.com/zynga/scrollertocf-workers-proxy-9e9.pages.dev/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