diff --git a/.changeset/revalidate-tag-unconfirmed-write.md b/.changeset/revalidate-tag-unconfirmed-write.md deleted file mode 100644 index b2ef898..0000000 --- a/.changeset/revalidate-tag-unconfirmed-write.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@leejpsd/nextjs-cache-handler": patch ---- - -`cacheHandler` (singular): `revalidateTag` no longer resolves when the tag state could not be written because there is no Redis connection (failed initialization or the reconnect cooldown). It previously returned normally and emitted a `tag.invalidate.*` metric with `backend: "redis"`, so a caller could not tell an unwritten invalidation from a confirmed one while other instances kept serving the old entry (#13). It now rejects, exactly as it already did when the write itself failed or timed out, and no success metric is emitted. The invalidation is still applied in the calling process first. Memory-only modes (`fallback: "always"`, build phase, `instance-local:` tags) are unchanged. diff --git a/CHANGELOG.md b/CHANGELOG.md index 95ca4f2..2f40f9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.0.3 + +### Patch Changes + +- [#23](https://github.com/leejpsd/nextjs-cache-handler/pull/23) [`e3a1d9a`](https://github.com/leejpsd/nextjs-cache-handler/commit/e3a1d9aa9eb16a20e14e1eaf54dcf05f3f689087) Thanks [@leejpsd](https://github.com/leejpsd)! - `cacheHandler` (singular): `revalidateTag` no longer resolves when the tag state could not be written because there is no Redis connection (failed initialization or the reconnect cooldown). It previously returned normally and emitted a `tag.invalidate.*` metric with `backend: "redis"`, so a caller could not tell an unwritten invalidation from a confirmed one while other instances kept serving the old entry (#13). It now rejects, exactly as it already did when the write itself failed or timed out, and no success metric is emitted. The invalidation is still applied in the calling process first. Memory-only modes (`fallback: "always"`, build phase, `instance-local:` tags) are unchanged. + ## 1.0.2 ### Patch Changes diff --git a/package.json b/package.json index 4abb693..1c5586f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@leejpsd/nextjs-cache-handler", - "version": "1.0.2", + "version": "1.0.3", "description": "Redis cache handler for Next.js 15/16 — the only one shipping both cacheHandler (ISR) and cacheHandlers ('use cache') with built-in compression, Redis Sentinel, and OpenTelemetry. Production-validated on multi-instance AWS: reconnect backoff, cross-instance tag invalidation, zero-downtime Redis failover.", "keywords": [ "next",