Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump vanilla-lazyload from 15.2.0 to 17.0.1 #136

Merged

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps vanilla-lazyload from 15.2.0 to 17.0.1.

Release notes

Sourced from vanilla-lazyload's releases.

Version 17.0

17.0.1

  • Bug fix: callback_exit() was not being called on non-image elements (#468).

17.0.0

  • The elements_selector option now defaults to .lazy (was img)
  • The cancel_on_exit option now defaults to true (was false)

See https://github.com/verlok/vanilla-lazyload/blob/HEAD/UPGRADE.md to understand if you are impacted by any breaking change and how to upgrade from previous versions.

Version 16.1

16.1.0

Improved speed, cleaning DOM, better working destroy, and also fixed 2 bugs.

  • Cleaning up data attributes from the DOM when finished using them (mainly when elements have finished loading)
  • Improved destroy method, which now also removes lazyload's additions to the DOM elements
  • Video elements are now only listening to the loadeddata event, no longer to load
  • Removed constants containing strings. I thought it would produced shorter minified code, but discovered that terser expands them to strings.
  • Bugfix: when lazily loading videos, the error _poster_ is undefined was thrown
  • Bugfix: when selecting native lazy loading, the loading class was added without knowing whether or not the loading had started

Version 16.0

16.0.0

Functional changes:

  • Removed call to deprecated callback_reveal
  • Removed deprecated instance load() method in favor of the static LazyLoad.load() method
  • Replaced auto_unobserve with unobserve_completed, still defaulting to true
  • Introduced a new unobserve_entered option (useful to execute lazy functions once)
  • Created a demo called lazy_functions.html to show how to execute functions as elements enter the viewport
  • Wrote a new recipe to facilitate the lazy execution of scripts/functions
  • Renamed instance method resetElementStatus() to the static LazyLoad.resetStatus()
  • Removed the load_delay option since there's no more use for it
  • Removed the load_delay related demos

See https://github.com/verlok/vanilla-lazyload/blob/HEAD/UPGRADE.md to understand if you are impacted by any breaking change and how to upgrade from previous versions.

Internal changes:

  • Simplified management of the cancel_on_exit with less increase/decrease of the toLoadCount property
  • Refactored counters functions in a new lazyload.counters file

Love this project? 😍 Buy me a coffee!

Changelog

Sourced from vanilla-lazyload's changelog.

17.0.1

  • Bug fix: callback_exit() was not being called on non-image elements (#468).

17.0.0

  • The elements_selector option now defaults to .lazy (was img)
  • The cancel_on_exit option now defaults to true (was false)

See https://github.com/verlok/vanilla-lazyload/blob/master/UPGRADE.md to understand if you are impacted by any breaking change and how to upgrade from previous versions.


Love this project? 😍 Buy me a coffee!


Version 16

16.1.0

Improved speed, cleaning DOM, better working destroy, and also fixed 2 bugs.

  • Cleaning up data attributes from the DOM when finished using them (mainly when elements have finished loading)
  • Improved destroy method, which now also removes lazyload's additions to the DOM elements
  • Video elements are now only listening to the loadeddata event, no longer to load
  • Removed constants containing strings. I thought it would produced shorter minified code, but discovered that terser expands them to strings.
  • Bugfix: when lazily loading videos, the error _poster_ is undefined was thrown
  • Bugfix: when selecting native lazy loading, the loading class was added without knowing whether or not the loading had started

16.0.0

Functional changes:

  • Removed call to deprecated callback_reveal
  • Removed deprecated instance load() method in favor of the static LazyLoad.load() method
  • Replaced auto_unobserve with unobserve_completed, still defaulting to true
  • Introduced a new unobserve_entered option (useful to execute lazy functions once)
  • Created a demo called lazy_functions.html to show how to execute functions as elements enter the viewport
  • Wrote a new recipe to facilitate the lazy execution of scripts/functions
  • Renamed instance method resetElementStatus() to the static LazyLoad.resetStatus()
  • Removed the load_delay option since there's no more use for it
  • Removed the load_delay related demos

See https://github.com/verlok/vanilla-lazyload/blob/master/UPGRADE.md to understand if you are impacted by any breaking change and how to upgrade from previous versions.

Internal changes:

  • Simplified management of the cancel_on_exit with less increase/decrease of the toLoadCount property
  • Refactored counters functions in a new lazyload.counters file
Upgrade guide

Sourced from vanilla-lazyload's upgrade guide.

🗺 HOW TO UPDATE FROM PREVIOUS VERSIONS

Version 16 to 17

If you were NOT setting the elements_selector option

You should add the lazy class to your lazy images.

<!-- FROM -->
<img data-src="lazyImage.jpg" alt="Lazy image" />
<!-- TO -->
<img class="lazy" data-src="lazyImage.jpg" alt="Lazy image" />

ALTERNATIVELY, you could set the elements_selector option to "img"

const myLazyLoad = new LazyLoad({
  /* other options here */
  elements_selector: "img" // ADD THIS OPTION
});

If you were using cancel_on_exit: true

// From
const myLazyLoad = new LazyLoad({
  /* other options here */
  cancel_on_exit: true // REMOVE THIS OPTION
});

You should remove cancel_on_exit: true from the settings.


Love this project? 😍 Buy me a coffee!


Version 15 to 16

If you were using the callback_reveal callback

You should replace callback_reveal with callback_loading in your JS code.

If you were using the instance load(element) method

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in the .dependabot/config.yml file in this repo:

  • Update frequency
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file. label Jun 26, 2020
@mestradanu mestradanu merged commit aded6f9 into develop Jun 29, 2020
@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/develop/vanilla-lazyload-17.0.1 branch June 29, 2020 19:00
@mestradanu mestradanu mentioned this pull request Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant