Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions .github/release-please/release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"tag-separator": "@",
"include-component-in-tag": true,
"include-v-in-tag": false,
"release-as": "10.0.0-rc.1",
"plugins": [
{
"type": "node-workspace",
Expand Down Expand Up @@ -31,67 +32,67 @@
"packages/cli": {
"component": "@videojs/cli",
"prerelease": true,
"prerelease-type": "beta",
"prerelease-type": "rc",
"versioning": "prerelease"
},
"packages/core": {
"component": "@videojs/core",
"prerelease": true,
"prerelease-type": "beta",
"prerelease-type": "rc",
"versioning": "prerelease"
},
"packages/element": {
"component": "@videojs/element",
"prerelease": true,
"prerelease-type": "beta",
"prerelease-type": "rc",
"versioning": "prerelease"
},
"packages/html": {
"component": "@videojs/html",
"prerelease": true,
"prerelease-type": "beta",
"prerelease-type": "rc",
"versioning": "prerelease"
},
"packages/media": {
"component": "@videojs/media",
"prerelease": true,
"prerelease-type": "beta",
"prerelease-type": "rc",
"versioning": "prerelease"
},
"packages/icons": {
"component": "@videojs/icons",
"prerelease": true,
"prerelease-type": "beta",
"prerelease-type": "rc",
"versioning": "prerelease"
},
"packages/react": {
"component": "@videojs/react",
"prerelease": true,
"prerelease-type": "beta",
"prerelease-type": "rc",
"versioning": "prerelease"
},
"packages/skins": {
"component": "@videojs/skins",
"prerelease": true,
"prerelease-type": "beta",
"prerelease-type": "rc",
"versioning": "prerelease"
},
"packages/spf": {
"component": "@videojs/spf",
"prerelease": true,
"prerelease-type": "beta",
"prerelease-type": "rc",
"versioning": "prerelease"
},
"packages/store": {
"component": "@videojs/store",
"prerelease": true,
"prerelease-type": "beta",
"prerelease-type": "rc",
"versioning": "prerelease"
},
"packages/utils": {
"component": "@videojs/utils",
"prerelease": true,
"prerelease-type": "beta",
"prerelease-type": "rc",
"versioning": "prerelease"
}
}
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
release:
runs-on: ubuntu-latest
environment: production
outputs:
released: ${{ steps.release.outputs.releases_created }}
version: ${{ steps.release.outputs['packages/html--version'] }}
permissions:
contents: write
pull-requests: write
Expand Down Expand Up @@ -61,7 +64,8 @@ jobs:

- name: Verify release checkout
if: ${{ steps.release.outputs.releases_created == 'true' }}
run: node -e "process.exit(require('./packages/html/package.json').version === process.env.VERSION ? 0 : 1)"
run: |
node -e "process.exit(require('./packages/html/package.json').version === process.env.VERSION ? 0 : 1)"
env:
VERSION: ${{ steps.release.outputs['packages/html--version'] }}

Expand Down Expand Up @@ -138,3 +142,14 @@ jobs:
- name: Update site/v10 branch
if: ${{ steps.release.outputs.releases_created == 'true' }}
run: git push origin HEAD:refs/heads/site/v10 --force

# `pnpm publish` above tags each release `latest`; keep `next` on the same
# version so both install channels resolve to the newest release.
dist-tag:
needs: release
if: ${{ needs.release.outputs.released == 'true' }}
uses: ./.github/workflows/npm-dist-tag.yml
with:
version: ${{ needs.release.outputs.version }}
tag: next
secrets: inherit
59 changes: 59 additions & 0 deletions .github/workflows/npm-dist-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: npm dist-tag

# Moves one npm dist-tag onto an already published version of every public
# workspace package. `pnpm publish` in cd.yml only sets `latest`, so this keeps
# `next` in step with it after each release and gives maintainers a way to
# repoint a tag by hand (the `next` tag sat on 10.0.0-alpha.11 for the whole
# beta channel because nothing moved it).

on:
workflow_dispatch:
inputs:
version:
description: 'Published version to tag (e.g. 10.0.0-rc.1)'
required: true
type: string
tag:
description: 'dist-tag to move'
required: true
default: next
type: string
workflow_call:
inputs:
version:
required: true
type: string
tag:
required: true
type: string

jobs:
tag:
runs-on: ubuntu-latest
environment: production
permissions:
contents: read

steps:
- uses: actions/checkout@v5

- uses: actions/setup-node@v5
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

# Private workspace packages (icons, skins, vjsc) are never published, so
# they have nothing to tag.
- name: Move dist-tag on every public package
run: |
for manifest in packages/*/package.json; do
if [ "$(jq -r '.private // false' "$manifest")" = "true" ]; then
continue
fi
name=$(jq -r '.name' "$manifest")
npm dist-tag add "${name}@${VERSION}" "$TAG"
done
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
VERSION: ${{ inputs.version }}
TAG: ${{ inputs.tag }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Modern, modular, and composable media player framework for Web and React.

馃毀 Beta - close to stable. Experimental adoption in real projects. 馃毀
馃毀 Release candidate - close to stable. Adoption in real projects encouraged. 馃毀

Video.js v10 is close to stable. Try it out in real projects and share your feedback 馃檹.

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![package-badge]][package]

> **鈿狅笍 Beta** Experimental adoption in real projects.
> **鈿狅笍 Release candidate** Experimental adoption in real projects.
Comment thread
decepulis marked this conversation as resolved.
Outdated

The Video.js 10 CLI. Read documentation from your terminal and generate installation snippets tailored to your setup (framework, preset, skin, media engine, package manager).

Expand Down
2 changes: 1 addition & 1 deletion packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![package-badge]][package]

> **鈿狅笍 Beta** Close to stable. Experimental adoption in real projects.
> **鈿狅笍 Release candidate** Close to stable. Adoption in real projects encouraged.

## Overview

Expand Down
2 changes: 1 addition & 1 deletion packages/element/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![package-badge]][package]

> **鈿狅笍 Beta** Close to stable. Experimental adoption in real projects.
> **鈿狅笍 Release candidate** Close to stable. Adoption in real projects encouraged.

A lightweight reactive custom element base class for Video.js. Type-aligned with [Lit's ReactiveElement](https://github.com/lit/lit/tree/main/packages/reactive-element) but stripped down to only what we use.

Expand Down
2 changes: 1 addition & 1 deletion packages/html/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![package-badge]][package]

> **鈿狅笍 Beta** Close to stable. Experimental adoption in real projects.
> **鈿狅笍 Release candidate** Close to stable. Adoption in real projects encouraged.

## Overview

Expand Down
2 changes: 1 addition & 1 deletion packages/media/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![package-badge]][package]

> **鈿狅笍 Beta** Close to stable. Experimental adoption in real projects.
> **鈿狅笍 Release candidate** Close to stable. Adoption in real projects encouraged.

## Overview

Expand Down
2 changes: 1 addition & 1 deletion packages/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![package-badge]][package]

> **鈿狅笍 Beta** Close to stable. Experimental adoption in real projects.
> **鈿狅笍 Release candidate** Close to stable. Adoption in real projects encouraged.

## Overview

Expand Down
2 changes: 1 addition & 1 deletion packages/spf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![package-badge]][package]

> **鈿狅笍 Beta** Experimental adoption in real projects.
> **鈿狅笍 Release candidate** Experimental adoption in real projects.
Comment thread
decepulis marked this conversation as resolved.
Outdated

## Overview

Expand Down
2 changes: 1 addition & 1 deletion packages/store/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![package-badge]][package]

> **鈿狅笍 Beta** Close to stable. Experimental adoption in real projects.
> **鈿狅笍 Release candidate** Close to stable. Adoption in real projects encouraged.

A reactive store for managing state owned by external systems. Built for media players, streaming libraries, and real-time systems where you don't own the state.

Expand Down
2 changes: 1 addition & 1 deletion packages/utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![package-badge]][package]

> **鈿狅笍 Beta** Close to stable. Experimental adoption in real projects.
> **鈿狅笍 Release candidate** Close to stable. Adoption in real projects encouraged.

## Community

Expand Down
6 changes: 3 additions & 3 deletions site/src/components/BetaPill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ interface BetaPillProps {
className?: string;
style?: React.CSSProperties;
compact?: boolean;
/** Replaces the default "v10 beta" text, e.g. with the documented package version. */
/** Replaces the default "v10 rc" text, e.g. with the documented package version. */
label?: string;
}

