Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
✅ Deploy Preview for vjs10-site ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
📦 Bundle Size Report
Total: 27.49 kB · +2.53 kB · +10.1% Entry BreakdownSubpath sizes are the additional bytes on top of the root entry point, measured by bundling root + subpath together and subtracting the root-only size.
|
| Entry | Base | PR | Diff | % | |
|---|---|---|---|---|---|
. |
1.97 kB | 2.77 kB | +820 B | +40.6% | 🔴 |
./dom |
2.61 kB | 2.60 kB | -16 B | -0.6% | 🔽 |
| total | 4.59 kB | 5.37 kB | +804 B | +17.1% |
@videojs/element
| Entry | Base | PR | Diff | % | |
|---|---|---|---|---|---|
. |
817 B | 817 B | 0 B | 0% | ✅ |
./context |
823 B | 823 B | 0 B | 0% | ✅ |
| total | 1.60 kB | 1.60 kB | 0 B | 0% |
@videojs/store
| Entry | Base | PR | Diff | % | |
|---|---|---|---|---|---|
. |
1.29 kB | 1.29 kB | 0 B | 0% | ✅ |
./html |
468 B | 468 B | 0 B | 0% | ✅ |
./react |
199 B | 199 B | 0 B | 0% | ✅ |
| total | 1.94 kB | 1.94 kB | 0 B | 0% |
@videojs/utils
| Entry | Base | PR | Diff | % | |
|---|---|---|---|---|---|
./array |
104 B | 104 B | 0 B | 0% | ✅ |
./dom |
553 B | 684 B | +131 B | +23.7% | 🔴 |
./events |
227 B | 227 B | 0 B | 0% | ✅ |
./function |
197 B | 197 B | 0 B | 0% | ✅ |
./object |
119 B | 119 B | 0 B | 0% | ✅ |
./predicate |
265 B | 265 B | 0 B | 0% | ✅ |
./time |
465 B | 478 B | +13 B | +2.8% | 🔺 |
./number |
— | 158 B | — | 🆕 | |
| total | 1.88 kB | 2.18 kB | +302 B | +15.6% |
ℹ️ How to interpret
Sizes are minified + brotli, measured with esbuild.
Package totals are computed as root size + marginal subpath costs.
Subpath marginal cost = (root + subpath bundled together) − root alone.
| Icon | Meaning |
|---|---|
| ✅ | No change |
| 🔺 | Increased ≤ 10% |
| 🔴 | Increased > 10% |
| 🔽 | Decreased |
| 🆕 | New (no baseline) |
Run pnpm size locally to check current sizes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ref: #275, #267, #269
Summary
Add the runtime-agnostic core layer for the slider component system —
SliderCore,TimeSliderCore, andVolumeSliderCore— plus supporting utilities. This is the foundation that both React and HTML slider components will build on.Changes
@videojs/utils: AddclampandroundToStep(/numbersubpath),rafThrottle,isRTL, and fixformatTimeAsPhrase(0)returning empty string@videojs/core: AddSliderCore(generic slider state + ARIA),TimeSliderCore(seek slider with buffer tracking),VolumeSliderCore(volume 0-1 → 0-100 mapping, muted fill)SliderDataAttrs,TimeSliderDataAttrs,SliderCSSVarsfor data attributes and CSS custom propertiesImplementation details
TimeSliderCore,VolumeSliderCore) use canonical media state types directly (MediaTimeState & MediaBufferState,MediaVolumeState) withPick<>on state interfaces — no wrapper typesgetTimeState(media, interaction)/getVolumeState(media, interaction)rather than overriding basegetState(incompatible signatures)interactive=dragging || pointing || focusedbufferedEndcomputed internally frommedia.bufferedrangesTesting