Skip to content

4.0.0

Compare
Choose a tag to compare
@daun daun released this 26 Jul 08:37
· 556 commits to master since this release
c751b06

See the release notes and upgrade guide for details.

Features

Breaking changes

  • Hooks replace events: swup.hooks.on()
  • Use the visit argument in hooks instead of swup.transition
  • Container selectors now only match one single element per selector
  • Custom animation attribute renamed to data-swup-animation
  • Swup no longer adds data-swup attributes to containers
  • Navigation method renamed: swup.navigate()
  • Simplified cache API: cache.set()
  • Support for custom payload formats was dropped