Skip to content

[renovate-bot] - Update dependency use-sound to v5 #341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 18, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
use-sound 4.0.4 -> 5.0.0 age adoption passing confidence

Release Notes

joshwcomeau/use-sound (use-sound)

v5.0.0

Compare Source

Fix bug with sprites and playbackRate

When using sprites, the library would crash when either the volume or playbackRate changed. In development, it would also crash during hot reload.

I spent about half an hour digging into this, and wasn’t really able to find a proper fix. The band-aid I came up with is to ignore changes to playbackRate when sprites are used. This means that if you have a dynamic playbackRate in your application, you can no longer use sprites, and will need a separate useSound instance for each sound effect.

The problematic line in question is this: https://github.com/goldfire/howler.js/blob/master/src/howler.core.js#L1564. From what I can tell, sound._sprite resolves to _default instead of the actual names of our sprites, which causes an exception. If anyone feels like digging into this and comes up with a fix, please let me know by email at [email protected].


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@renovate renovate bot force-pushed the renovate/use-sound-5.x branch from ef9a512 to 8abf751 Compare February 18, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants