From 3f8259a9c71b617b719ef67d8d19726e3df7c1ea Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 20 Jun 2026 07:27:21 +0000 Subject: [PATCH] chore(release): version packages --- .changeset/swipe-event-source.md | 24 ------------------------ CHANGELOG.md | 25 +++++++++++++++++++++++++ package.json | 2 +- 3 files changed, 26 insertions(+), 25 deletions(-) delete mode 100644 .changeset/swipe-event-source.md diff --git a/.changeset/swipe-event-source.md b/.changeset/swipe-event-source.md deleted file mode 100644 index c3cdde3..0000000 --- a/.changeset/swipe-event-source.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@react-native-motion-kit/swipe-deck': minor ---- - -Add `source` to committed swipe events so apps can distinguish gesture commits from programmatic action commits. - -```tsx -ProfileDeck.useDeckEventListener('swipe', (event) => { - if (event.source === 'gesture') { - console.log('User swiped', event.direction); - return; - } - - console.log('Programmatic action swiped', event.direction); -}); -``` - -`event.source` is `'gesture'` when a pan release commits the swipe and `'programmatic'` when -`actions.swipeLeft()` or `actions.swipeRight()` commits it. `programmatic` does not mean button; map -it to a button only when that matches your app's UI. - -This is a TypeScript-visible event payload shape change: `source` is a required field on -`SwipeEvent`, so object literals, fixtures, or `useDeckEvent('swipe', initialValue)` values must -include it. diff --git a/CHANGELOG.md b/CHANGELOG.md index be1e4da..71dcbea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # @react-native-motion-kit/swipe-deck +## 1.3.0 + +### Minor Changes + +- [#13](https://github.com/react-native-motion-kit/react-native-swipe-deck/pull/13) [`335c5cf`](https://github.com/react-native-motion-kit/react-native-swipe-deck/commit/335c5cf0b8461e0538179b6c9c82e73e6c0c5ae4) Thanks [@saseungmin](https://github.com/saseungmin)! - Add `source` to committed swipe events so apps can distinguish gesture commits from programmatic action commits. + + ```tsx + ProfileDeck.useDeckEventListener("swipe", (event) => { + if (event.source === "gesture") { + console.log("User swiped", event.direction); + return; + } + + console.log("Programmatic action swiped", event.direction); + }); + ``` + + `event.source` is `'gesture'` when a pan release commits the swipe and `'programmatic'` when + `actions.swipeLeft()` or `actions.swipeRight()` commits it. `programmatic` does not mean button; map + it to a button only when that matches your app's UI. + + This is a TypeScript-visible event payload shape change: `source` is a required field on + `SwipeEvent`, so object literals, fixtures, or `useDeckEvent('swipe', initialValue)` values must + include it. + ## 1.2.0 ### Minor Changes diff --git a/package.json b/package.json index 3ed751f..eb00933 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-motion-kit/swipe-deck", - "version": "1.2.0", + "version": "1.3.0", "description": "High-performance Tinder-style swipe deck and swipe cards for React Native, powered by Reanimated and Gesture Handler.", "keywords": [ "android",