openvibers/openvibe.shared Commits
Bump openvibe-shared to 2.5.0 and date the changelog entry (#9)
Changes
@@@ -6,6 +6,8 @@ A release is the git tag `vX.Y.Z`; consumers pin the tag's tarball (see README).## Unreleased++## 2.5.0 — 2026-10-02++- `seo.feedXml(feed, { format })` takes items as `{ title, link, guid?, description?, content?, author?,published, updated? }` and the feed's `language` and `selfUrl`. RSS adds `<language>`, an`atom:link rel="self"` and a `lastBuildDate` that is always present. Atom adds@@@ -1,12 +1,12 @@{"name": "openvibe-shared",-- "version": "2.4.0",++ "version": "2.5.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "openvibe-shared",-- "version": "2.4.0",++ "version": "2.5.0","license": "MIT","bin": {"openvibe-build-assets": "scripts/build-assets.js"@@@ -1,6 +1,6 @@{"name": "openvibe-shared",-- "version": "2.4.0",++ "version": "2.5.0","description": "Shared navbar, footer, themes, icons, legal pages, SEO, auth and analytics for every OpenVibe site","main": "index.js","bin": {@@@ -28,6 +28,13 @@ function main(args) {}}replace(target);++ // Pin the scaffold to the release that generated it, not to the tag typed in the template: the++ // template must keep naming a published tag (pin drift checks tracked files before a new tag exists).++ const version = require(path.join(__dirname, '..', 'package.json')).version;++ const pkgFile = path.join(target, 'package.json');++ const pkg = JSON.parse(fs.readFileSync(pkgFile, 'utf8'));++ pkg.dependencies['openvibe-shared'] = pkg.dependencies['openvibe-shared'].replace(/\/v\d+\.\d+\.\d+$/, `/v${version}`);++ fs.writeFileSync(pkgFile, JSON.stringify(pkg, null, 2) + '\n');console.log(`Created ${target}`);}
@@ -6,6 +6,8 @@ A release is the git tag `vX.Y.Z`; consumers pin the tag's tarball (see README).
@@ -6,6 +6,8 @@ A release is the git tag `vX.Y.Z`; consumers pin the tag's tarball (see README).
## Unreleased
## Unreleased
+## 2.5.0 — 2026-10-02
+
- `seo.feedXml(feed, { format })` takes items as `{ title, link, guid?, description?, content?, author?,
- `seo.feedXml(feed, { format })` takes items as `{ title, link, guid?, description?, content?, author?,
published, updated? }` and the feed's `language` and `selfUrl`. RSS adds `<language>`, an
published, updated? }` and the feed's `language` and `selfUrl`. RSS adds `<language>`, an
`atom:link rel="self"` and a `lastBuildDate` that is always present. Atom adds
`atom:link rel="self"` and a `lastBuildDate` that is always present. Atom adds
@@ -1,12 +1,12 @@
@@ -1,12 +1,12 @@
{
{
"name": "openvibe-shared",
"name": "openvibe-shared",
- "version": "2.4.0",
+ "version": "2.5.0",
"lockfileVersion": 3,
"lockfileVersion": 3,
"requires": true,
"requires": true,
"packages": {
"packages": {
"": {
"": {
"name": "openvibe-shared",
"name": "openvibe-shared",
- "version": "2.4.0",
+ "version": "2.5.0",
"license": "MIT",
"license": "MIT",
"bin": {
"bin": {
"openvibe-build-assets": "scripts/build-assets.js"
"openvibe-build-assets": "scripts/build-assets.js"
@@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
{
{
"name": "openvibe-shared",
"name": "openvibe-shared",
- "version": "2.4.0",
+ "version": "2.5.0",
"description": "Shared navbar, footer, themes, icons, legal pages, SEO, auth and analytics for every OpenVibe site",
"description": "Shared navbar, footer, themes, icons, legal pages, SEO, auth and analytics for every OpenVibe site",
"main": "index.js",
"main": "index.js",
"bin": {
"bin": {
@@ -28,6 +28,13 @@ function main(args) {
@@ -28,6 +28,13 @@ function main(args) {
}
}
}
}
replace(target);
replace(target);
+ // Pin the scaffold to the release that generated it, not to the tag typed in the template: the
+ // template must keep naming a published tag (pin drift checks tracked files before a new tag exists).
+ const version = require(path.join(__dirname, '..', 'package.json')).version;
+ const pkgFile = path.join(target, 'package.json');
+ const pkg = JSON.parse(fs.readFileSync(pkgFile, 'utf8'));
+ pkg.dependencies['openvibe-shared'] = pkg.dependencies['openvibe-shared'].replace(/\/v\d+\.\d+\.\d+$/, `/v${version}`);
+ fs.writeFileSync(pkgFile, JSON.stringify(pkg, null, 2) + '\n');
console.log(`Created ${target}`);
console.log(`Created ${target}`);
}
}