Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
fix: upgrade deps & fix readme badges
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes committed Apr 21, 2024
1 parent db27d7d commit deafb89
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- run: npm ci
- run: npm run lint
- run: npm test
- run: npx --yes wet-run@1.0.0 release ${{ inputs.version }} ${{ inputs.dryrun && '--dry-run' || '' }} ${{ inputs.prerelease && format('--prerelease {0}', inputs.prerelease) || '' }} --provenance --changelog --github-release --verbose
- run: npx --yes wet-run@1.2.2 release ${{ inputs.version }} ${{ inputs.dryrun && '--dry-run' || '' }} ${{ inputs.prerelease && format('--prerelease {0}', inputs.prerelease) || '' }} --provenance --changelog --github-release --log-level verbose
- name: Get NPM version
id: npm-version
uses: martinbeentjes/[email protected]
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# `<hls-video>`

[![Version](https://img.shields.io/npm/v/hls-video-element?style=flat-square)](https://www.npmjs.com/package/hls-video-element)
[![Badge size](https://img.badgesize.io/https://cdn.jsdelivr.net/npm/hls-video-element/+esm?compression=gzip&label=gzip&style=flat-square)](https://cdn.jsdelivr.net/npm/hls-video-element/+esm)
[![NPM Version](https://img.shields.io/npm/v/hls-video-element?style=flat-square&color=informational)](https://www.npmjs.com/package/hls-video-element)
[![NPM Downloads](https://img.shields.io/npm/dm/hls-video-element?style=flat-square&color=informational&label=npm)](https://www.npmjs.com/package/hls-video-element)
[![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hm/hls-video-element?style=flat-square&color=%23FF5627)](https://www.jsdelivr.com/package/npm/hls-video-element)
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/hls-video-element?style=flat-square&color=success&label=gzip)](https://bundlephobia.com/result?p=hls-video-element)

A [custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements)
for [hls.js](https://github.com/video-dev/hls.js) with an API that matches the
Expand All @@ -14,7 +16,7 @@ for [hls.js](https://github.com/video-dev/hls.js) with an API that matches the

<!-- prettier-ignore -->
```html
<script type="module" src="https://cdn.jsdelivr.net/npm/hls-video-element@1.0/+esm"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/hls-video-element@1.1/+esm"></script>
<hls-video controls src="https://stream.mux.com/r4rOE02cc95tbe3I00302nlrHfT023Q3IedFJW029w018KxZA.m3u8"></hls-video>
```

Expand All @@ -36,7 +38,7 @@ Optionally, you can load the script directly from a CDN using [jsDelivr](https:/

<!-- prettier-ignore -->
```html
<script type="module" src="https://cdn.jsdelivr.net/npm/hls-video-element@1.0/+esm"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/hls-video-element@1.1/+esm"></script>
```

This will register the custom elements with the browser so they can be used as HTML.
Expand Down
48 changes: 24 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@
"name": "hls-video-element",
"version": "1.1.3",
"description": "Custom element (web component) for playing video using the HTTP Live Streaming (HLS) format. Uses HLS.js.",
"author": "@muxinc",
"license": "MIT",
"repository": "muxinc/hls-video-element",
"homepage": "https://github.com/muxinc/hls-video-element#readme",
"bugs": {
"url": "https://github.com/muxinc/hls-video-element/issues"
},
"type": "module",
"main": "hls-video-element.js",
"types": "hls-video-element.d.ts",
"files": [
"hls-video-element.d.ts"
],
"scripts": {
"lint": "npx eslint *.js -c ./node_modules/wet-run/.eslintrc.json",
"lint": "npx eslint@8 *.js -c ./node_modules/wet-run/.eslintrc.json",
"test": "wet test --coverage",
"dev": "wet serve --cors --livereload"
},
"repository": "muxinc/hls-video-element",
"author": "@muxinc",
"license": "MIT",
"homepage": "https://github.com/muxinc/hls-video-element#readme",
"bugs": {
"url": "https://github.com/muxinc/hls-video-element/issues"
},
"dependencies": {
"custom-media-element": "^1.2.3",
"hls.js": "^1.5.4",
"hls.js": "^1.5.8",
"media-tracks": "^0.3.0"
},
"devDependencies": {
"wet-run": "^1.0.3"
"wet-run": "^1.2.2"
},
"keywords": [
"HLS",
Expand Down

0 comments on commit deafb89

Please sign in to comment.