[chore] update dependencies (#606)

* update dependencies

* Backend changes
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2025-05-16 23:43:10 -04:00
1 parent cbb34d45fc
commit fc7a029147
8 files changed
+126 -120

No files matched your search

+6
View File
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- A few issues related to Playlet backend feeds and caching
## [0.37.0] - 2025-05-16 ## [0.37.0] - 2025-05-16
### Added ### Added
+22 -22
View File
@@ -9,14 +9,14 @@
"version": "0.37.0", "version": "0.37.0",
"hasInstallScript": true, "hasInstallScript": true,
"devDependencies": { "devDependencies": {
"@rokucommunity/bslint": "^0.8.30", "@rokucommunity/bslint": "^0.8.31",
"@types/crypto-js": "^4.2.2", "@types/crypto-js": "^4.2.2",
"@types/fs-extra": "^11.0.4", "@types/fs-extra": "^11.0.4",
"@types/node": "^22.15.17", "@types/node": "^22.15.18",
"@types/xml2js": "^0.4.14", "@types/xml2js": "^0.4.14",
"argparse": "^2.0.1", "argparse": "^2.0.1",
"brighterscript": "0.68.5", "brighterscript": "0.68.5",
"brighterscript-formatter": "^1.7.13", "brighterscript-formatter": "^1.7.14",
"cheerio": "1.0.0-rc.11", "cheerio": "1.0.0-rc.11",
"convert-svg-to-png": "^0.6.4", "convert-svg-to-png": "^0.6.4",
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
@@ -32,12 +32,12 @@
"roku-test-automation": "^2.0.13", "roku-test-automation": "^2.0.13",
"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.1", "semver": "^7.7.2",
"shelljs": "^0.10.0", "shelljs": "^0.10.0",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typescript": "5.8.3", "typescript": "5.8.3",
"xml2js": "^0.6.2", "xml2js": "^0.6.2",
"yaml": "^2.7.1" "yaml": "^2.8.0"
}, },
"engines": { "engines": {
"node": "20" "node": "20"
@@ -438,9 +438,9 @@
"dev": true "dev": true
}, },
"node_modules/@rokucommunity/bslint": { "node_modules/@rokucommunity/bslint": {
"version": "0.8.30", "version": "0.8.31",
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.30.tgz", "resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.31.tgz",
"integrity": "sha512-OMXmVslummcvvK7+b7abXtGZc2t6IaxcPG1Uq3ZoNj4qqJn0z2zZLnDjizDPR0c2kaZGI3wPTHehrGMjPbkR0Q==", "integrity": "sha512-/VsycIH2OiEoNe7fCLqbQrDnX/JoKUV3Nufg0+auCM/DhCYzL4iM965VkSBebWzwUsnQXjILaKC4fRcMjpSBPQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -760,9 +760,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "22.15.17", "version": "22.15.18",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.17.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.18.tgz",
"integrity": "sha512-wIX2aSZL5FE+MR0JlvF87BNVrtFWf6AE6rxSE9X7OwnVvoyCQjpzSRJ+M87se/4QCkCiebQAqrJ0y6fwIyi7nw==", "integrity": "sha512-v1DKRfUdyW+jJhZNEI1PYy29S2YRxMV5AOO/x/SjKmW0acCIOqmbj6Haf9eHAhsPmrhlHSxEhv/1WszcLWV4cg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -1360,13 +1360,13 @@
} }
}, },
"node_modules/brighterscript-formatter": { "node_modules/brighterscript-formatter": {
"version": "1.7.13", "version": "1.7.14",
"resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.7.13.tgz", "resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.7.14.tgz",
"integrity": "sha512-fv2s+9CdYufQllOiE/uLayqNGq7fqy7FmCWy8gOengrNK7pUp6BV1G+3fuhRSN7A2xLNcXIB+8q6tnCGdb6qeg==", "integrity": "sha512-rbK5lT2UZ/yD/JLryIsZC9Kng1vh4xFf9CO1tp8nMRaOTncscuD1mtMsmJXq0uQusxoRNBXB/tvSZQPKR9+SXQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"brighterscript": "^0.69.8", "brighterscript": "^0.69.9",
"glob-all": "^3.3.0", "glob-all": "^3.3.0",
"jsonc-parser": "^3.0.0", "jsonc-parser": "^3.0.0",
"source-map": "^0.7.3", "source-map": "^0.7.3",
@@ -6712,9 +6712,9 @@
} }
}, },
"node_modules/semver": { "node_modules/semver": {
"version": "7.7.1", "version": "7.7.2",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
"integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",
"dev": true, "dev": true,
"license": "ISC", "license": "ISC",
"bin": { "bin": {
@@ -7925,16 +7925,16 @@
"dev": true "dev": true
}, },
"node_modules/yaml": { "node_modules/yaml": {
"version": "2.7.1", "version": "2.8.0",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.0.tgz",
"integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==", "integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==",
"dev": true, "dev": true,
"license": "ISC", "license": "ISC",
"bin": { "bin": {
"yaml": "bin.mjs" "yaml": "bin.mjs"
}, },
"engines": { "engines": {
"node": ">= 14" "node": ">= 14.6"
} }
}, },
"node_modules/yargs": { "node_modules/yargs": {
+5 -5
View File
@@ -3,14 +3,14 @@
"version": "0.37.0", "version": "0.37.0",
"description": "Unofficial YouTube client for Roku", "description": "Unofficial YouTube client for Roku",
"devDependencies": { "devDependencies": {
"@rokucommunity/bslint": "^0.8.30", "@rokucommunity/bslint": "^0.8.31",
"@types/crypto-js": "^4.2.2", "@types/crypto-js": "^4.2.2",
"@types/fs-extra": "^11.0.4", "@types/fs-extra": "^11.0.4",
"@types/node": "^22.15.17", "@types/node": "^22.15.18",
"@types/xml2js": "^0.4.14", "@types/xml2js": "^0.4.14",
"argparse": "^2.0.1", "argparse": "^2.0.1",
"brighterscript": "0.68.5", "brighterscript": "0.68.5",
"brighterscript-formatter": "^1.7.13", "brighterscript-formatter": "^1.7.14",
"cheerio": "1.0.0-rc.11", "cheerio": "1.0.0-rc.11",
"convert-svg-to-png": "^0.6.4", "convert-svg-to-png": "^0.6.4",
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
@@ -26,12 +26,12 @@
"roku-test-automation": "^2.0.13", "roku-test-automation": "^2.0.13",
"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.1", "semver": "^7.7.2",
"shelljs": "^0.10.0", "shelljs": "^0.10.0",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typescript": "5.8.3", "typescript": "5.8.3",
"xml2js": "^0.6.2", "xml2js": "^0.6.2",
"yaml": "^2.7.1" "yaml": "^2.8.0"
}, },
"engines": { "engines": {
"node": "20" "node": "20"
@@ -312,8 +312,18 @@ namespace InnertubeService
} }
end if end if
json = response.Json() feeds = Innertube.ParseResponseDataForFeeds(response.Json())
return Innertube.ParseResponseDataForFeeds(json)
result = {
feeds: feeds
}
cacheControl = Innertube.ParseResponseForCacheControl(response)
if cacheControl <> invalid
result["cache-control"] = cacheControl
end if
return result
end function end function
function AuthMarkVideoWatched(videoId as string, options as object) as boolean function AuthMarkVideoWatched(videoId as string, options as object) as boolean
@@ -651,7 +661,14 @@ namespace InnertubeService
return response.Json() return response.Json()
end if end if
return Innertube.ParseMixPageResponseData(response.Json()) result = Innertube.ParseMixPageResponseData(response.Json())
cacheControl = Innertube.ParseResponseForCacheControl(response)
if cacheControl <> invalid
result["cache-control"] = cacheControl
end if
return result
end function end function
function ResolveUrl(url as string, options = invalid as object) as object function ResolveUrl(url as string, options = invalid as object) as object
@@ -106,6 +106,8 @@ namespace Innertube
"genericPromoRenderer": ParseNotImplemented "genericPromoRenderer": ParseNotImplemented
' "Sign in to see the latest videos tailored to your interests" ' "Sign in to see the latest videos tailored to your interests"
"feedNudgeRenderer": ParseNotImplemented "feedNudgeRenderer": ParseNotImplemented
' "No results found, Try different keywords or remove search filters"
"backgroundPromoRenderer": ParseNotImplemented
"videoSurveyShelfRenderer": ParseNotImplemented "videoSurveyShelfRenderer": ParseNotImplemented
"searchBarRenderer": ParseNotImplemented "searchBarRenderer": ParseNotImplemented
"clickTrackingParams": ParseNotImplemented "clickTrackingParams": ParseNotImplemented
@@ -71,36 +71,35 @@ namespace Http
options.continuation = continuation options.continuation = continuation
end if end if
feeds = InnertubeService.GetSubscriptions(options) result = InnertubeService.GetSubscriptions(options)
if feeds = invalid if result.error <> invalid
response.Json({ response.Json(result)
"error": "Failed to get auth feed"
})
response.http_code = 500 response.http_code = 500
return true return true
end if end if
if IsAssociativeArray(feeds) if not IsArray(result.feeds) or result.feeds.Count() = 0
if feeds.error <> invalid ' Not an error, just no subscriptions
response.Json(feeds) response.Json({
response.http_code = 500 "videos": []
return true })
end if
return true return true
end if end if
result = { responseBody = {
"videos": [] "videos": ValidArray(result.feeds[0].items)
} }
if feeds.Count() > 0 if result.feeds[0].DoesExist("continuation")
result["videos"] = ValidArray(feeds[0].items) responseBody.continuation = result.feeds[0].continuation
if feeds[0].DoesExist("continuation") end if
result["continuation"] = feeds[0].continuation
end if response.Json(responseBody)
if result.DoesExist("cache-control")
response.headers["cache-control"] = result["cache-control"]
end if end if
response.Json(result)
return true return true
end function end function
@@ -144,8 +143,14 @@ namespace Http
options.continuation = continuation options.continuation = continuation
end if end if
feeds = InnertubeService.GetPlaylists(options) result = InnertubeService.GetPlaylists(options)
if feeds = invalid if result.error <> invalid
response.Json(result)
response.http_code = 500
return true
end if
if not IsArray(result.feeds) or result.feeds.Count() = 0
response.Json({ response.Json({
"error": "Failed to get auth playlists" "error": "Failed to get auth playlists"
}) })
@@ -153,23 +158,12 @@ namespace Http
return true return true
end if end if
if IsAssociativeArray(feeds) response.Json(result.feeds[0])
if feeds.error <> invalid
response.Json(feeds) if result.DoesExist("cache-control")
response.http_code = 500 response.headers["cache-control"] = result["cache-control"]
return true
end if
return true
end if end if
if feeds.Count() > 0
response.Json(feeds[0])
return true
end if
response.Json({
"items": []
})
return true return true
end function end function
@@ -195,32 +189,27 @@ namespace Http
options.continuation = continuation options.continuation = continuation
end if end if
feeds = InnertubeService.GetWatchHistory(options) result = InnertubeService.GetWatchHistory(options)
if feeds = invalid if result.error <> invalid
response.Json({ response.Json(result)
"error": "Failed to get auth history"
})
response.http_code = 500 response.http_code = 500
return true return true
end if end if
if IsAssociativeArray(feeds) if not IsArray(result.feeds) or result.feeds.Count() = 0
if feeds.error <> invalid ' Not an error, just no history
response.Json(feeds) response.Json({
response.http_code = 500 "items": []
return true })
end if
return true return true
end if end if
if feeds.Count() > 0 response.Json(result.feeds[0])
response.Json(feeds[0])
return true if result.DoesExist("cache-control")
response.headers["cache-control"] = result["cache-control"]
end if end if
response.Json({
"items": []
})
return true return true
end function end function
@@ -317,6 +306,7 @@ namespace Http
end if end if
response.Json(ValidArray(result.feeds[0].items)) response.Json(ValidArray(result.feeds[0].items))
if result.DoesExist("cache-control") if result.DoesExist("cache-control")
response.headers["cache-control"] = result["cache-control"] response.headers["cache-control"] = result["cache-control"]
end if end if
@@ -346,36 +336,27 @@ namespace Http
options.continuation = continuation options.continuation = continuation
end if end if
feeds = InnertubeService.GetHome(options) result = InnertubeService.GetHome(options)
if feeds = invalid if result.error <> invalid
response.Json({ response.Json(result)
"error": "Failed to get auth home feed"
})
response.http_code = 500 response.http_code = 500
return true return true
end if end if
if IsAssociativeArray(feeds) if not IsArray(result.feeds) or result.feeds.Count() = 0
if feeds.error <> invalid ' Not an error, just no recommended videos, usually when there's no history
response.Json(feeds) response.Json({
response.http_code = 500 "items": []
return true })
end if
return true return true
end if end if
result = { response.Json(result.feeds[0])
"items": []
}
if feeds.Count() > 0 if result.DoesExist("cache-control")
result["items"] = ValidArray(feeds[0].items) response.headers["cache-control"] = result["cache-control"]
if feeds[0].DoesExist("continuation")
result["continuation"] = feeds[0].continuation
end if
end if end if
response.Json(result)
return true return true
end function end function
@@ -460,7 +441,7 @@ namespace Http
if not IsArray(result.feeds) or result.feeds.Count() = 0 if not IsArray(result.feeds) or result.feeds.Count() = 0
response.Json({ response.Json({
"error": "Failed to search" "error": "Failed to search: no results found"
}) })
response.http_code = 500 response.http_code = 500
return true return true
+13 -13
View File
@@ -17,11 +17,11 @@
"dotenv": "^16.5.0", "dotenv": "^16.5.0",
"ip": "^2.0.1", "ip": "^2.0.1",
"postcss": "^8.5.3", "postcss": "^8.5.3",
"svelte": "^5.28.2", "svelte": "^5.30.1",
"svelte-check": "^4.1.7", "svelte-check": "^4.2.1",
"svelte-preprocess": "^6.0.3", "svelte-preprocess": "^6.0.3",
"tailwindcss": "^3.4.17", "tailwindcss": "^3.4.17",
"terser": "^5.39.0", "terser": "^5.39.2",
"tslib": "^2.8.1", "tslib": "^2.8.1",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"vite": "^6.3.5", "vite": "^6.3.5",
@@ -4371,9 +4371,9 @@
} }
}, },
"node_modules/svelte": { "node_modules/svelte": {
"version": "5.28.2", "version": "5.30.1",
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.28.2.tgz", "resolved": "https://registry.npmjs.org/svelte/-/svelte-5.30.1.tgz",
"integrity": "sha512-FbWBxgWOpQfhKvoGJv/TFwzqb4EhJbwCD17dB0tEpQiw1XyUEKZJtgm4nA4xq3LLsMo7hu5UY/BOFmroAxKTMg==", "integrity": "sha512-QIYtKnJGkubWXtNkrUBKVCvyo9gjcccdbnvXfwsGNhvbeNNdQjRDTa/BiQcJ2kWXbXPQbWKyT7CUu53KIj1rfw==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -4397,9 +4397,9 @@
} }
}, },
"node_modules/svelte-check": { "node_modules/svelte-check": {
"version": "4.1.7", "version": "4.2.1",
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.1.7.tgz", "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.2.1.tgz",
"integrity": "sha512-1jX4BzXrQJhC/Jt3SqYf6Ntu//vmfc6VWp07JkRfK2nn+22yIblspVUo96gzMkg0Zov8lQicxhxsMzOctwcMQQ==", "integrity": "sha512-e49SU1RStvQhoipkQ/aonDhHnG3qxHSBtNfBRb9pxVXoa+N7qybAo32KgA9wEb2PCYFNaDg7bZCdhLD1vHpdYA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -4592,14 +4592,14 @@
} }
}, },
"node_modules/terser": { "node_modules/terser": {
"version": "5.39.0", "version": "5.39.2",
"resolved": "https://registry.npmjs.org/terser/-/terser-5.39.0.tgz", "resolved": "https://registry.npmjs.org/terser/-/terser-5.39.2.tgz",
"integrity": "sha512-LBAhFyLho16harJoWMg/nZsQYgTrg5jXOn2nCYjRUcZZEdE3qa2zb8QEDRUGVZBW4rlazf2fxkg8tztybTaqWw==", "integrity": "sha512-yEPUmWve+VA78bI71BW70Dh0TuV4HHd+I5SHOAfS1+QBOmvmCiiffgjR8ryyEd3KIfvPGFqoADt8LdQ6XpXIvg==",
"dev": true, "dev": true,
"license": "BSD-2-Clause", "license": "BSD-2-Clause",
"dependencies": { "dependencies": {
"@jridgewell/source-map": "^0.3.3", "@jridgewell/source-map": "^0.3.3",
"acorn": "^8.8.2", "acorn": "^8.14.0",
"commander": "^2.20.0", "commander": "^2.20.0",
"source-map-support": "~0.5.20" "source-map-support": "~0.5.20"
}, },
+3 -3
View File
@@ -18,11 +18,11 @@
"dotenv": "^16.5.0", "dotenv": "^16.5.0",
"ip": "^2.0.1", "ip": "^2.0.1",
"postcss": "^8.5.3", "postcss": "^8.5.3",
"svelte": "^5.28.2", "svelte": "^5.30.1",
"svelte-check": "^4.1.7", "svelte-check": "^4.2.1",
"svelte-preprocess": "^6.0.3", "svelte-preprocess": "^6.0.3",
"tailwindcss": "^3.4.17", "tailwindcss": "^3.4.17",
"terser": "^5.39.0", "terser": "^5.39.2",
"tslib": "^2.8.1", "tslib": "^2.8.1",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"vite": "^6.3.5", "vite": "^6.3.5",