Update dependencies

This commit is contained in:
Brahim Hadriche committed 2025-09-10 08:43:58 -04:00
1 parent 7b674a610d
commit b42289125e
12 files changed
+761 -1192

No files matched your search

+1
View File
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Bug in dash storyboard - Bug in dash storyboard
- Adjust live video detection to reduce error rate happening on iOS client - Adjust live video detection to reduce error rate happening on iOS client
- Bug when parsing headers in telemetry - Bug when parsing headers in telemetry
- Web app fixes and dependency updates
## [0.41.8] - 2025-09-07 ## [0.41.8] - 2025-09-07
+8 -8
View File
@@ -29,7 +29,7 @@
"protocol-buffers-schema": "^3.6.0", "protocol-buffers-schema": "^3.6.0",
"puppeteer": "^24.19.0", "puppeteer": "^24.19.0",
"roku-deploy": "^3.13.0", "roku-deploy": "^3.13.0",
"roku-test-automation": "^2.0.13", "roku-test-automation": "^2.2.1",
"rooibos-roku": "5.15.7", "rooibos-roku": "5.15.7",
"rounded-rect-9patch": "^1.1.2", "rounded-rect-9patch": "^1.1.2",
"semver": "^7.7.2", "semver": "^7.7.2",
@@ -43,7 +43,7 @@
"node": "22" "node": "22"
}, },
"optionalDependencies": { "optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.50.0" "@rollup/rollup-linux-x64-gnu": "^4.50.1"
} }
}, },
"node_modules/@babel/code-frame": { "node_modules/@babel/code-frame": {
@@ -573,9 +573,9 @@
} }
}, },
"node_modules/@rollup/rollup-linux-x64-gnu": { "node_modules/@rollup/rollup-linux-x64-gnu": {
"version": "4.50.0", "version": "4.50.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.50.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.50.1.tgz",
"integrity": "sha512-8PrJJA7/VU8ToHVEPu14FzuSAqVKyo5gg/J8xUerMbyNkWkO9j2ExBho/68RnJsMGNJq4zH114iAttgm7BZVkA==", "integrity": "sha512-MCgtFB2+SVNuQmmjHf+wfI4CMxy3Tk8XjA5Z//A0AKD7QXUYFMQcns91K6dEHBvZPCnhJSyDWLApk40Iq/H3tA==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -6418,9 +6418,9 @@
} }
}, },
"node_modules/roku-test-automation": { "node_modules/roku-test-automation": {
"version": "2.0.13", "version": "2.2.1",
"resolved": "https://registry.npmjs.org/roku-test-automation/-/roku-test-automation-2.0.13.tgz", "resolved": "https://registry.npmjs.org/roku-test-automation/-/roku-test-automation-2.2.1.tgz",
"integrity": "sha512-oz6O7XT343/dD0gt1la6k0g2MJMX8qbZYPe1NDB7bzU1JebMieBDgtqQJJmyK2TvzSvoSKmYEGCspEJl9rSChg==", "integrity": "sha512-tGxfiXI/Ccejw7gAxY46z+kRdtO2BL6Eoypuvjz4b7qxSzbbH3W9SRZufvFhkcgGeG8eH/zen8CJlWHQBexusA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
+3 -3
View File
@@ -23,7 +23,7 @@
"protocol-buffers-schema": "^3.6.0", "protocol-buffers-schema": "^3.6.0",
"puppeteer": "^24.19.0", "puppeteer": "^24.19.0",
"roku-deploy": "^3.13.0", "roku-deploy": "^3.13.0",
"roku-test-automation": "^2.0.13", "roku-test-automation": "^2.2.1",
"rooibos-roku": "5.15.7", "rooibos-roku": "5.15.7",
"rounded-rect-9patch": "^1.1.2", "rounded-rect-9patch": "^1.1.2",
"semver": "^7.7.2", "semver": "^7.7.2",
@@ -65,7 +65,7 @@
"convert-images": "node tools/convert-images.js", "convert-images": "node tools/convert-images.js",
"update-rale-component": "cd tools/RALE && rm TrackerTask.xml && curl -o TrackerTask.zip https://devtools.web.roku.com/roku-advanced-layout-editor/app/TrackerTask.zip && unzip TrackerTask.zip && rm TrackerTask.zip", "update-rale-component": "cd tools/RALE && rm TrackerTask.xml && curl -o TrackerTask.zip https://devtools.web.roku.com/roku-advanced-layout-editor/app/TrackerTask.zip && unzip TrackerTask.zip && rm TrackerTask.zip",
"postinstall": "cd playlet-lib && npm install && cd ../playlet-app && npm install && cd ../playlet-web && npm install", "postinstall": "cd playlet-lib && npm install && cd ../playlet-app && npm install && cd ../playlet-web && npm install",
"update-deps": "npx npm-check-updates --deep --upgrade --install always --reject tailwindcss,brighterscript,daisyui", "update-deps": "npx npm-check-updates --deep --upgrade --install always --reject brighterscript",
"registry:write": "node tools/registry.js --input registry.json", "registry:write": "node tools/registry.js --input registry.json",
"registry:read": "node tools/registry.js --output registry.json", "registry:read": "node tools/registry.js --output registry.json",
"registry:clear": "node tools/registry.js --clear", "registry:clear": "node tools/registry.js --clear",
@@ -74,6 +74,6 @@
"shutdown": "node tools/shutdown.js" "shutdown": "node tools/shutdown.js"
}, },
"optionalDependencies": { "optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.50.0" "@rollup/rollup-linux-x64-gnu": "^4.50.1"
} }
} }
@@ -4,14 +4,12 @@ namespace Http
class CorsMiddleware extends HttpRouter class CorsMiddleware extends HttpRouter
private origin private origin
private headers
private methods private methods
function new(origin = "*" as string, headers = "*" as string, methods = "POST, PUT, GET, DELETE, OPTIONS" as string) function new(origin = "*" as string, methods = "POST, PUT, GET, DELETE, OPTIONS" as string)
super() super()
m.origin = origin m.origin = origin
m.headers = headers
m.methods = methods m.methods = methods
end function end function
@@ -24,14 +22,15 @@ namespace Http
response.headers["Access-Control-Allow-Origin"] = m.origin response.headers["Access-Control-Allow-Origin"] = m.origin
end if end if
if not StringUtils.IsNullOrEmpty(m.headers)
response.headers["Access-Control-Allow-Headers"] = m.headers
end if
if not StringUtils.IsNullOrEmpty(m.methods) if not StringUtils.IsNullOrEmpty(m.methods)
response.headers["Access-Control-Allow-Methods"] = m.methods response.headers["Access-Control-Allow-Methods"] = m.methods
end if end if
allowHeaders = request.headers["Access-Control-Request-Headers"]
if not StringUtils.IsNullOrEmpty(allowHeaders)
response.headers["Access-Control-Allow-Headers"] = allowHeaders
end if
if request.method = "OPTIONS" if request.method = "OPTIONS"
response.header_only = true response.header_only = true
response.http_code = 200 response.http_code = 200
+661 -1097
View File
File diff suppressed because it is too large. Load diff
+6 -5
View File
@@ -9,26 +9,27 @@
"lint": "svelte-check --tsconfig ./tsconfig.json --fail-on-warnings" "lint": "svelte-check --tsconfig ./tsconfig.json --fail-on-warnings"
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/vite-plugin-svelte": "^6.1.4", "@sveltejs/vite-plugin-svelte": "^6.2.0",
"@tailwindcss/postcss": "^4.1.13",
"@tailwindcss/typography": "^0.5.16", "@tailwindcss/typography": "^0.5.16",
"@tsconfig/svelte": "^5.0.5", "@tsconfig/svelte": "^5.0.5",
"@vitejs/plugin-legacy": "^7.2.1", "@vitejs/plugin-legacy": "^7.2.1",
"autoprefixer": "^10.4.21", "autoprefixer": "^10.4.21",
"bgutils-js": "^3.2.0", "bgutils-js": "^3.2.0",
"daisyui": "^4.12.23", "daisyui": "^5.1.10",
"dotenv": "^17.2.2", "dotenv": "^17.2.2",
"ip": "^2.0.1", "ip": "^2.0.1",
"jszip": "^3.10.1", "jszip": "^3.10.1",
"postcss": "^8.5.6", "postcss": "^8.5.6",
"rollup-plugin-visualizer": "^6.0.3", "rollup-plugin-visualizer": "^6.0.3",
"svelte": "^5.38.7", "svelte": "^5.38.8",
"svelte-check": "^4.3.1", "svelte-check": "^4.3.1",
"svelte-preprocess": "^6.0.3", "svelte-preprocess": "^6.0.3",
"tailwindcss": "^3.4.17", "tailwindcss": "^4.1.13",
"terser": "^5.44.0", "terser": "^5.44.0",
"tslib": "^2.8.1", "tslib": "^2.8.1",
"typescript": "^5.9.2", "typescript": "^5.9.2",
"vite": "^7.1.4", "vite": "^7.1.5",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-tsconfig-paths": "^5.1.4", "vite-tsconfig-paths": "^5.1.4",
"youtubei.js": "^15.0.1" "youtubei.js": "^15.0.1"
+1 -1
View File
@@ -1,6 +1,6 @@
module.exports = { module.exports = {
plugins: { plugins: {
tailwindcss: {}, '@tailwindcss/postcss': {},
autoprefixer: {}, autoprefixer: {},
}, },
} }
+2 -3
View File
@@ -1,3 +1,2 @@
@tailwind base; @import "tailwindcss";
@tailwind components; @plugin "daisyui";
@tailwind utilities;
+1 -1
View File
@@ -66,7 +66,7 @@
</script> </script>
<!-- https://github.com/saadeghi/daisyui/issues/1732#issuecomment-1747818200 --> <!-- https://github.com/saadeghi/daisyui/issues/1732#issuecomment-1747818200 -->
<div class="btm-nav box-content"> <div class="dock">
<button <button
on:click={() => setScreen("search")} on:click={() => setScreen("search")}
class={$appStateStore.screen === "search" ? "active" : ""} class={$appStateStore.screen === "search" ? "active" : ""}
+19 -22
View File
@@ -52,36 +52,33 @@
} }
</script> </script>
<div class="navbar bg-base-100 sticky top-0 z-40"> <div class="bg-base-100 sticky top-0 z-40 flex items-center min-w-0 px-2 h-16">
<div class="flex-1"> <div class="flex flex-col items-center justify-center min-w-0 mr-2">
<div class="flex flex-col justify-center items-center"> <button on:click={() => ExternalControlProtocol.launchApp(appId)}>
<button on:click={() => ExternalControlProtocol.launchApp(appId)}> {#if $appThemeStore === "dark"}
{#if $appThemeStore === "dark"} <PlayletLogoDark />
<PlayletLogoDark /> {:else}
{:else} <PlayletLogoLight />
<PlayletLogoLight /> {/if}
{/if} </button>
</button> <div class="text-xs brightness-75">{version}</div>
<div class="text-xs brightness-75">{version}</div>
</div>
</div> </div>
<div class="flex-none"> <div class="flex-1"></div>
<div class="flex items-center min-w-0">
<ThemeSelect /> <ThemeSelect />
{#if currentProfile && currentProfile.username} {#if currentProfile && currentProfile.username}
<div class="badge badge-outline"> <div
<span> class="badge badge-outline min-w-0 max-w-[12rem] overflow-hidden whitespace-nowrap truncate px-0.5"
<!-- TODO:P2 use text-ellipsis --> title={currentProfile.username}
{currentProfile.username.length > 10 >
? `${currentProfile.username.slice(0, 10)}…` <span class="truncate">{currentProfile.username}</span>
: currentProfile.username}
</span>
</div> </div>
{/if} {/if}
<button <button
on:click={showProfilesDialog} on:click={showProfilesDialog}
class="btn btn-ghost btn-circle avatar" class="btn btn-ghost btn-circle avatar overflow-hidden w-12 h-12"
> >
<ProfileAvatar /> <ProfileAvatar profile={currentProfile} navbar={true} />
</button> </button>
</div> </div>
</div> </div>
+48 -27
View File
@@ -1,36 +1,57 @@
<script lang="ts"> <script lang="ts">
import { playletStateStore } from "lib/Stores"; export let profile = null;
export let navbar = false;
export let selected = false;
import UserIcon from "assets/user.svg.svelte"; import UserIcon from "assets/user.svg.svelte";
import { playletStateStore } from "lib/Stores";
let currentProfile; let currentProfile = profile;
playletStateStore.subscribe((value) => { if (!profile) {
let profiles = value?.profiles?.profiles ?? []; playletStateStore.subscribe((value) => {
currentProfile = profiles.find( let profiles = value?.profiles?.profiles ?? [];
(p) => p.id === value?.profiles?.currentProfile currentProfile = profiles.find(
); (p) => p.id === value?.profiles?.currentProfile
}); );
});
}
</script> </script>
<div> {#if currentProfile && currentProfile.username}
{#if currentProfile && currentProfile.username} <div class={`avatar ${navbar ? "w-8 h-8 m-1" : "w-12 h-12"}`}>
<div class="avatar placeholder m-1.5"> <div
<div class={`rounded-full flex items-center justify-center w-full h-full
class="rounded-full w-8 ring ring-offset-base-100 ring-offset-2" ${
style="background-color: {currentProfile.color}" navbar
> ? "border-2 border-primary"
{#if currentProfile.type === "youtube" && currentProfile.thumbnail} : selected
<img src={currentProfile.thumbnail} alt="Avatar" /> ? "ring ring-primary ring-offset-base-100 ring-offset-2"
{:else} : "ring ring-offset-base-100 ring-offset-2"
<span class="text-xl font-medium text-gray-200" }
>{currentProfile.username.substring(0, 1).toUpperCase()}</span `}
> style="background-color: {currentProfile.color};"
{/if} >
</div> {#if currentProfile.type === "youtube" && currentProfile.thumbnail}
<img
src={currentProfile.thumbnail}
alt="Avatar"
class="object-cover w-full h-full rounded-full"
/>
{:else}
<span
class="text-lg font-medium text-gray-200 flex items-center justify-center w-full h-full"
>
{currentProfile.username.substring(0, 1).toUpperCase()}
</span>
{/if}
</div> </div>
{:else} </div>
<div class="w-8 rounded-full"> {:else}
<div class={`avatar ${navbar ? "w-8 h-8 m-1" : "w-12 h-12"}`}>
<div
class="rounded-full bg-base-300 w-full h-full flex items-center justify-center"
>
<UserIcon /> <UserIcon />
</div> </div>
{/if} </div>
</div> {/if}
+5 -18
View File
@@ -2,6 +2,7 @@
import { playletStateStore, translate } from "lib/Stores"; import { playletStateStore, translate } from "lib/Stores";
import { PlayletApi } from "./Api/PlayletApi"; import { PlayletApi } from "./Api/PlayletApi";
import { get } from "svelte/store"; import { get } from "svelte/store";
import ProfileAvatar from "./ProfileAvatar.svelte";
export function show() { export function show() {
modal.showModal(); modal.showModal();
@@ -97,24 +98,10 @@
bind:group={accordionState} bind:group={accordionState}
/> />
<div class="collapse-title flex"> <div class="collapse-title flex">
<div> <ProfileAvatar
<div class="avatar placeholder"> {profile}
<div selected={profile.id === currentProfile?.id}
class="rounded-full w-12 {profile.id === currentProfile?.id />
? 'ring ring-primary ring-offset-base-100 ring-offset-2'
: ''} "
style="background-color: {profile.color}"
>
{#if profile.type === "youtube" && profile.thumbnail}
<img src={profile.thumbnail} alt="Avatar" />
{:else}
<span class="text-xl font-medium text-gray-200"
>{profile.username.substring(0, 1).toUpperCase()}</span
>
{/if}
</div>
</div>
</div>
<div class="ml-4"> <div class="ml-4">
<div class="font-medium"> <div class="font-medium">
{profile.username} {profile.username}