Conversation
Set the root version to 6.1.0 and ran `pnpm version:sync`, so all 21 workspace packages match. 6.1.0 is the first stable v6 version: npm still records keyv@6.0.0 as published, so that number can't be published again. The publish job already sets LATEST_MAJOR to 6 (#2148), so a stable 6.1.0 release stages every package under `latest`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cwt8ciN4uKrQkEM14TCff2
- versioning.md: from 6.1.0 `latest` is v6, and there is no 6.0.0
release. Releases from the v5 line get a `v{major}-lts` tag, `keyv@6`
resolves to the newest stable 6.x, and the pre-release tags still
point at 6.0.0 pre-releases. v6 is an LTS line alongside v5, so
breaking changes land in v7, and v6's Node.js floor stays 22.19.0.
- v5-to-v6.md: the version examples use 6.1.0, and v5 is in
maintenance mode now rather than later.
- README.md: v6 is the current stable release.
- CONTRIBUTING.md: the LATEST_MAJOR bump next applies to 7.0.0.
- release-publish.ts: the header no longer says v6 is in beta.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cwt8ciN4uKrQkEM14TCff2
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
"should keep a successful connection alive after connectionTimeout elapses" connected to a real Redis with `connectionTimeout: 50`, so the TCP connect and the handshake had 50 ms to finish. Under the parallel test load in CI they sometimes take longer, the connect times out, and the test fails with "Redis timed out after 50ms". That happened in the codecov job on main at 6d4b270 and on #2192. The test now uses 500 ms, the budget the other tests that connect to a real server use, and waits 600 ms instead of 120 ms, so it still idles past the timeout before it uses the connection. Reproduced locally with a TCP proxy that adds 40 ms to every chunk: the old test fails with the same error, and the new one passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cwt8ciN4uKrQkEM14TCff2
|
This PR didn't cause it. The PR doesn't touch any redis code, and the same test failed the same way on The fix is in #2193 (it gives the connect 500 ms). I've ported the same commit here as d16fffe, because the release workflow's Generated by Claude Code |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2192 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 56 56
Lines 5802 5802
Branches 996 996
=========================================
Hits 5802 5802 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
A 500 ms budget only made the keep-alive test less likely to fail: a handshake that takes longer still loses the race. Through a proxy that adds 250 ms to every chunk, the 500 ms version fails with "Redis timed out after 500ms". Keyv times the connect with a JS setTimeout, so the test now fakes setTimeout and clearTimeout while it connects. The race can't time out, however long the handshake takes, and the test moves the clock past the timeout instead of sleeping, so it runs in about 50 ms instead of 600 ms. node-redis's TCP connectTimeout runs on Node's internal timers, which stay real, so connectionTimeout is now 1 s, the window the other tests that use the server's clock got in #2182. The test also checks that the same client is still open after the timeout. Before, a client torn down when the timeout elapsed went unnoticed, because the adapter reconnects on the next call. A timer that destroys the client after the timeout now fails the test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cwt8ciN4uKrQkEM14TCff2
#2193) * redis - test: Give the keep-alive test time to connect on a busy runner "should keep a successful connection alive after connectionTimeout elapses" connected to a real Redis with `connectionTimeout: 50`, so the TCP connect and the handshake had 50 ms to finish. Under the parallel test load in CI they sometimes take longer, the connect times out, and the test fails with "Redis timed out after 50ms". That happened in the codecov job on main at 6d4b270 and on #2192. The test now uses 500 ms, the budget the other tests that connect to a real server use, and waits 600 ms instead of 120 ms, so it still idles past the timeout before it uses the connection. Reproduced locally with a TCP proxy that adds 40 ms to every chunk: the old test fails with the same error, and the new one passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cwt8ciN4uKrQkEM14TCff2 * redis - test: Fake the connect timer instead of racing it A 500 ms budget only made the keep-alive test less likely to fail: a handshake that takes longer still loses the race. Through a proxy that adds 250 ms to every chunk, the 500 ms version fails with "Redis timed out after 500ms". Keyv times the connect with a JS setTimeout, so the test now fakes setTimeout and clearTimeout while it connects. The race can't time out, however long the handshake takes, and the test moves the clock past the timeout instead of sleeping, so it runs in about 50 ms instead of 600 ms. node-redis's TCP connectTimeout runs on Node's internal timers, which stay real, so connectionTimeout is now 1 s, the window the other tests that use the server's clock got in #2182. The test also checks that the same client is still open after the timeout. Before, a client torn down when the timeout elapsed went unnoticed, because the adapter reconnects on the next call. A timer that destroys the client after the timeout now fails the test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cwt8ciN4uKrQkEM14TCff2 --------- Co-authored-by: Claude <noreply@anthropic.com>
Brings in #2193, which this branch already carried as d16fffe and 538c8d0, so the release diff is the version bump and docs again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cwt8ciN4uKrQkEM14TCff2
Please check if the PR fulfills these requirements
What kind of change does this PR introduce?
Release. Promotes the 6.0 line from release candidate to 6.1.0, the first stable v6 release. It goes to npm's
latesttag, and v6 becomes an LTS line alongside v5.Release summary
6.0.0-rc.1to6.1.0withpnpm version:sync(20 published packages, plus the private@keyv/websiteand the root).6.0.0as published for every package, so that number can't be published again.LATEST_MAJORis already6(mono - fix: stage stable v6 releases under latest, not v6-lts #2148), so a stable 6.1.0 release stages every package underlatest.versioning.md: dist-tags after the switch;keyv@6now resolves; v6 is an LTS line, so breaking changes land in v7; v6's Node.js floor is 22.19.0.v5-to-v6.md: version examples now use 6.1.0.CONTRIBUTING.mdexample and therelease-publish.tsheader.v6.0.0-rc.1.getClient > should keep a successful connection alive after connectionTimeout elapsesraced a 50 ms timer and failedcodecovhere and onmain. The release workflow'stestjob runs it too. The test now fakes Keyv's connect timer instead of racing it. Once redis - test: Stop the keep-alive test from racing the connect timeout #2193 merges, the change here is a no-op.Packages
All packages move in lockstep.
keyv+ all 19 published@keyv/*packages6.0.0-rc.16.1.0latest@keyv/website6.0.0-rc.16.1.0Release workflow readiness (checked locally against the live registry)
The staged-publish path (#2057, #2124) has never run. The last
releaserun was on Aug 4, so 6.1.0 is its first real use. I ran its steps locally first:DRY_RUN=true LATEST_MAJOR=6 pnpm tsx scripts/release-publish.tsproduces the plan below. All 20 packages are staged underlatest,keyvgoes first, and the downgrade guard passes for each one: every currentlatestis below 6.1.0. The highest is@keyv/cloudflare-kv@6.0.0-beta.4, one of the packages that are new in v6.pnpm --filter <name> pack --out ./packed/<name>.tgz. Then I ran its exactpnpm stage publish <tgz> --tag latest --no-git-checks --access public --provenance, adding--dry-runand pointing it at a dead local registry. pnpm 11.25.0 accepts every flag, and all 20 reportwould stage.6.1.0and akeyvpeer range of^6.1.0. None has a leftoverworkspace:range or install lifecycle scripts. The files are onlydist/,LICENSE,README.mdandpackage.json, plus the documentedscripts/migrate-v6.tsin mongo, mysql and postgres.concurrency.queue: max.release.mjspicks dist-tags from the registry, so oncelatestis 6.1.0 it stages v5-line releases underv{major}-ltswith no change.Verification
pnpm install --frozen-lockfile— the lockfile doesn't changepnpm buildpnpm test:scripts— 22 passedstorage/redisget-client.test.tsagainst a local Redis — 35 passed, plus the slow-handshake checks in redis - test: Stop the keep-alive test from racing the connect timeout #2193pnpm --filter @keyv/website test(100% coverage) andpnpm website:build; the new links and anchors resolvebiome check— clean (one info message about a deprecated config field, whichmainshows too)testjob run themPost-merge: releasing 6.1.0
Dry run first (recommended). Go to Actions →
release→ Run workflow onmainand leave Dry run on. This exercises build, the full test suite with services, the Aikido gate,test:scriptsand the plan, and stages nothing. GitHub Releases are immutable here, so finding a problem before tagging is cheaper than after.Order the pending v5 cut.
keyv@5.6.1and@keyv/sqlite@4.1.0are bumped onv5but not on npm. A version's dist-tag is fixed when it is staged and applied when it is approved, so don't interleave the two lines. Pick one order:keyv@5.6.1underv5-ltsand@keyv/sqlite@4.1.0underv4-lts.latest, then release 6.1.0.Never approve a v5 version staged as
latestafter 6.1.0 is approved: it would movelatestback to v5.Run
pnpm stage listand confirm nothing else is waiting in the queue.Create a GitHub Release with tag
v6.1.0onmainat this PR's merge commit, using the notes below. Don't mark it as a pre-release. Publishing it runsrelease.yaml, which stages the 20 packages underlatest.deploy-website.yamldeploys the docs at the same time.Approve the staged versions in one sitting,
keyvfirst (pnpm stage approve <id>…). Then check thatnpm view keyv dist-tagsshowslatest: '6.1.0', and spot-check an adapter.Optional, by hand with 2FA, because OIDC can't run
npm dist-tag:v5-ltsat the newest v5:npm dist-tag add keyv@5.6.1 v5-lts.nexttags (for examplekeyv@next→5.0.0-rc.1) withnpm dist-tag rm <pkg> next.alpha,betaandrccan stay. The docs say they point at 6.0.0 pre-releases until the next pre-release.Release notes (for the GitHub Release)
Paste everything below the line into the
v6.1.0GitHub Release, and replaceYYYY-MM-DDwith the release date. The list counts 97 PRs, including #2193, whose change ships with this release either way.keyv v6.1.0 — YYYY-MM-DD
First stable release of Keyv v6, now on npm's
latesttag. Keyv v5 continues in maintenance: releases from the v5 line no longer movelatest, andkeyv5.x releases are taggedv5-lts. To upgrade from v5, follow the v5 to v6 migration guide or point your coding agent at the keyv-migrate skill.Stable v6 starts at 6.1.0; there is no 6.0.0 release.
All 20 published packages (
keyvand 19@keyv/*packages) release in lockstep at this version.@keyv/websiteis private and not published.⚠ BREAKING CHANGES (since 6.0.0-rc.1)
These change behavior for projects already on 6.0.0-rc.1 ("rc.1" below). Coming from v5, start with the migration guide.
namespaceSeparatoron every adapter that joins the namespace and the key, and it defaults to::(d0bc310, mono - feat:namespaceSeparatoron every adapter, defaulting to::#2189)The old names have no alias:
keySeparatoronKeyvMemoryAdapterandKeyvBridgeAdapter, andkeyPrefixSeparatoron@keyv/redis,@keyv/etcd,@keyv/dynamoand@keyv/cloudflare-kv. The separator changed from:to::for the memory and bridge adapters, Etcd, DynamoDB, Cloudflare KV, Memcache and Valkey (namespace:<ns>::<key>,sets:<ns>::<key>). Redis already used::.KeyvStatsper-key maps such ashitKeysare keyednamespace::key.Migration: rename the option and property in your code. In plain JavaScript the old name is ignored. To keep reading namespaced entries rc.1 wrote, set
namespaceSeparator: ':'on the adapter. For a store that Keyv wraps for you, pass your own wrapper, as innew Keyv(new KeyvMemoryAdapter(store, { namespaceSeparator: ':' }), { namespace }), or setkeyv.store.namespaceSeparator = ':'. See Namespace Overhaul andkeyPrefixSeparatorIs NownamespaceSeparator.throwOnErrorsoption, getter and setter are removed, and every method follows the Node.jsEventEmittererror rule (860dba7, keyv - fix: follow the EventEmitter error rule and remove throwOnErrors #2155)With an
errorlistener attached, a failed call returns a fallback value. With none, it rejects.getMany(),getRaw(),getManyRaw()anditerator()now follow the rule too: with a listener they returnundefinedvalues, and the iterator ends, where rc.1 rejected. A failed read counts asstat:erroronly, no longer also asstat:miss.@keyv/redisreports a failure once, by rejecting or by emittingerror, and a failed connect withthrowOnConnectErrorrejects with the connection error ascause.Migration: remove
throwOnErrors. Attach anerrorlistener to get fallback values, or leave it off to get rejections.@keyv/rediskeeps its ownthrowOnErrorsandthrowOnConnectErroradapter options. See Error Handling Changed andthrowOnErrorsWas Removed.rc.1 replaced it with
undefined, so these setups wrote keys without a namespace: an adapter given a namespace directly, as innew Keyv(new KeyvRedis(uri, { namespace: 'app' }));createKeyv()from@keyv/memcacheor@keyv/etcdwith anamespaceoption; and@keyv/etcd'snamespaceoption, which its constructor ignored. They now use that namespace, andkeyv.namespacereturns it.KeyvBridgeAdapteralso keeps the namespace of a wrapped store that scopes its own keys.Migration: data rc.1 wrote in these setups has no namespace. To keep reading it, remove the namespace from the adapter, or let the data refill. A namespace passed to Keyv still takes precedence. See Namespace Overhaul.
clear()fails instead of wiping a store it can't scope (790eb3c, keyv - fix: a namespaced clear() fails instead of wiping a store it can't scope #2186)When
KeyvMemoryAdapterorKeyvBridgeAdapterhad a namespace but no way to list the store's keys, rc.1 called the store's ownclear()and deleted every namespace. Now nothing is deleted and Keyv emitserror, so the call rejects when no listener is attached.Migration: give the store
keys()(synchronous) oriterator()(async), or move it to the v6 adapter contract. To empty the whole store on purpose, callclear()on a Keyv instance without a namespace. AMap,quick-lru,lru.minand every v6 adapter are not affected. See A Namespacedclear()Fails When the Store Can't List Its Keys.rc.1 skipped encryption with
serialization: falseand stored values as plaintext. Nowset(),setMany(),setRaw()andsetManyRaw()store nothing, emiterror, and returnfalsewith a listener attached or reject without one. Reads are unchanged.Migration: keep serialization on, which is the default, when you use encryption. Values rc.1 wrote in that setup were stored unencrypted. See Encryption Adapters.
<namespace>:are stored as given (9dec04c, mono - fix: keys that start with the namespace no longer collide #2159)rc.1 treated such a key as already prefixed. In namespace
user, postgres, sqlite and mongo storedset('user:1')as1, and dynamo, cloudflare-kv and etcd stored it without adding their prefix, souser:1and1were one entry. Other keys are not affected.Migration: entries rc.1 wrote under such keys now sit under a different stored key and read as missing. Write them again after upgrading.
@keyv/encrypt-nodeacceptsaes-128-gcm,aes-192-gcm,aes-256-gcm,aes-128-ccm,aes-192-ccm,aes-256-ccmandchacha20-poly1305, withbase64,base64urlorhexoutput, typed asNodeAlgorithmandNodeEncoding.@keyv/encrypt-webaccepts onlyaes-128-gcm,aes-192-gcmandaes-256-gcm; AES-CBC is removed. Any other value throws when the adapter is created.Migration: the defaults (
aes-256-gcm,base64) are unchanged, and values written with a supported algorithm and encoding need no change. Values encrypted with any other algorithm or encoding can't be decrypted after the upgrade. To keep them, re-encrypt before you upgrade: on rc.1, read each value with your current settings and write it back with a supported algorithm and encoding. A cache can instead start empty and refill. See Encryption Adapters.sixHoursInMillisecondsis removed (476761d, dynamo - fix: clear() removes every scan page and keys without a ttl no longer expire #2161)rc.1 gave such keys an expiry six hours after the write.
Migration: for a default expiry, set Keyv's
ttloption, as innew Keyv(store, { ttl: 6 * 60 * 60 * 1000 }). Remove code that reads or assignsstore.sixHoursInMilliseconds. Keys rc.1 wrote keep their expiry until they are written again. See@keyv/dynamoKeys Without a TTL No Longer Expire.leaseproperty is removed, and the storettlapplies to each key from its own write (6ba3096, etcd - fix: default ttl applies per key and keeps working after the first lease expires #2160)Migration: remove code that reads or assigns
store.lease. See@keyv/etcdDefaultttlApplies Per Key.clear()anditerator()only touch entries Keyv wrote without a namespace (8a77946, etcd - fix: Without a namespace, clear() and iterator() only touch Keyv's own entries #2173)rc.1 deleted or returned every key in etcd. Values are now stored as
{ v, e, n }, wherenis the namespace they were written under. An entry rc.1 wrote has nonand counts as un-namespaced when its key has no separator. With the new::default, that includes entries rc.1 wrote under a namespace, such asusers:1.Migration: set
noNamespaceAffectsAll: trueto clear and iterate every key, as rc.1 did. While etcd still holds namespaced entries from rc.1, setnamespaceSeparator: ':'so aclear()without a namespace leaves them alone. See@keyv/etcdWithout a Namespace Only Clears Its Own Entries.clear()only removes the store's own entries, and values rc.1 wrote read as missing (12415c5, memcache - fix: clear() only removes the store's own entries #2179)Each namespace now has a generation token, every value is stored as
<token>:<value>, andclear()writes a new token instead of flushing the server. rc.1 flushed the whole server, with or without a namespace.Migration: let the cache fill again. To flush the whole server from a store without a namespace, set
noNamespaceAffectsAll: true; that store then writes values without a token. See@keyv/memcacheclear()Only Removes the Store's Own Entries.storeSizekeeps every entry and no longer emitsclear(b80b44d, bigmap - fix: Changing storeSize or storeHashFunction keeps every entry #2178)rc.1 emptied the map and emitted
clearwhenstoreSizechanged. SettingstoreSizeorstoreHashFunctionnow moves every entry to the store its key maps to. Before, a newstoreHashFunctionleft entries whereget()couldn't find them.Migration: if code sets
storeSizeto empty the map, callclear()as well. For a large map, setstoreSizeandstoreHashFunctionin the constructor. See@keyv/bigmapKeeps Entries WhenstoreSizeorstoreHashFunctionChanges.Features
add the
keyv-migrateAgent Skill, which coding agents follow to upgrade a project from Keyv v4 or v5 to v6. It is Markdown only, asks before it touches stored data, and is published at https://keyv.org/skills/migrate with a discovery index under/.well-known/skills/(bae30d5, mono - feat: Add keyv-migrate agent skill at keyv.org/skills/migrate and fix stale v6 docs #2171)Or tell your agent: "Upgrade this project to Keyv v6 using https://keyv.org/skills/migrate".
keyv, adapters:
namespaceSeparatoroption on every adapter that joins the namespace and the key: the memory and bridge adapters, Redis, Valkey, Etcd, DynamoDB, Cloudflare KV and Memcache. It is new on Memcache and Valkey, and Etcd and DynamoDB now also take it in their constructor options. The default is::; see Breaking Changes (d0bc310, mono - feat:namespaceSeparatoron every adapter, defaulting to::#2189)etcd, memcache:
noNamespaceAffectsAlloption brings back a whole-storeclear()for a store without a namespace, like@keyv/redis(8a77946, etcd - fix: Without a namespace, clear() and iterator() only touch Keyv's own entries #2173; 12415c5, memcache - fix: clear() only removes the store's own entries #2179)mongo:
scripts/migrate-v6.ts, shipped in the package, converts documents written by Keyv v5 so v6 can read them. It supports--dry-runand--gridfsand is safe to rerun (4068b0a, mongo - fix: add a v6 migration script so v5 documents stay readable #2152)redis:
createKeyv()accepts cluster and sentinel options in its types (cab81d2, redis - refactor: v6 client swap, API docs, and test uniformity #2062)Bug Fixes
asyncfunctions, such as an adapter compiled to ES2016, goes throughKeyvBridgeAdapter. rc.1 treated it as aMap, soset()returnedtrueandget()returnedundefined(9c82ca3, keyv - fix: route promise-based stores without async methods through the bridge #2157)keyv-sanitizedinstead of turning namespacing off (3462350, keyv - fix: strip sanitizer patterns until none remain #2158)expiresthat isn't a finite number means no store-level expiry (82daf5d, mono - fix: fractional TTLs no longer fail writes, and postgres disconnect releases the pool it connected with #2168)KeyvBridgeAdapter.setMany()reports the writes a wrapped store rejects instead oftruefor every entry (b06ec8b, mono - fix: authenticated ciphers only, bridge setMany() results, serializer __proto__ #2187)__proto__key instead of dropping it (b06ec8b, mono - fix: authenticated ciphers only, bridge setMany() results, serializer __proto__ #2187)set()always sends KV a nativeexpirationTtl, raised to KV's 60-second minimum and rounded up plus one second, so KV removes keys with short TTLs; a non-finiteexpiresmeans no expiry (ce6efce, cloudflare-kv - fix: keys with a ttl of 60 seconds or less are removed by KV #2162)clear()follows every scan page instead of stopping after the first 1 MB page (476761d, dynamo - fix: clear() removes every scan page and keys without a ttl no longer expire #2161)ttlgives each key its own lease counted from its write. rc.1 put those keys on one lease that expired them together, after which writes failed (6ba3096, etcd - fix: default ttl applies per key and keeps working after the first lease expires #2160)setMany()returnsfalsefor failed writes instead oftruefor all (c8133f7, etcd - fix: setMany reports failed writes as false #2172)BufferandBigIntvalues round-trip. Values rc.1 stored without Keyv's serialization (serialization: false, or direct adapter calls) that contain strings starting with:can read back changed (9010961, etcd - fix: Use Keyv default serializer for value envelope #2041)keyv:sha256:digest instead of failing, and namespaced keys are no longer trimmed;set()returnsfalseand emitserrorwhen a server rejects a write, andclear()emitserrorwhen a server doesn't flush (365eeba, memcache - fix: Keys memcached can't store now work, and rejected writes return false #2174)set()removes older revisions, anddelete()andclear()remove every revision. A compound index created on connect serves these lookups (8101af5, mongo - fix: GridFS reads the newest value and delete removes every revision #2163)PRIMARY KEY (namespace, id), so the adapter works withsql_require_primary_keyand with generated invisible primary keys. On connect, an existing table, including one rc.1 created, is migrated in oneALTER TABLE. A primary key you added on another column is kept, and(namespace, id)gets a unique index instead (1bb5d90, mysql - fix: tables get a primary key on (namespace, id) #2165; fbbb044, mysql - fix: Primary key migration keeps owner keys, replaces prefix keys, and finds hidden generated keys #2170)npx tsx node_modules/@keyv/mysql/scripts/migrate-v6.ts, and the same way for@keyv/postgres(8ede7f4, mono - fix: make the mysql and postgres v6 migration scripts runnable #2150)keyvis a peer dependency instead of being bundled. The rc.1 packages shipped their own copy of Keyv core, socreateKeyv()returned an instance of that copy, not of thekeyvyou installed. Installkeyvnext to the adapter (2c72abe, mono - fix: declare keyv as a peer dependency of mysql and valkey #2149)--dry-run;deleteMany()runs as one statement; SQLNULLvalues read asundefined(aa692eb, postgres - fix: v6 release review (migration, API docs, events) #2064)pgpool is reference-counted, anddisconnect()releases the pool the adapter connected with, once, so it no longer ends a pool another adapter still uses (aa692eb, postgres - fix: v6 release review (migration, API docs, events) #2064; 82daf5d, mono - fix: fractional TTLs no longer fail writes, and postgres disconnect releases the pool it connected with #2168)clearExpiredIntervalover about 24.8 days no longer runs cleanup back to back (920ad81, mono - fix: a clearExpiredInterval over 24.8 days no longer runs cleanup every millisecond #2164)ClientOfflineErrorand losing values (bb35d2b, redis - fix: share in-flight connect so concurrent ops are not dropped #2105)connectionTimeoutcovers the handshake, and timed-out connects close their sockets (00a48ba, redis - fix: Abort timed-out Redis connects without leaking sockets #2108)createKeyvNonBlocking()stops reconnecting to a server that is down, so calls settle; failed connects no longer add anerrorlistener each time (0575171, redis - fix: createKeyvNonBlocking stops reconnecting, and failed connects stop adding listeners #2167)clear()anditerator()match the namespace and separator literally.*,?,[,]and\are no longer glob syntax, soclear()on namespacetenant*no longer deletestenant-prod's keys (b91b8bf, redis - fix: clear() and iterator() match the namespace literally #2185)PXATdetection;getMany()andclear()followthrowOnConnectError; namespace prefixes are stripped only from the start of a key; missing values areundefined, nevernull(cab81d2, redis - refactor: v6 client swap, API docs, and test uniformity #2062)_migration_oldtable after a crash; thesqlite3driver no longer hangs after a failed statement; overlappingclearExpiredruns are skipped;busyTimeoutis passed to SQLite as a number (90630ee, sqlite - fix: harden v6 sqlite adapter, docs, and tests #2063)clear()removes only its own namespace, not namespaces that share its prefix, and glob characters in the namespace are escaped (4d369be, valkey - fix: clear() only removes keys in the exact namespace #2147)clear(),iterator()anduseSetswork in cluster mode (a4326e9, valkey - fix: clear, iterator and useSets work in cluster mode #2166)undefined, nevernull(2435715, valkey - refactor: v6 review cleanup for docs, tests, and events #2065)tsc --noEmitreported; the changes are type-only (f8ea934, mono - fix: TypeScript errors in redis, valkey, test-suite, cloudflare-kv and encrypt-web #2190)Documentation
/docs/cachingURLs redirect to cacheable.org (52f692d, website - docs: migrate to Docula 2 modern template and archive v5 #2066)delete()results meant for each adapter and version, and etcd'sclear()without a namespace (f1bb9e3, mono - docs: Correct old delete results and etcd clear() in the migration skill #2175; bec33f4, mono - docs: Bound the old Redis deleteMany range to 2.7 through 3.0 #2177)useKeyPrefixoption (13c683e, mono - docs: Drop the removed useKeyPrefix option from dynamo and cloudflare-kv examples #2169)Security & release pipeline
scan-releasegate, then packs each package and stages it through stage-only OIDC trusted publishing with provenance. A maintainer approves staged versions on npm with 2FA. No npm publish tokens are used (mono - chore: defense - stage npm publishes with Aikido gate #2057, mono - chore: defense - reconcile merged stage-publish status #2058, mono - chore: defense - record npm stage-only and Drydock manuals #2061).latest(mono - fix: stage stable v6 releases under latest, not v6-lts #2148). Releases share a queuedreleaseconcurrency group with the v5 line, and the workflow refuses a release tag whose commit is not onmain(mono - chore: release concurrency group + v5 staged publishing docs #2124).trustPolicy: no-downgrade, and blocks dependency build scripts unless allowed; CI installs with--frozen-lockfile(mono - chore: defense - harden pnpm install policy #2055)./.github/,/.vscode/,/.cursor/,/.devcontainer/,/scripts/and/skills/. The Dev Container image and the Docker test-service images are pinned by digest (mono - chore: defense - add CODEOWNERS for high-risk paths #2059, mono - chore: defense - cover /.vscode/ in CODEOWNERS #2102, mono - feat: Add keyv-migrate agent skill at keyv.org/skills/migrate and fix stale v6 docs #2171, mono - chore: pin Dev Container images #2082, mono - chore: pin Docker postgres service image #2093–mono - chore: pin Docker dynamodb-local service image #2100).npm,npx,pnpmandpnpxuntil Safe Chain is installed (mono - chore: defense - bootstrap Aikido Safe Chain #2054, mono - chore: install Safe Chain and dependencies in Claude Code cloud sessions #2191).Internal
@redis/client6.1.0→6.2.1, mongodb 7.5.0→7.6.0, mysql2 3.23.2→3.24.2, pg 8.22.0→8.23.0, better-sqlite3 13.0.2→13.0.3, memcache 1.9.0→1.10.0, AWS SDK DynamoDB 3.1097.0→3.1121.0, msgpackr 2.0.5→2.1.0, lz4-napi 2.9.1→2.10.0, pnpm 11.18.0→11.25.0, Biome 2.5.6→2.5.11, and docula 2.2.0→3.0.0 for the website. The workspace@types/nodeandwritroverrides were removed. Full inventory below.Dateor use a wider window instead of racing a 100 ms TTL (02c42e5, mono - test: Stop expiry tests from racing a 100 ms TTL #2182); the live Cloudflare KV test waits for deletes to show (17a6f6a, cloudflare-kv - test: Wait for deletes to show in the live KV test #2183); nine storage packages no longer retry failed tests (6361ae1, mono - test: Drop the blanket test retries from the storage packages #2184); the Redis keep-alive test fakes Keyv's connect timer instead of racing a 50 ms timeout (redis - test: Stop the keep-alive test from racing the connect timeout #2193)Contributors
Full List of Changes
namespaceSeparatoron every adapter, defaulting to::by @jaredwray in mono - feat:namespaceSeparatoron every adapter, defaulting to::#2189Full diff: v6.0.0-rc.1...v6.1.0
🤖 Generated with Claude Code
https://claude.ai/code/session_01Cwt8ciN4uKrQkEM14TCff2