lightnet 4.6.1 → 4.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +13 -13
- package/src/components/VideoPlayer.astro +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# lightnet
|
|
2
2
|
|
|
3
|
+
## 4.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#456](https://github.com/LightNetDev/LightNet/pull/456) [`2c49737`](https://github.com/LightNetDev/LightNet/commit/2c4973792aa695a2b19acc04744aca39bb7f868d) - Render relative MP4 upload URLs in the native video player instead of the external-link fallback.
|
|
8
|
+
|
|
9
|
+
- [#456](https://github.com/LightNetDev/LightNet/pull/456) [`2c49737`](https://github.com/LightNetDev/LightNet/commit/2c4973792aa695a2b19acc04744aca39bb7f868d) - Update dependencies.
|
|
10
|
+
|
|
3
11
|
## 4.6.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "LightNet makes it easy to run your own digital media library.",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "4.6.
|
|
6
|
+
"version": "4.6.2",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/LightNetDev/lightnet",
|
|
@@ -52,35 +52,35 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@astrojs/react": "^5.0.7",
|
|
55
|
-
"@iconify-json/lucide": "^1.2.
|
|
55
|
+
"@iconify-json/lucide": "^1.2.145",
|
|
56
56
|
"@iconify-json/mdi": "^1.2.3",
|
|
57
57
|
"@iconify/tailwind": "^1.2.0",
|
|
58
58
|
"@tailwindcss/typography": "^0.5.20",
|
|
59
|
-
"@tanstack/react-virtual": "^3.14.
|
|
60
|
-
"autoprefixer": "^10.
|
|
59
|
+
"@tanstack/react-virtual": "^3.14.21",
|
|
60
|
+
"autoprefixer": "^10.6.1",
|
|
61
61
|
"embla-carousel": "^8.6.0",
|
|
62
62
|
"embla-carousel-wheel-gestures": "^8.1.0",
|
|
63
63
|
"fuse.js": "^7.5.0",
|
|
64
|
-
"i18next": "^26.
|
|
65
|
-
"lucide-react": "^1.
|
|
66
|
-
"marked": "^18.
|
|
67
|
-
"postcss": "^8.5.
|
|
64
|
+
"i18next": "^26.5.2",
|
|
65
|
+
"lucide-react": "^1.59.0",
|
|
66
|
+
"marked": "^18.1.1",
|
|
67
|
+
"postcss": "^8.5.30",
|
|
68
68
|
"postcss-load-config": "^6.0.1",
|
|
69
|
-
"yaml": "^2.9.
|
|
69
|
+
"yaml": "^2.9.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@internal/e2e-test-utils": "^0.0.1",
|
|
73
|
-
"@playwright/test": "^1.
|
|
74
|
-
"@types/react": "^19.
|
|
73
|
+
"@playwright/test": "^1.64.1",
|
|
74
|
+
"@types/react": "^19.3.0",
|
|
75
75
|
"astro": "^6.4.8",
|
|
76
76
|
"typescript": "^6.0.3",
|
|
77
|
-
"vitest": "^5.0.
|
|
77
|
+
"vitest": "^5.0.5"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": ">=22"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
|
-
"test": "vitest",
|
|
83
|
+
"test": "vitest run",
|
|
84
84
|
"e2e": "playwright test"
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -44,7 +44,7 @@ async function parseUrl(
|
|
|
44
44
|
|
|
45
45
|
let url: URL
|
|
46
46
|
try {
|
|
47
|
-
url = new URL(urlToParse)
|
|
47
|
+
url = new URL(urlToParse, Astro.url)
|
|
48
48
|
} catch {
|
|
49
49
|
return {
|
|
50
50
|
host: "external",
|
|
@@ -81,12 +81,12 @@ async function parseUrl(
|
|
|
81
81
|
// https://domain.com/video.mp4
|
|
82
82
|
if (url.pathname.endsWith(".mp4")) {
|
|
83
83
|
const image = await resolvedImage()
|
|
84
|
-
return { host: "mp4", id:
|
|
84
|
+
return { host: "mp4", id: urlToParse, image }
|
|
85
85
|
}
|
|
86
86
|
return {
|
|
87
87
|
host: "external",
|
|
88
88
|
id: null,
|
|
89
|
-
href:
|
|
89
|
+
href: urlToParse,
|
|
90
90
|
image: await resolvedImage(),
|
|
91
91
|
}
|
|
92
92
|
}
|