Skip to content

refactor!: remove deprecated useAudioController hook#3016

Merged
oliverlaz merged 2 commits intomasterfrom
chore/remove-use-audio-controller
Mar 17, 2026
Merged

refactor!: remove deprecated useAudioController hook#3016
oliverlaz merged 2 commits intomasterfrom
chore/remove-use-audio-controller

Conversation

@oliverlaz
Copy link
Member

@oliverlaz oliverlaz commented Mar 17, 2026

🎯 Goal

Remove the deprecated useAudioController hook from the public API and eliminate the remaining source-level dependency on its file.

BREAKING CHANGE: useAudioController has been removed from the public API. Migrate custom audio playback code to useAudioPlayer.

🛠 Implementation details

  • delete src/components/Attachment/hooks/useAudioController.ts
  • remove the public export from src/components/Attachment/index.ts
  • decouple WaveProgressBar from the deleted hook file by giving it its own UI-level seek callback type
  • keep the current audio playback components compatible with audioPlayer.seek
  • validated with yarn types

🎨 UI Changes

None.

@github-actions
Copy link

Size Change: -987 B (-0.23%)

Total Size: 427 kB

Filename Size Change
./dist/cjs/index.js 228 kB -987 B (-0.43%)
ℹ️ View Unchanged
Filename Size
./dist/audioProcessing-BbOs2wMd.js 1.32 kB
./dist/Channel-BiyUJZdb.js 85.5 kB
./dist/cjs/emojis.js 2.95 kB
./dist/cjs/mp3-encoder.js 1.27 kB
./dist/css/index.css 44.2 kB
./dist/css/v2/emoji-mart.css 1.84 kB
./dist/css/v2/emoji-replacement.css 300 B
./dist/css/v2/index.css 39.4 kB
./dist/css/v2/index.layout.css 22.8 kB

compressed-size-action

@oliverlaz oliverlaz merged commit 35f8a5d into master Mar 17, 2026
4 of 5 checks passed
@oliverlaz oliverlaz deleted the chore/remove-use-audio-controller branch March 17, 2026 11:11
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.

2 participants