Socket
Socket
Sign inDemoInstall

swup

Package Overview
Dependencies
Maintainers
3
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swup - npm Package Versions

13
15

4.4.0

Diff

Changelog

Source

[4.4.0] - 2023-09-19

  • Enable experimental View Transition support
  • Extend test coverage to all major browsers
  • Add request timeout option
gmrchk
published 4.3.4 •

Changelog

Source

[4.3.4] - 2023-08-24

  • Add unique id to visit object
gmrchk
published 4.3.3 •

Changelog

Source

[4.3.3] - 2023-08-21

  • Restore history index on reload
gmrchk
published 4.3.2 •

Changelog

Source

[4.3.2] - 2023-08-20

  • Update history entry on links to the current page
gmrchk
published 4.3.1 •

Changelog

Source

[4.3.1] - 2023-08-17

  • Improve scroll restoration on history visits
gmrchk
published 4.3.0 •

Changelog

Source

[4.3.0] - 2023-08-16

  • Persist elements across page loads using data-swup-persist
  • Add visit.cache key to control cache behavior
  • Enforce parameter and return types of hook handlers
gmrchk
published 4.2.0 •

Changelog

Source

[4.2.0] - 2023-08-09

  • Add option linkToSelf to control behavior for links to the current page
  • Don't create history records for repeated visits to the current page
  • Allow updating visit.to.hash and visit.scroll.target separately
gmrchk
published 4.1.0 •

Changelog

Source

[4.1.0] - 2023-07-29

  • Prevent unintentional cache mutation
  • Use recommended order for package.json exports
  • Infer element type from delegate selector
gmrchk
published 4.0.1 •

Changelog

Source

[4.0.1] - 2023-07-28

  • Export additional types to allow augmentation from plugins
gmrchk
published 4.0.0 •

Changelog

Source

[4.0.0] - 2023-07-26

See the release notes and upgrade guide for details.

Features

  • Built-in scroll support
  • New hook system for customizing the page load lifecycle
  • Context object for controlling the transition process
  • Animation scope: add animation classes to html element or to containers
  • Easier customization of official themes
  • Allow pruning cache entries

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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc