Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-gestures

Package Overview
Dependencies
Maintainers
0
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-gestures - npm Package Versions

2345

5.1.3

Diff

Changelog

Source

5.1.1, 5.1.2, 5.1.3

  • Internal type fixes
rezi99
published 5.1.2 •

rezi99
published 5.1.1 •

Changelog

Source

5.1.1, 5.1.2, 5.1.3

  • Internal type fixes
rezi99
published 5.1.0 •

Changelog

Source

5.1.0

  • Works only with svelte 5
  • Adds plugin support. First plugin provided in the library is plugin-highlight which provides visual gesture feedback to a user.
    • Plugins can be used even in composed gestures

BREAKING CHANGES

  • use action api now uses $effect to handle parameters' update rather than old () => {destroy:()=>void, update:()=>void}
    • parameters for gestures need to be passed in form of function wrapping parameters object instead of plain object as before. This is needed for possible updates of parameters within the internal $effect when they are passed in form of reactive $state.
  • each basic composable gesture now has its Composition version to be used in composed gesture. E.g.: pan has panComposition, swipe has swipeComposition etc.

OTHER CHANGES

  • there is no need for global d.ts file to define template attributes of svelte gestures. The types are now in svelte 5 and svelte-gestures 5.1.0 baked into the library code itself.
  • gestures has now suffix svelte eg.: pan.svelte.ts. This should not affect your imports directly from svelte-gestures package as they are served thru index.ts barrel reexports.
rezi99
published 5.1.0-beta.4 •

rezi99
published 5.1.0-beta.3 •

rezi99
published 5.1.0-beta.2 •

rezi99
published 5.1.0-beta.1 •

rezi99
published 5.0.7 •

Changelog

Source

5.0.7

  • updated README and repl links to fit new urls with /playground/
rezi99
published 5.0.6 •

Changelog

Source

5.0.6

  • pointerType added to all gestures' events
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