v4.0.0 - ES2018 refactor; fetch() & Promises
4.0.0 release notes
Breaking Changes
- π replaced
responseTypeoption toresponseBody. This effects loading JSON. See Upgrading to v4. - π Internet Explorer and Android 4 support dropped.
- π Removed RequireJS support and AMD export
New Features
- Use
fetchAPI to make requests .loadNextPage()returns the fetch request Promise- Response argument added to
load,append, anderrorevents. #845 - With
appendenabled, last page will be triggered if the loaded page appends 0 items. #840 - Added
fetchOptionsoption. Allows you to set request headers. #791, #801, #822, #905, #917 - Automated linting and style with ESLint
- Added headless browser testing Puppeteer
- Use ES2018 syntax and features