From 669fa2a830075cfbec7148f369ef2b02b0d5eb4d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 07:19:10 +0000 Subject: [PATCH] Version Packages --- .changeset/calm-rivers-flow.md | 13 ------------- .changeset/middleware-cache-handler.md | 5 ----- CHANGELOG.md | 16 ++++++++++++++++ package.json | 2 +- 4 files changed, 17 insertions(+), 19 deletions(-) delete mode 100644 .changeset/calm-rivers-flow.md delete mode 100644 .changeset/middleware-cache-handler.md diff --git a/.changeset/calm-rivers-flow.md b/.changeset/calm-rivers-flow.md deleted file mode 100644 index b4d170e..0000000 --- a/.changeset/calm-rivers-flow.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@web-widget/shared-cache': minor ---- - -Fix 304 revalidation persistence so background revalidation with `304 Not Modified` stores the revalidated policy instead of rebuilding from stale response headers (restores fresh `HIT` on subsequent requests). - -Add `UPDATING` cache status for `stale-while-revalidate` (aligns with Cloudflare CDN semantics; `STALE` is reserved for `stale-if-error`). - -Return `304 Not Modified` from `Cache.match()` when conditional request headers (`If-None-Match`, `If-Modified-Since`) match a fresh cached entry. - -Percent-encode `x-cache-key` header values so cache keys with control characters or non-Latin-1 Unicode are valid HTTP header field values. - -Strip persisted `Age` from stored policy metadata on read for compatibility with entries written before the revalidation fix. diff --git a/.changeset/middleware-cache-handler.md b/.changeset/middleware-cache-handler.md deleted file mode 100644 index aee5882..0000000 --- a/.changeset/middleware-cache-handler.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@web-widget/shared-cache": minor ---- - -Add middleware-friendly `resolveWithCache` and `createCacheHandler` APIs with phase-aware origin error handling. diff --git a/CHANGELOG.md b/CHANGELOG.md index 858dea4..1469fab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # @web-widget/shared-cache +## 1.9.0 + +### Minor Changes + +- e7a9731: Fix 304 revalidation persistence so background revalidation with `304 Not Modified` stores the revalidated policy instead of rebuilding from stale response headers (restores fresh `HIT` on subsequent requests). + + Add `UPDATING` cache status for `stale-while-revalidate` (aligns with Cloudflare CDN semantics; `STALE` is reserved for `stale-if-error`). + + Return `304 Not Modified` from `Cache.match()` when conditional request headers (`If-None-Match`, `If-Modified-Since`) match a fresh cached entry. + + Percent-encode `x-cache-key` header values so cache keys with control characters or non-Latin-1 Unicode are valid HTTP header field values. + + Strip persisted `Age` from stored policy metadata on read for compatibility with entries written before the revalidation fix. + +- 2aeb468: Add middleware-friendly `resolveWithCache` and `createCacheHandler` APIs with phase-aware origin error handling. + ## 1.8.0 ### Minor Changes diff --git a/package.json b/package.json index dbca7ad..e8205bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@web-widget/shared-cache", - "version": "1.8.0", + "version": "1.9.0", "description": "Standards-compliant HTTP cache implementation for server-side JavaScript with RFC 7234 compliance and cross-runtime support", "keywords": [ "cache",