@leejpsd/nextjs-cache-handler 0.4.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`3c064b5`](https://github.com/leejpsd/nextjs-cache-handler/commit/3c064b549778833a85e817885ff9fd6dde85d66e) Thanks [@leejpsd](https://github.com/leejpsd)! - 1.0 — the public API is now stable under semver.
8
+
9
+ Nothing changes for existing 0.4.x users: there are no breaking changes in this release. The version bump is a commitment, not a rewrite. From here, anything that would break a working setup waits for 2.0.
10
+
11
+ What that commitment covers:
12
+ - The eight entry points and everything they export, all of which are now documented in [`docs/api.md`](./docs/api.md) — including the SWR helpers (`partitionEntry`, `shouldServeStale`) that had been exported since 0.1 without being written down.
13
+ - `CacheHandlerOptions` and its twelve options.
14
+ - Redis key shapes and the tag-marker wire format, so mixed-version fleets stay readable in both directions during a rolling deploy.
15
+ - Metric event names.
16
+
17
+ Why now: the handler has been running against a real multi-instance deployment (24h live-traffic soak, plus a Redis-reboot drill with zero 5xx), both cache interfaces are exercised end-to-end against Next.js 16.3 stable, and the tag-invalidation semantics were re-derived from the Next.js source and corrected in 0.4.2. The remaining roadmap items (Vercel KV / Upstash adapters, `'use cache: remote'` multi-tier, a `neshClassicCache` equivalent) are additive and do not need a breaking change to land.
18
+
3
19
  ## 0.4.2
4
20
 
5
21
  ### Patch Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![npm](https://img.shields.io/npm/v/@leejpsd/nextjs-cache-handler.svg)](https://www.npmjs.com/package/@leejpsd/nextjs-cache-handler)
4
4
  [![license](https://img.shields.io/npm/l/@leejpsd/nextjs-cache-handler.svg)](./LICENSE)
5
5
 
6
- > **`v0.4.2`** — install with
6
+ > **`v1.0.0`** — install with
7
7
  > `npm install @leejpsd/nextjs-cache-handler`, or wire everything with
8
8
  > `npx nextjs-cache-handler init --yes`. Production-validated against
9
9
  > AWS ECS Fargate with multi-instance Redis (24h live-traffic soak and a
@@ -15,8 +15,9 @@
15
15
  > HIT), **pub/sub tag propagation** (~3ms cross-instance), **Redis Cluster**
16
16
  > e2e in CI, a **CLI** (`init` / `doctor` / `seed`), and agent-native assets
17
17
  > (skill, rules, [MCP server](https://www.npmjs.com/package/@leejpsd/nextjs-cache-handler-mcp)).
18
- > 0.4.2 aligns tag invalidation exactly with upstream semantics
19
- > (`updateTag()` hard vs `revalidateTag(tag, "max")` soft — see CHANGELOG).
18
+ > 1.0 freezes the public API under semver — the eight entry points, the
19
+ > `CacheHandlerOptions` surface, the Redis key shapes and tag-marker format,
20
+ > and the metric event names. Upgrading from 0.4.x needs no changes.
20
21
 
21
22
  ## 🤖 For AI agents
22
23
 
@@ -431,8 +432,10 @@ ESM and CJS dual-published, full TypeScript types, validated via
431
432
  `updateTags` is hard (`updateTag()` read-your-own-writes), profile
432
433
  durations are soft with a real hard deadline; tag-stale entries are
433
434
  served with `revalidate: -1` instead of a backdated timestamp ✅
434
- - **v0.5** — Vercel KV / Upstash adapter, `'use cache: remote'` multi-tier
435
- setup, `neshClassicCache` equivalent
435
+ - **v1.0.0** *(2026-08)* — public API frozen under semver; every export
436
+ documented in [`docs/api.md`](./docs/api.md) ✅
437
+ - **Next** — Vercel KV / Upstash adapters, `'use cache: remote'` multi-tier
438
+ setup, `neshClassicCache` equivalent. All additive; no 2.0 needed.
436
439
 
437
440
  ---
438
441
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leejpsd/nextjs-cache-handler",
3
- "version": "0.4.2",
3
+ "version": "1.0.0",
4
4
  "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.",
5
5
  "keywords": [
6
6
  "next",