openvibers/openvibe.publishing Commits

openvibe-shared v4.197.0 (was v4.186.0) (#209)

OP OpenVibers committed 3 days ago · 9081490185 · 6 files, +11 −9

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

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

* Fix layout test for Shared 4.190.0's one navbar mount

openvibe-shared 4.190.0 fills the page's own #navbar-mount with the server
nav in place instead of prepending a second mount, so the skip link is no
longer followed by an empty placeholder. Assert the mount opens there and
leave the server-nav links to the next assertion.

Changes

ddiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
iindex 9b34997..9b0fc3f 100644
---- a/.github/workflows/ci.yml
++++ b/.github/workflows/ci.yml
@@@ -32,4 +32,4 @@ jobs:
"
# Secret scan (gitleaks) and dependency audit, shared by every OpenVibers repo.
security:
-- uses: OpenVibers/OpenVibe.Shared/.github/workflows/security.yml@e80c595ff3d4bc46b7e0f41fdb040b985885cb30
++ uses: OpenVibers/OpenVibe.Shared/.github/workflows/security.yml@15b927b7d9fe35fe64ee4b7f3b4792b46ebdbddb
ddiff --git a/README.md b/README.md
iindex ed3005d..6337d4f 100644
---- a/README.md
++++ b/README.md
@@@ -429,5 +429,5 @@ eval "$(node_modules/openvibe-sdk/scripts/test-services.sh up)" && fnm exec --us
<!-- versions:start -->
- openvibe-contracts: v0.384.0
- openvibe-sdk: v0.125.0
--- openvibe-shared: v4.186.0
++- openvibe-shared: v4.197.0
<!-- versions:end -->
ddiff --git a/STATUS.json b/STATUS.json
iindex f65a2b0..3ee1433 100644
---- a/STATUS.json
++++ b/STATUS.json
@@@ -52,7 +52,7 @@
"exitProof": "examples/two-products + test/two-products.test.js",
"contracts": "openvibe-contracts v0.384.0 (devDependency): emits search.index-document@1 and events.event-envelope@1 (validated in tests)",
"sdk": "openvibe-sdk v0.125.0",
-- "shared": "openvibe-shared v4.186.0",
++ "shared": "openvibe-shared v4.197.0",
"dependsOn": [
"openvibe-sdk >=0.15.0 (peer; tests pin v0.60.0)",
"openvibe-shared >=1.5.0 (optional peer; tests pin v4.4.0; layout needs >=2.6.0)",
ddiff --git a/package-lock.json b/package-lock.json
iindex c4094b1..baa517a 100644
---- a/package-lock.json
++++ b/package-lock.json
@@@ -14,7 +14,7 @@
"ajv-formats": "^3.0.1",
"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.186.0",
++ "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.197.0",
"pg": "^8.23.0"
},
"engines": {
@@@ -563,9 +563,9 @@
}
},
"node_modules/openvibe-shared": {
-- "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==",
++ "version": "4.197.0",
++ "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.197.0",
++ "integrity": "sha512-qlZ/S5cHnfeqzUnzuadQc6FrSW6VvRImigBs5LwZA0ydROJMN6WUR4D6PRuWcweksLXEyoqn/tSnLFOx/qRLMA==",
"dev": true,
"license": "MIT",
"dependencies": {
ddiff --git a/package.json b/package.json
iindex 3ff3217..0091fde 100644
---- a/package.json
++++ b/package.json
@@@ -58,7 +58,7 @@
"ajv-formats": "^3.0.1",
"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.186.0",
++ "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.197.0",
"pg": "^8.23.0"
}
}
ddiff --git a/test/layout.test.js b/test/layout.test.js
iindex 5e9bbc7..aa0bfe2 100644
---- a/test/layout.test.js
++++ b/test/layout.test.js
@@@ -42,7 +42,9 @@ test('renderDocument composes one whole document through openvibe-shared/shell',
assert.match(out, /OpenVibeNavbar\.init\(/);
assert.match(out, /OpenVibeFooter\.init\(window\.__OV_PAGE\.footer\)/);
assert.match(out, /window\.__OV_PAGE = \{"navbar":\{"service":"news"/);
-- assert.match(out, /<a class="skip" href="#main">Skip to content<\/a>\n<div id="navbar-mount"><\/div>/);
++ // openvibe-shared 4.190.0 fills the page's own #navbar-mount with the server nav in place (shell.oneMount),
++ // so the skip link is followed by the bar itself rather than an empty placeholder; line 48 checks its links.
++ assert.match(out, /<a class="skip" href="#main">Skip to content<\/a>\n<div id="navbar-mount">/);
assert.match(out, /<noscript><div class="account-bar"[^>]*><a href="\/auth\/login">Sign in with OpenVibe<\/a><\/div><\/noscript>/);
assert.match(out, /<main id="main" class="page">\n<h1>A story<\/h1>\n<\/main>/);
assert.match(out, /<div id="navbar-mount"><nav class="openvibe-navbar"[^>]*data-ov-server-nav="true"[^>]*><a href="\/"[^>]*>OpenVibe\.News<\/a><a data-ov-nav-link="true" href="\/">News<\/a><a data-ov-nav-link="true" href="\/topics">Topics<\/a>/);