Replies: 3 comments 1 reply
|
Amazing, great work! 👏 |
0 replies
|
dope work, homie! |
1 reply
|
Great work! Wish every repo had such detailed release information 👏 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
👋
The last release was a massive change in direction and mostly involved getting the code base up to scratch with our new tooling. In the last week we've gone deep in every inch of the library to find anywhere that may cause DX pain, and we've worked hard to bring React 18 and Next.js 13 support.
This is jam packed - enjoy!
Media State/Events (BREAKING CHANGE)
Generic media provider API has been lifted up to the
<vds-media>element or<Media>component in React.OLD
NEW
WHY?
play.Providers such as
<vds-hls-video>now only contain provider-specific API. This includes importinghls.js, configuring thehls.jsinstance, and listening to HLS events (e.g.,level-loaded).Media View (BREAKING CHANGE)
A new attr/prop called
view(previously calledviewType) is now required on the<vds-media>element to render correctly. This will be an import property when we get to skins because it'll essentially hint what type of UI to display (audio,audio-live,video,video-live,video-live:dvr).React 18 + Next.js 13 (BREAKING CHANGE)
The React integrations were super early in the last release. This time we tested it with React 18 and Next.js 13 to get everything working smoothly.
undefined. This is now fixed.<MediaProvider>component.useMediaProviderElementto retrieve the current provider. Handy when working withhls.js.HLS Provider (BREAKING CHANGE)
The
<vds-hls-video>element or<HLSVideo>component had some API cleaning up including:hlsLibraryprop is nowlibrary.hlsConfigprop is nowconfig.We removed the
hls-prefix from all events. Some examples:hls-instanceis nowinstanceoronInstancein React.hls-lib-load-startis nowlib-load-startoronLibLoadStartin React.hls-media-attachingis nowmedia-attachingoronMediaAttachingin React.hls-level-loadedis nowlevel-loadedoronLevelLoadedin React.There was also a bug with
hls.jsevents not being attached correctly if called before the component had been attached. That's fixed now.Media Request Event Types (BREAKING CHANGE)
The
Mediaprefix was added to all media request event types:Little Things (BREAKING CHANGE)
view-typeattr orviewTypemedia state is simplyviewmedia-typeattr ormediaTypemedia state is simplymediaios-fullscreenattribute is nowios-controlsstartLoadingMediamethod is now on<vds-media>and is calledstartLoadingProvider Type Checks (NEW)
There are new provider type check utilities that compliment the new
useMediaProviderElementReact hook (refer to components docs).Fixes
ios-controlsis correctly applied now to help avoid double controls.define/*exports were not correctly set inpackage.jsonso they would go no where.<audio>or<video>element throwing (Error: [vds]: expected <audio> or <video> in default slot. Received: <DIV>. #674 and Cannot Find Module /react-dom/server #717)vds-poster) was not provided.<audio>or<video>element on connect.Next Steps
<vds-toggle-button>and<vds-slider>base components. Few people made me aware that they liked having these foundational building blocks.After all that we're going to continue the 1.0 project board and reach feature parity, and after that it's skins :) We're getting there!!
Until next time friends 🍎
All reactions