Skip to content

Commit 897ee9d

Browse files
committed
Update packages and node
1 parent a0a3072 commit 897ee9d

File tree

31 files changed

+1114
-1112
lines changed

31 files changed

+1114
-1112
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, windows-latest]
17-
node-version: [18, 20, 22]
17+
node-version: [22, 24]
1818
uses: yoriiis/actions/.github/workflows/test-and-build.yml@main
1919
with:
2020
node-version: ${{ matrix.node-version }}

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
lint:
1616
uses: yoriiis/actions/.github/workflows/lint.yml@main
1717
with:
18-
node-version: 20
18+
node-version: 24
1919
eslint-status: false
2020
stylelint-status: false
2121
biome-status: true

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
id-token: write # Required for OIDC
1616
contents: read
1717
with:
18-
node-version: 20
18+
node-version: 24

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/jod
1+
lts/krypton

biome.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
2+
"$schema": "https://biomejs.dev/schemas/2.3.4/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
48
"files": {
59
"ignoreUnknown": false,
6-
"ignore": ["**/node_modules", "**/examples", "**/config", "**/dist"]
10+
"includes": ["**"]
711
},
8-
"overrides": [
9-
{
10-
"include": ["package.json"],
11-
"formatter": {
12-
"lineWidth": 1
13-
}
14-
}
15-
],
1612
"formatter": {
1713
"enabled": true,
1814
"useEditorconfig": true,
@@ -24,13 +20,16 @@
2420
"attributePosition": "auto",
2521
"bracketSpacing": true
2622
},
27-
"organizeImports": { "enabled": true },
23+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
2824
"linter": {
2925
"enabled": true,
3026
"rules": {
3127
"recommended": true,
3228
"complexity": { "noForEach": "off" },
33-
"suspicious": { "noExplicitAny": "off" }
29+
"suspicious": { "noExplicitAny": "off" },
30+
"correctness": {
31+
"noUnknownTypeSelector": "off"
32+
}
3433
}
3534
},
3635
"javascript": {

config/package.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
import pkg from '../package.json' with { type: 'json' }
2+
23
const { author, license, name, version } = pkg
34

45
export const banner = `/*!\n * @license ${license}\n * @name ${name}\n * @version ${version}\n * @copyright ${new Date().getUTCFullYear()} ${author}\n */`
56
export const providers = ['youtube', 'vimeo', 'dailymotion']
6-
export const plugins = ['subtitle', 'pip', 'cast', 'airplay', 'ima', 'volume-bar', 'sticky', 'hotkeys']
7+
export const plugins = [
8+
'subtitle',
9+
'pip',
10+
'cast',
11+
'airplay',
12+
'ima',
13+
'volume-bar',
14+
'sticky',
15+
'hotkeys'
16+
]

config/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import path from 'node:path'
22
import { fileURLToPath } from 'node:url'
33
import alias from '@rollup/plugin-alias'
44
import { nodeResolve } from '@rollup/plugin-node-resolve'
5+
import terser from '@rollup/plugin-terser'
56
import typescript from '@rollup/plugin-typescript'
67
import postcss from 'rollup-plugin-postcss'
78
import svg from 'rollup-plugin-svg'
8-
import terser from '@rollup/plugin-terser'
99
import { banner, plugins, providers } from './package.js'
1010

1111
const __filename = fileURLToPath(import.meta.url)

examples/audio/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Vlitejs from '../../dist/vlite.js'
55

66
Vlitejs.registerPlugin('volume-bar', VlitejsVolumeBar)
77

8-
const vlite = new Vlitejs('#player', {
8+
new Vlitejs('#player', {
99
options: {
1010
controls: true,
1111
autoplay: false,

examples/dailymotion/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Vlitejs.registerProvider('dailymotion', VlitejsDailymotion, {
99
})
1010
Vlitejs.registerPlugin('volume-bar', VlitejsVolumeBar)
1111

12-
const vlite = new Vlitejs('#player', {
12+
new Vlitejs('#player', {
1313
options: {
1414
controls: true,
1515
autoplay: false,

examples/html5-hls/config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ document.addEventListener('DOMContentLoaded', () => {
88
const source = 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
99
const video = document.querySelector('video')
1010

11-
/* eslint-disable no-unused-vars */
12-
const vlite = new Vlitejs('#player', {
11+
new Vlitejs('#player', {
1312
options: {
1413
controls: true,
1514
autoplay: false,
@@ -30,7 +29,6 @@ document.addEventListener('DOMContentLoaded', () => {
3029
console.log(player)
3130
}
3231
})
33-
/* eslint-enable no-unused-vars */
3432

3533
if (!Hls.isSupported()) {
3634
video.src = source

0 commit comments

Comments
 (0)