Releases: jaredwray/keyv
2023-11-12
What's Changed
- Convert Keyv to TypeScript and implement the KeyvStorageAdapter by @christianllv in #934
- mono repo v5 - upgrading @types/node and webpack to latest by @jaredwray in #942
- memcache v5 - upgrading @types/memjs to 1.3.3 by @jaredwray in #943
- test-suite v5 - upgrading @types/json-buffer and @types/json-bigint t… by @jaredwray in #944
- adding in amd64 support on test:services:start by @jaredwray in #946
- compress-brotli - upgrading webpack to 5.89.0 by @jaredwray in #947
- compress-brotli - upgrading brotli to 1.3.12 by @jaredwray in #948
Full Changelog: 2023-10-07...2023-11-12
2023-10-07
Package Updates 🚀
- keyv (v4.5.4) - Fix deleting entire array when keyv.get - #922
- redis (v2.8.0) - Switch to using Redis UNLINK instead of DEL - #921
- test-suite (v1.9.4) - type definition updates for code and modules
- compress-brotli (v1.1.5) - upgrading compress-brotli module to 1.3.11
- mysql (v1.7.0) - moving to using query instead of execute as a command
What's Changed
- Fix: Redis race conditions with .set, .delete. and .clear when useRedisSets=true by @ryanrobertsname in #881
- redis - adding in testing on delete when not using redis sets by @jaredwray in #920
- feat: [GH-910] Switch to use Redis UNLINK instead of DEL by @HishamAli81 in #921
- mysql - moving to using query instead of execute by @jaredwray in #923
- Fix deleting entire array when keyv.get by @vpoliatychko in #922
- memcache - upgrading @types/memjs to 1.3.1 by @jaredwray in #927
- test-suite - upgrading @types/json-bigint to 1.0.2 by @jaredwray in #928
- compress-brotli - upgrading compress-brotli to 1.3.11 by @jaredwray in #929
- compress-gzip - upgrading @types/pako to 2.0.1 by @jaredwray in #930
- compress-gzip - upgrading eslint to 8.51.0 by @jaredwray in #931
New Contributors
- @ryanrobertsname made their first contribution in #881
- @HishamAli81 made their first contribution in #921
- @vpoliatychko made their first contribution in #922
Full Changelog: 2023-09-16...2023-10-07
2023-09-16
Package Updates 🍻
- sqlite3 (v3.6.6) - replaced pify with promisify
- mysql (v1.6.11) - upgrading mysql2 to 3.6.1
- tiered (v1.0.6) - upgrading typescript to 5.2.2 and removing this module
- redis (v2.7.1) - fixing but with passing in ioredis and options #902
What's Changed
- sqlite - upgrading @keyv/test-suite to latest by @jaredwray in #911
- sqlite - replaced pify with util.promisify by @jaredwray in #912
- postgres - upgrading tsd to 0.29.0 by @jaredwray in #913
- mysql - upgrading mysql2 to 3.6.1 by @jaredwray in #914
- etcd - upgrading typescript to 5.2.2 by @jaredwray in #915
- tiered - upgrading typescript to 5.2.2 and removing this module by @jaredwray in #916
- tiered - upgrading eslint to 8.49.0 by @jaredwray in #917
- redis - fixing bug with ioredis and useRedisSets by @jaredwray in #918
- mono - upgrading typescript and @types/node to latest by @jaredwray in #919
Full Changelog: 2023-09-04...2023-09-16
2023-09-04
Package Updates 🍾
- test-suite (v1.9.3) - upgrading bignumber.js to 9.1.2 by @jaredwray in #905
What's Changed
- memcache - upgrading typescript to 5.2.2 by @jaredwray in #903
- redis - upgrading tsd to 0.29.0 by @jaredwray in #904
- test-suite - upgrading bignumber.js to 9.1.2 by @jaredwray in #905
- offline - upgrading tsd to 0.29.0 by @jaredwray in #906
- compress-gzip - upgrading eslint to 8.48.0 by @jaredwray in #907
- compress-brotli - upgrading tsd to 0.29.0 by @jaredwray in #908
Full Changelog: 2023-08-19...2023-09-04
2023-08-19
Package Updates 🥇
- Postgres (v1.4.9) - upgrading pg to 8.11.3
- MySql (v1.6.10) - upgrading mysql2 to 3.6.0
- Etcd (v1.2.1) - upgrading etcd3 to 1.1.2
What's Changed
- postgres - upgrading pg to 8.11.3 by @jaredwray in #894
- mysql - upgrading mysql2 to 3.6.0 by @jaredwray in #895
- etcd - upgrading xo to 0.56.0 by @jaredwray in #896
- etcd - upgrading c8 and webpack to latest by @jaredwray in #897
- etcd - upgrading etcd3 to 1.1.2 by @jaredwray in #898
- tiered - upgrading c8, eslint, and xo to latest by @jaredwray in #899
- mono - upgrading xo, c8, and webpack to latest by @jaredwray in #900
Full Changelog: 2023-08-06...2023-08-19
2023-08-06
Package Updates
- compress-brotli - upgraded brotli module to latest 🤖
What's Changed
- fixing eslint issues with types on modules etcd, redis, and test-suite by @jaredwray in #883
- redis - upgrading timekeeper to 2.3.1 by @jaredwray in #884
- test-suite - upgrading timekeeper to 2.3.1 by @jaredwray in #885
- compress-brotli - upgrading c8 to 8.0.1 by @jaredwray in #886
- compres-brotli - upgrading webpack to 5.88.2 by @jaredwray in #887
- compress-brotli - upgrading compress-brotli to 1.3.9 by @jaredwray in #888
- compress-gzip - upgrading eslint to 8.46.0 by @jaredwray in #889
- keyv - upgrading eslint to 8.46.0 by @jaredwray in #890
- keyv - upgrading timekeeper to 2.3.1 by @jaredwray in #891
Full Changelog: 2023-07-16...2023-08-06
2023-07-16
Package Updates 🚀
- postgres (v1.4.8) - upgraded pg to version 8.11.1
- mysql (v1.6.9) - upgraded mysql2 to version 3.5.1
- keyv (v4.5.3) - added the get overload in
index.d.ts
(#805)
What's Changed
- Added
keyv-momento
to 3rd party storage adapters by @eaddingtonwhite in #866 - adding keyv-momento to other md files by @jaredwray in #867
- Replace
get<Raw>(...)
with an overload by @mmkal in #805 - Fix typo in homeData.njk by @lukechilds in #869
- compress-brotli - removing xo duplication by @jaredwray in #870
- postgres - upgrading pg to 8.11.1 by @jaredwray in #872
- mysql - upgrading mysql2 to 3.5.1 by @jaredwray in #873
- etcd - upgrading xo to 0.55.0 by @jaredwray in #874
- etcd - typescript upgraded to 5.1.6 by @jaredwray in #875
- etcd - upgrading webpack to 5.88.1 by @jaredwray in #876
- tiered - upgrading xo to 0.55.0 by @jaredwray in #877
- tiered - upgrading eslint to 8.45.0 by @jaredwray in #878
- tiered - upgrading typescript to 5.1.6 by @jaredwray in #879
- mono - updating xo, typescript, @types/node, and webpack to latest by @jaredwray in #880
New Contributors
- @eaddingtonwhite made their first contribution in #866
- @mmkal made their first contribution in #805
Full Changelog: 2023-07-01...2023-07-16
2023-07-01
Redis v2.7.0 with useRedisSets
Option
The useRedisSets
option lets you decide whether to use Redis sets for key management. By default, this option is set to true
.
When useRedisSets
is enabled (true
):
- A namespace for the Redis sets is created, and all created keys are added to this. This allows for group management of keys.
- When a key is deleted, it's removed not only from the main storage but also from the Redis set.
- When clearing all keys (using the
clear
function), all keys in the Redis set are looked up for deletion. The set itself is also deleted.
Note: In high-performance scenarios, enabling useRedisSets
might lead to memory leaks. If you're running a high-performance application or service, it is recommended to set useRedisSets
to false
.
If you decide to set useRedisSets
as false
, keys will be handled individually and Redis sets won't be utilized.
However, please note that setting useRedisSets
to false
could lead to performance issues in production when using the clear
function, as it will need to iterate over all keys to delete them.
Example
Here's how you can use the useRedisSets
option:
const Keyv = require('keyv');
const keyv = new Keyv('redis://user:pass@localhost:6379', { useRedisSets: false });
What's Changed
- add useRedisSets option by @christianllv in #855
- add iterator on etcd adapter by @christianllv in #857
- memcache - upgrading typescript to 5.1.6 by @jaredwray in #859
- test-suite - replacind delay module with helper for all packages by @jaredwray in #860
- compress-gzip - upgrading eslint and @ava/typescript to latest by @jaredwray in #862
- compress-brotli - upgrading c8 to 8.0.0 by @jaredwray in #863
- compress-brotli - upgrading webpack to 5.88.1 by @jaredwray in #864
Full Changelog: 2023-06-26...2023-07-01
2023-06-26
Postgres (v1.4.7)
- fix: add dist to npm tarball by @42tg in #856 as
v1.4.6
has been broken with the wrong files being published to npm. 🍻
New Contributors
Full Changelog: 2023-06-18...2023-06-26
2023-06-18
Package Updates
- MySql (v1.6.8) - updating mysql2 module to the latest version 🥂
- Postgres (v1.4.6) - updated to typescript 🎉
What's Changed
- Revert breaking change in Redis constructor by @diogoazevedos in #835
- redis - adding in a fix for code coverage by @jaredwray in #836
- nodejs version 20 support by @jaredwray in #837
- add mysql using typescript by @christianllv in #838
- add postrgres adapter using typescript by @christianllv in #839
- (mysql) use async/await instead promises on connection by @christianllv in #840
- mono - upgrading webpack to 5.87.0 by @jaredwray in #842
- mono - upgrading typescript to 5.1.3 by @jaredwray in #843
- mono - upgrading ava to 5.3.1 by @jaredwray in #844
- mono - upgrading c8 to 8.0.0 by @jaredwray in #845
- mysql - upgrading mysql2 to 3.3.5 by @jaredwray in #846
- etcd - upgrading webpack to 5.87.0 by @jaredwray in #847
- etcd - upgrading typescript to 5.1.3 by @jaredwray in #848
- etcd - upgrading c8 to 8.0.0 by @jaredwray in #849
- etcd - upgrading ava to 5.3.1 by @jaredwray in #850
- tiered - upgrading typescript to 5.1.3 by @jaredwray in #851
- tiered - upgrading eslint to 8.43.0 by @jaredwray in #852
- tiered - removed delay module as no longer needed by @jaredwray in #853
- tiered - upgrading ava and c8 to latest by @jaredwray in #854
New Contributors
- @diogoazevedos made their first contribution in #835
Full Changelog: 2023-06-03...2023-06-18