Skip to content

v4.0.0 - ES2018 refactor; fetch() & Promises

Compare
Choose a tag to compare
@desandro desandro released this 01 Jan 22:30
· 3 commits to master since this release

4.0.0 release notes

Breaking Changes

  • πŸ’” replaced responseType option to responseBody. 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, and error 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