Expand All @@ -25,11 +25,11 @@ export default function BetaPill({ className, style, compact, label }: BetaPillP
) : compact ? (
<>
<span>v10</span>
<span className="hidden whitespace-pre uppercase sm:inline"> beta</span>
<span className="hidden whitespace-pre uppercase sm:inline"> rc</span>
</>
) : (
<>
v10<span className="whitespace-pre uppercase"> beta</span>
v10<span className="whitespace-pre uppercase"> rc</span>
</>
)}
</span>
Expand Down
4 changes: 2 additions & 2 deletions site/src/content/docs/concepts/browser-support.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Support starts with an evergreen browser baseline and extends to the rendering e
Video.js 10 currently targets **evergreen browsers**: the latest two stable versions of Chrome, Firefox, Safari, and Edge.

<Aside type="note">
Video.js 10 is in beta. The browser support matrix may expand as we approach GA based on community feedback and usage data.
Video.js 10 is a release candidate. The browser support matrix may expand as we approach GA based on community feedback and usage data.
</Aside>
Comment thread
decepulis marked this conversation as resolved.
Outdated

### Why evergreen?
Expand All @@ -33,7 +33,7 @@ When we use a platform feature that hasn't landed in all supported browsers yet,

A [WebView](https://developer.mozilla.org/en-US/docs/Glossary/WebView) is a browser engine embedded inside a native app. WebViews on iOS (WKWebView) and Android (Android WebView) can behave differently from the full browser; autoplay policies, fullscreen APIs, and hardware acceleration can vary.

Video.js 10 beta targets standard browser environments. If you embed a player inside a native app, test it on each platform and WebView version you support.
Video.js 10 targets standard browser environments. If you embed a player inside a native app, test it on each platform and WebView version you support.

### Progressive Web Apps

Expand Down
4 changes: 2 additions & 2 deletions site/src/content/docs/how-to/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import LLMCase from '@/components/docs/LLMCase.astro';
import CopyMarkdownButton from '@/components/CopyMarkdownButton.tsx';
import { TabsRoot, TabsList, TabsPanel, Tab } from '@/components/Tabs.tsx';

<Aside type="caution" title="Beta Software">
Video.js v10 is currently in _beta_. The API may evolve with [feedback&#x1F64F;](https://github.com/videojs/v10/issues). See the [Changelog](https://github.com/videojs/v10/blob/main/CHANGELOG.md) for recent updates and the <DocsLink slug="concepts/v10-roadmap">Roadmap</DocsLink> for more details on what's coming.
<Aside type="caution" title="Release Candidate">
Video.js v10 is a _release candidate_. The API may still change with [feedback&#x1F64F;](https://github.com/videojs/v10/issues) before the stable release. See the [Changelog](https://github.com/videojs/v10/blob/main/CHANGELOG.md) for recent updates and the <DocsLink slug="concepts/v10-roadmap">Roadmap</DocsLink> for more details on what's coming.
</Aside>
Comment thread
decepulis marked this conversation as resolved.
Outdated

<FrameworkCase frameworks={["react"]}>
Expand Down
Loading