Skip to content

Rename AudioContext to AudioContextProvider#33208

Closed
PoseidonEnergy wants to merge 1 commit intomrdoob:devfrom
PoseidonEnergy:rename-audiocontext-audiocontextprovider-1
Closed

Rename AudioContext to AudioContextProvider#33208
PoseidonEnergy wants to merge 1 commit intomrdoob:devfrom
PoseidonEnergy:rename-audiocontext-audiocontextprovider-1

Conversation

@PoseidonEnergy
Copy link
Copy Markdown
Contributor

Related issue: #33206

Description

Rename AudioContext to AudioContextProvider so JSDoc references the correct types in info hover tooltips. There is already an existing window.AudioContext type that trips IDEs up.

@github-actions
Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 359.97
85.53
359.98
85.53
+8 B
+5 B
WebGPU 632.13
175.39
632.14
175.4
+8 B
+5 B
WebGPU Nodes 630.25
175.1
630.26
175.11
+8 B
+5 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 492.17
120.11
492.17
120.11
+0 B
+0 B
WebGPU 704.56
190.19
704.56
190.19
+0 B
+0 B
WebGPU Nodes 653.78
177.6
653.78
177.6
+0 B
+0 B

@Mugen87
Copy link
Copy Markdown
Collaborator

Mugen87 commented Mar 18, 2026

Sorry, but I don't think the renaming is worth the breakage and migration effort. Better to fix the JSDoc instead.

@Mugen87 Mugen87 closed this Mar 18, 2026
@Mugen87 Mugen87 added this to the r184 milestone Mar 18, 2026
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