From e7529f8182295ed01fa3ada218ce05f0e7cd4de7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 10 Oct 2026 12:26:55 +0000 Subject: [PATCH] chore(deploy): Release --- .changeset/fix-stop-autoplay.md | 28 ---------------------------- CHANGELOG.md | 29 +++++++++++++++++++++++++++++ package.json | 2 +- 3 files changed, 30 insertions(+), 29 deletions(-) delete mode 100644 .changeset/fix-stop-autoplay.md diff --git a/.changeset/fix-stop-autoplay.md b/.changeset/fix-stop-autoplay.md deleted file mode 100644 index c70623d3..00000000 --- a/.changeset/fix-stop-autoplay.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -"@wbe/interpol": patch ---- - -Fix Timeline autoplay not being canceled by an explicit call made synchronously after `add()`. An explicit `stop()`, `play()` or `reverse()` now cancels the pending autoplay. - -Before: - -```ts -const tl = new Timeline() -tl.add({ /* ... */ }) -// ignored: the timeline was played anyway by the autoplay, -// and stayed registered in the ticker -tl.stop() -``` - -After: - -```ts -const tl = new Timeline() -tl.add({ /* ... */ }) -// cancels the pending autoplay: the timeline stays stopped -tl.stop() -``` - -Same for `reverse()`, which was switched back to forward by the autoplay and now stays reversed. - -To dispose an instance, `stop()` it and drop your reference: nothing else retains it. diff --git a/CHANGELOG.md b/CHANGELOG.md index 37e0eafa..ea9b5d5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # @wbe/interpol +## 0.32.2 + +### Patch Changes + +- 548492b: Fix Timeline autoplay not being canceled by an explicit call made synchronously after `add()`. An explicit `stop()`, `play()` or `reverse()` now cancels the pending autoplay. + + Before: + + ```ts + const tl = new Timeline() + tl.add({/* ... */}) + // ignored: the timeline was played anyway by the autoplay, + // and stayed registered in the ticker + tl.stop() + ``` + + After: + + ```ts + const tl = new Timeline() + tl.add({/* ... */}) + // cancels the pending autoplay: the timeline stays stopped + tl.stop() + ``` + + Same for `reverse()`, which was switched back to forward by the autoplay and now stays reversed. + + To dispose an instance, `stop()` it and drop your reference: nothing else retains it. + ## 0.32.1 ### Patch Changes diff --git a/package.json b/package.json index dc6651a8..5e65872f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@wbe/interpol", "description": "Interpolates values with a GSAP-like API ~ 3kB", - "version": "0.32.1", + "version": "0.32.2", "author": { "name": "Willy Brauner", "url": "https://willybrauner.com"