Repository navigation
fix(deps): update dependency keyv to v6 - #634
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.0.3→^6.0.0Release Notes
jaredwray/keyv (keyv)
v6.1.0keyv@6.1.0 — 2026-10-06
First stable release of Keyv v6, published to npm's
latesttag.All 20 published packages release in lockstep at 6.1.0; there is no 6.0.0.
@keyv/websiteis private and not published.Coming from v5? Follow the v5 to v6 migration guide, or point your coding agent at https://keyv.org/skills/migrate. v5 stays in maintenance; install it with
keyv@5.⚠ BREAKING CHANGES
These are changes since
6.0.0-rc.1. Coming from v5, start with the migration guide.namespaceSeparatoron every adapter that joins the namespace and the key, and it defaults to::;keySeparatorandkeyPrefixSeparatorare gone (d0bc310, #2189)Migration from rc.1: rename the option. To keep reading namespaced data rc.1 wrote, set
namespaceSeparator: ':'on the memory and bridge adapters,@keyv/etcd,@keyv/dynamo,@keyv/cloudflare-kvand@keyv/valkey.@keyv/redisalready used::in rc.1.Migration from v5: v5's Keyv also prefixed every key with
<namespace>:, so the setting depends on the adapter. A default v5@keyv/redissetup storedkeyv::keyv:foo, which v6 reads withnew Keyv(new KeyvRedis(uri, { namespaceSeparator: '::keyv:' }), { namespace: 'keyv' }). If you usedcreateKeyv(), set only the samenamespace. For other adapters, see The DefaultkeyvNamespace Was Removed.throwOnErrorsis removed; a failed call returns a fallback value when anerrorlistener is attached and rejects when none is (860dba7, #2155)Migration: remove
throwOnErrors, and attach anerrorlistener if you want fallback values instead of rejections.c6e88e7, #2156)Migration: data rc.1 wrote in that setup has no namespace; remove the adapter's namespace to keep reading it, or let it refill.
clear()fails instead of wiping a store it can't list (790eb3c, #2186)Migration: give the store
keys()oriterator(), or callclear()on a Keyv instance without a namespace to empty it.b73ee16, #2176)Migration: keep serialization on, which is the default, when you use encryption.
<namespace>:are stored as given instead of being treated as already prefixed (9dec04c, #2159)Migration: entries rc.1 wrote under such keys read as missing; write them again.
@keyv/encrypt-nodeaccepts only AES-GCM, AES-CCM and ChaCha20-Poly1305 withbase64,base64urlorhexoutput, and@keyv/encrypt-webaccepts only AES-GCM; AES-CBC is removed (b06ec8b, #2187)Migration: the defaults are unchanged; re-encrypt values written with any other algorithm or encoding before you upgrade.
sixHoursInMillisecondsis removed (476761d, #2161)Migration: set Keyv's
ttloption for a default expiry, as innew Keyv(store, { ttl: 6 * 60 * 60 * 1000 }).leaseproperty is removed, and the storettlapplies to each key from its own write (6ba3096, #2160)Migration: remove code that reads or sets
store.lease.clear()anditerator()only touch entries Keyv wrote without a namespace (8a77946, #2173)Migration: set
noNamespaceAffectsAll: truefor the rc.1 behavior, andnamespaceSeparator: ':'while etcd still holds namespaced rc.1 entries.clear()only removes the store's own entries, and values rc.1 wrote read as missing (12415c5, #2179)Migration: let the cache refill; set
noNamespaceAffectsAll: trueon a store without a namespace to flush the whole server.storeSizekeeps every entry and no longer emitsclear(b80b44d, #2178)Migration: call
clear()yourself if you resized the map to empty it.Features
add the
keyv-migrateagent skill, which upgrades a project from Keyv v4 or v5 to v6; it is published at https://keyv.org/skills/migrate (bae30d5, #2171)add a
namespaceSeparatoroption to every adapter that joins the namespace and the key; it defaults to::(d0bc310, #2189)Bug Fixes
KeyvBridgeAdapter(9c82ca3, #2157)3462350, #2158)disconnect()releases the pool it connected with (82daf5d, #2168)clearExpiredIntervalover 24.8 days no longer runs cleanup every millisecond (920ad81, #2164)ce6efce, #2162)BufferandBigIntvalues round-trip (9010961, #2041)setMany()reports failed writes asfalse(c8133f7, #2172)false(365eeba, #2174)4068b0a, #2152)delete()removes every revision (8101af5, #2163)(namespace, id), and existing tables are migrated on connect (1bb5d90, #2165)fbbb044, #2170)npx tsx(8ede7f4, #2150)keyvis a peer dependency instead of a bundled copy (2c72abe, #2149)deleteMany()runs as one statement, and SQLNULLreads asundefined(aa692eb, #2064)createKeyv()accepts cluster and sentinel options, replacing the client removes the old client's listeners, and missing values areundefined(cab81d2, #2062)bb35d2b, #2105)connectionTimeoutcovers the handshake, and timed-out connects close their sockets (00a48ba, #2108)createKeyvNonBlocking()stops reconnecting to a server that is down (0575171, #2167)clear()anditerator()match the namespace literally, not as a glob pattern (b91b8bf, #2185)sqlite3driver no longer hangs after a failed statement (90630ee, #2063)undefined, nevernull(2435715, #2065)clear()removes only its own namespace, not namespaces that share its prefix (4d369be, #2147)clear(),iterator()anduseSetswork in cluster mode (a4326e9, #2166)Documentation
52f692d, #2066)df63ef6, #2151)b5eeec9, #2188)bda7916, #2194)13c683e, #2169;f1bb9e3, #2175;bec33f4, #2177)Internal
latest(#2057, #2124, #2148)@redis/client6.2.1,mongodb7.6.0,mysql23.24.2,pg8.23.0,better-sqlite313.0.3,memcache1.10.0, AWS SDK DynamoDB 3.1121.0,msgpackr2.1.0,lz4-napi2.10.0,hookified3.0.3 (#2083–#2092)Contributors
Full List of Changes
namespaceSeparatoron every adapter, defaulting to::by @jaredwray in #2189Full diff: jaredwray/keyv@v6.0.0-rc.1...v6.1.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.