From ec23de90b901d856f554494be97ac9d3476275be Mon Sep 17 00:00:00 2001 From: "Peter.Morton" Date: Thu, 23 Apr 2026 19:07:51 -0500 Subject: [PATCH] chore: release v0.4.0 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- CHANGELOG.md | 20 ++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 781b8cc..d234235 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,26 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm --- +## [0.4.0] - 2026-04-23 + +### Added + +- Sitemap pagination via `hydra:view['hydra:last']`: after the first search page, all subsequent pages are fetched in parallel using the correct 0-based item-index `start` model (`start = size, 2×size, …, lastStart`); when all results fit on one page (`hydra:view` absent) no additional requests are made +- Latest `vkm:datePublished` selection per `SearchResultItem`: when a search result contains multiple content fragments, only the fragment with the most recent `vkm:datePublished` is included in the sitemap; fragments without a date are treated as epoch 0 +- Sitemap URL cap: output is limited to 50,000 `` entries per the [Sitemaps protocol](https://www.sitemaps.org/protocol.html); a `warn` log is emitted when results are truncated +- Full HTML document wrapper for content fetch responses: body is now `…` instead of a bare `articleBody` fragment +- `` element populated from the `vkm:name` field of the fetched article (empty `<title>` when `vkm:name` is absent) + +### Changed + +- `oidcAuthFlow` route removed: requests that do not match `?kmeURL=` or `/sitemap.xml` now return `404 Not Found` + +### Fixed + +- `proxyBaseUrl` is now derived dynamically from the incoming request (`X-Forwarded-Proto`, `X-Forwarded-Host`, `Host` headers) rather than read from settings, ensuring correct `` URLs in all deployment environments + +--- + ## [0.3.0] - 2026-04-23 ### Added diff --git a/package-lock.json b/package-lock.json index 8060351..0a79baf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "kme-content-adapter", - "version": "1.0.0", + "version": "0.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "kme-content-adapter", - "version": "1.0.0", + "version": "0.4.0", "license": "ISC", "dependencies": { "axios": "^1.13.6", diff --git a/package.json b/package.json index 17172a1..684644b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kme-content-adapter", - "version": "0.3.0", + "version": "0.4.0", "description": "HTTP proxy adapter to search and export documents from KME", "type": "module", "main": "src/server.js",