refactor(packages)!: MediaComponent => MediaExtension - #2601
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@videojs/cdn
@videojs/cloudflare-video
@videojs/core
@videojs/dash-video
@videojs/element
@videojs/google-cast
@videojs/hlsjs-video
@videojs/html
@videojs/media
@videojs/mux-audio
@videojs/mux-data
@videojs/mux-video
@videojs/native-hls-video
@videojs/react
@videojs/shaka-video
@videojs/spf
@videojs/spotify-audio
@videojs/store
@videojs/tiktok-video
@videojs/twitch-video
@videojs/utils
@videojs/vimeo-video
@videojs/wistia-video
@videojs/youtube-video
commit: |
📦 Bundle Size Report🎨 @videojs/html — 6 small size changes
Presets (7)
Media (18)
Players (5)
Skins (29)
UI Components (62)
⚛️ @videojs/react — 5 small size changes
Presets (7)
Media (22)
Extensions (2)
Players (5)
Skins (18)
UI Components (39)
🧩 @videojs/core — no changesEntries (76)
🏷️ @videojs/element — no changesEntries (2)
📦 @videojs/store — no changesEntries (3)
🔧 @videojs/utils — no changesEntries (13)
📦 @videojs/cdn — no changes📦 @videojs/cloudflare-video — no changes📦 @videojs/dash-video — 1 small size change
📦 @videojs/google-cast — no changes📦 @videojs/hlsjs-video — 1 small size change
📦 @videojs/media — no changesEntries (3)
📦 @videojs/mux — no changes📦 @videojs/mux-audio — 1 small size change
Entries (2)
📦 @videojs/mux-data — no changes📦 @videojs/mux-video — no changesEntries (2)
📦 @videojs/native-hls-video — 1 small size change
📦 @videojs/shaka-video — no changes📦 @videojs/spf — 2 small size changes
Entries (7)
📦 @videojs/spotify-audio — 1 small size change
📦 @videojs/tiktok-video — 1 small size change
📦 @videojs/twitch-video — no changes📦 @videojs/vimeo-video — 1 small size change
📦 @videojs/wistia-video — 1 small size change
Entries (2)
📦 @videojs/youtube-video — no changesℹ️ How to interpretEach entry is independently bundled, minified, and brotli-compressed. Initial size includes its static import graph; lazy dynamic chunks are reported separately. Entries are not additive because their dependency graphs overlap. Preset rows represent realistic combined bundles. Changes of 300 B or less across initial, lazy, and total size are collapsed, not discarded. Run |
0dbc5c9 to
42139eb
Compare
✅ Deploy Preview for vjs10-site ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
db7e6b0 to
c71b84c
Compare
c71b84c to
75ccb55
Compare
75ccb55 to
862d445
Compare
862d445 to
eaf3163
Compare
eaf3163 to
aa49d5f
Compare
aa49d5f to
a640e92
Compare
|
E2E triage: real regression. The external Next registry consumer fails before Playwright runs because |
a640e92 to
bbc6ec3
Compare
bbc6ec3 to
83784b1
Compare
83784b1 to
e959a16
Compare
e959a16 to
57b51b4
Compare
…aFull to CommonMedia Aligns the media-host vocabulary with the extension packages: - `@videojs/media`: `MediaComponent` -> `MediaExtension`, `MediaComponentConstructor` -> `MediaExtensionConstructor`, `MediaComponents` -> `MediaExtensions`, `addMediaComponent` -> `addMediaExtension`, `getMediaComponents` -> `getMediaExtensions`, `MediaFull` -> `CommonMedia`, `MediaFullEvents` -> `CommonMediaEvents` - `@videojs/html`: `MediaComponentElement` -> `MediaExtensionElement` - `@videojs/react`: `useMediaComponent` -> `useMediaExtension` The reference page moves to `use-media-extension` with a redirect from the old slug. BREAKING CHANGE: the exports listed above are renamed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…section The MediaExtension rename swept a fragment link whose heading still reads "Techs become media components", which is about media elements rather than extensions. Restore the anchor so the link resolves. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
57b51b4 to
19f4a9a
Compare
Summary
Stacked on #2600. Mechanical rename that aligns the media-host vocabulary with the extension packages.
@videojs/mediaMediaComponent,MediaComponentConstructor,MediaComponentsMediaExtension,MediaExtensionConstructor,MediaExtensions@videojs/mediaaddMediaComponent,getMediaComponentsaddMediaExtension,getMediaExtensions@videojs/mediaMediaFull,MediaFullEventsCommonMedia,CommonMediaEvents@videojs/htmlMediaComponentElementMediaExtensionElement@videojs/reactuseMediaComponentuseMediaExtensionThe
useMediaExtensionreference page replacesuse-media-component, with a Netlify redirect from the old slug.Validation
pnpm build:packages,pnpm typecheck,pnpm lint,pnpm check:workspace@videojs/media,@videojs/mux-data,@videojs/google-cast,@videojs/html,@videojs/react, and site test suites🤖 Generated with Claude Code
Note
Medium Risk
Wide breaking API renames across
@videojs/media, HTML, and React require consumer updates; behavior should be unchanged if callers migrate symbols.Overview
Breaking rename that aligns media-host vocabulary with the extension packages: plug-ins that register on a media host are now called media extensions instead of media components.
In
@videojs/media,MediaComponent/MediaComponentsbecomeMediaExtension/MediaExtensions, withaddMediaExtensionandgetMediaExtensionsreplacing the*Componenthelpers (registry logic is unchanged;media-components.tsis nowmedia-extensions.ts). Composed media types are renamed fromMediaFull/MediaFullEventstoCommonMedia/CommonMediaEvents.@videojs/htmlrenames the custom-element base fromMediaComponentElementtoMediaExtensionElement; Google Cast and Mux Data elements extend it and calladdMediaExtension.@videojs/reactexportsuseMediaExtensioninstead ofuseMediaComponent, and Cast/Mux wrappers use the new hook.Tests and integration packages (
google-cast,hlsjs-video) follow the new names. Docs use theuse-media-extensionreference slug, sidebar entry, and a Netlify 301 fromuse-media-component.Reviewed by Cursor Bugbot for commit 19f4a9a. Bugbot is set up for automated code reviews on this repo. Configure here.