v4.0.0 - ES2018 refactor; fetch() & Promises
4.0.0 release notes
Breaking Changes
- π replaced
responseType
option 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
fetch
API to make requests .loadNextPage()
returns the fetch request Promise- Response argument added to
load
,append
, anderror
events. #845 - With
append
enabled, last page will be triggered if the loaded page appends 0 items. #840 - Added
fetchOptions
option. 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