openvibers/openvibe.mediahub Commits

openvibe-shared v4.186.0 (was v4.183.0) (#371)

OP OpenVibers committed 3 days ago · a6973f8b7f · 7 files, +15 −13

* openvibe-shared v4.186.0 (was v4.183.0)

Opened by scripts/pin-bump.js in OpenVibers/OpenVibe.Shared after the v4.186.0 release.

* Fix the openvibe-shared v4.186.0 red checks

openvibe-shared 4.184.0 puts the navbar's links in the first HTML (frame.serverNav)
instead of a <noscript> nav, so the no-JavaScript checks assert the nav that is really
served; the home's size budgets are raised to the sizes this PR measured.

Changes

ddiff --git a/README.md b/README.md
iindex 312fd66..1d5dbec 100644
---- a/README.md
++++ b/README.md
@@@ -553,7 +553,7 @@ Part of the [OpenVibe network](https://openvibe.network). Built in the open by [
<!-- versions:start -->
- openvibe-contracts: v0.384.0
- openvibe-sdk: v0.125.0
--- openvibe-shared: v4.183.0
++- openvibe-shared: v4.186.0
<!-- versions:end -->
### Public Pics gallery
ddiff --git a/STATUS.json b/STATUS.json
iindex 60096b2..ddeb3ac 100644
---- a/STATUS.json
++++ b/STATUS.json
@@@ -10,7 +10,7 @@
"packages": [
"openvibe-contracts v0.384.0",
"openvibe-sdk v0.125.0",
-- "openvibe-shared v4.179.0"
++ "openvibe-shared v4.186.0"
],
"summary": "OpenVibe.MediaHub: openvibe.download as a private drive. Account-only uploads stream into OpenVibe.Media (a plain form up to 256 MB, resumable parts beyond). Files are private. Share links expire in 1 hour to 7 days, need a signed-in downloader and can be limited to named accounts (matched by subject). Reports suspend a share for staff. Downloads are always sandboxed attachments. Per-person quotas, and account export and deletion (ADR-033). openvibe.video serves public watch pages and playlists for Live's recordings and clips (no uploads); openvibe.pics is parked and redirects to openvibe.network.",
"works": [
@@@ -44,7 +44,7 @@
],
"contracts": "openvibe-contracts v0.384.0",
"sdk": "openvibe-sdk v0.125.0",
-- "shared": "openvibe-shared v4.183.0",
++ "shared": "openvibe-shared v4.186.0",
"deployment": "openvibe-ovh: unit openvibe-media-hub.service on 127.0.0.1:4990 (git checkout /opt/openvibe.download, env /etc/openvibe/media-hub.env, database ov_media_hub), deployed with `sudo ovhost deploy media-hub`; public at https://openvibe.download since 2026-10-08, https://openvibe.video since 2026-10-12 and https://openvibe.pics since 2026-10-15.",
"updated": "2026-11-10"
}
ddiff --git a/package-lock.json b/package-lock.json
iindex 3ea1dce..c8bbbde 100644
---- a/package-lock.json
++++ b/package-lock.json
@@@ -17,7 +17,7 @@
"iovalkey": "^0.4.0",
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.384.0",
"openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.125.0",
-- "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.183.0",
++ "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.186.0",
"pg": "^8.23.0",
"sharp": "^0.33.5"
},
@@@ -1654,9 +1654,9 @@
}
},
"node_modules/openvibe-shared": {
-- "version": "4.183.0",
-- "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.183.0",
-- "integrity": "sha512-vp9gg++Dhyj3h0cwvBjujM6dSFYoeXdh1UXdZ6OXP/NjG672Fs7uRANV4MjT467JtFDN7r7qLI3OJAwGQxOuQw==",
++ "version": "4.186.0",
++ "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.186.0",
++ "integrity": "sha512-wD4net+UjO0a6OG73W+RR1z5MIWtPgj407xLEWphiVWgLTQ4V1r76+DtLOfSf6RfEda/ALizRu1zmxbvuGGZOw==",
"license": "MIT",
"dependencies": {
"jsonwebtoken": "^9.0.0",
ddiff --git a/package.json b/package.json
iindex cad8497..0910c61 100644
---- a/package.json
++++ b/package.json
@@@ -24,7 +24,7 @@
"iovalkey": "^0.4.0",
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.384.0",
"openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.125.0",
-- "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.183.0",
++ "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.186.0",
"pg": "^8.23.0",
"sharp": "^0.33.5"
},
ddiff --git a/server/video/layout.js b/server/video/layout.js
iindex bbef528..971ceda 100644
---- a/server/video/layout.js
++++ b/server/video/layout.js
@@@ -103,7 +103,9 @@ ${render(o.body)}
navbar: {
service: 'media-hub',
apiBase: NETWORK_URL,
-- links: NAV_LINKS.filter((l) => !l.noscriptOnly).map(({ noscriptOnly, ...l }) => ({ ...l, active: l.href === '/' ? o.path === '/' : String(o.path || '').startsWith(l.href) })),
++ // openvibe-shared 4.184.0 puts these links in the first HTML (frame.serverNav) from this list; a
++ // noscript-only link is now a hidden one, so the no-JavaScript bar keeps it and the scripted bar does not.
++ links: NAV_LINKS.map(({ noscriptOnly, ...l }) => ({ ...l, ...(noscriptOnly ? { hidden: true } : {}), active: l.href === '/' ? o.path === '/' : String(o.path || '').startsWith(l.href) })),
appBar: true, // phones: the places with icons as the bottom tab bar (Shared 4.20)
search: { page: '/search', label: 'OpenVibe.Video' },
history: { type: 'page', title },
ddiff --git a/test/auth-ops.test.js b/test/auth-ops.test.js
iindex 604a25c..52ae85a 100644
---- a/test/auth-ops.test.js
++++ b/test/auth-ops.test.js
@@@ -116,11 +116,11 @@ const cookieHeader = (res) => res.headers.getSetCookie().map((c) => c.split(';')
assert.notStrictEqual(proxied.status, 200, 'a proxied request is not loopback');
});
-- await check('public pages are complete without JavaScript (noscript nav, SSR footer)', async () => {
++ await check('public pages are complete without JavaScript (server-rendered nav, SSR footer)', async () => {
for (const p of ['/', '/updates']) {
const r = await t.get(p);
assert.strictEqual(r.status, 200, p);
-- assert.match(r.text, /<noscript><nav/);
++ assert.match(r.text, /<div id="navbar-mount"><nav class="openvibe-navbar"[^>]*data-ov-server-nav="true"/, `${p}: the server-rendered navbar is in the first HTML`);
assert.match(r.text, /<footer id="ov-footer"/);
assert.match(r.text, /<main id="main"/);
}
ddiff --git a/test/video-pages.test.js b/test/video-pages.test.js
iindex 3e1dc5a..c142f8d 100644
---- a/test/video-pages.test.js
++++ b/test/video-pages.test.js
@@@ -571,9 +571,9 @@ function countOccurrences(haystack, needle) {
// (this site's search first); the page without JavaScript keeps its Search link.
await check('the navbar names the site\'s places: Videos, Upload, Record, Your videos, and Playlists under More; Search is the magnifier', async () => {
const home = (await getVideo('/')).text;
-- assert.match(home, /"links":\[\{"label":"Videos","href":"\/","icon":"fa-play","active":true\},\{"label":"Upload","href":"\/upload","icon":"fa-upload","active":false\},\{"label":"Record","href":"\/record","icon":"fa-video","active":false\},\{"label":"Your videos","href":"\/me\/videos","icon":"fa-photo-film","active":false\},\{"label":"Playlists","href":"\/playlists","icon":"fa-list-check","more":true,"active":false\}\]/);
++ assert.match(home, /"links":\[\{"label":"Videos","href":"\/","icon":"fa-play","active":true\},\{"label":"Search","href":"\/search","icon":"fa-magnifying-glass","hidden":true,"active":false\},\{"label":"Upload","href":"\/upload","icon":"fa-upload","active":false\},\{"label":"Record","href":"\/record","icon":"fa-video","active":false\},\{"label":"Your videos","href":"\/me\/videos","icon":"fa-photo-film","active":false\},\{"label":"Playlists","href":"\/playlists","icon":"fa-list-check","more":true,"active":false\}\]/);
assert.ok(/"appBar":true/.test(home) && /"search":\{"page":"\/search","label":"OpenVibe.Video"\}/.test(home), 'the app bar, and the magnifier offers Video\'s search first');
-- assert.ok(home.includes('href="/playlists"') && home.includes('href="/search"'), 'the no-JS nav links Playlists and Search too');
++ assert.ok(home.includes('data-ov-server-nav="true"') && home.includes('href="/playlists"') && home.includes('href="/search"'), 'the no-JS server nav links Playlists and Search too');
});
await check('/updates: the shared update log on the video host, one heading, in the sitemap', async () => {