Skip to content

Commit

Permalink
📝 [Report] Add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Jan 27, 2024
1 parent e80417f commit a975680
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/blue-jank-crime.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"earwurm": minor
---

Remove timed auto-suspend in favour of exposing `.suspend() / .resume()` methods on `Earuwrm`.
5 changes: 5 additions & 0 deletions .changeset/thick-oranges-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"earwurm": minor
---

New `play` event available on `Earwurm` instance.
11 changes: 11 additions & 0 deletions pkg/earwurm/MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Earwurm Migration Guide

## 0.9.0

- Removed the “timed auto-suspend” behaviour.
- With the new `play` event, it is now easy for consumers to specify this behaviour themselves.
- See the `Examples` documentation for some insight.
- PR for code change: <https://github.com/beefchimi/earwurm/pull/78>
- While there is no more “timed auto-suspend”, the `Earwurm` will attempt to optimistically `suspend` whenever:
- All `Stacks` have been removed from the `Earwurm`. instance.
- `.stop()` has been called on the `Earwurn` instance.
- Will now auto-resume a `suspended` state when `.play()` is called on a `Sound`.

## 0.7.0

- Replaced the `fadeMs?: number` option for `Earwurm`, `Stack`, and `Sound` with a simpler `transitions?: boolean` option.
Expand Down

0 comments on commit a975680

Please sign in to comment.