2022-10-17
2022-10-17 Release
There has been some bigger updates around the compression libraries and also updates to many of the packages. As always, this includes dependency updates which you can see below under What's Changed. Let's get started:
Typescript update to many of the storage adapters adding in <Value=any>
This was a fix for #512 and we have tested it but happy for any feedback on it.
Compression Packages are now more robust!
We did our initial look at how to add compression into the system and with this latest release made it much more robust. Currently supporting compress-brotli
and compress-gzip
each one of the packages now have type definitions and the main Keyv
has an interface to define what these should look like:
interface CompressionAdapter {
async compress(value: any, options?: any);
async decompress(value: any, options?: any);
async serialize(value: any);
async deserialize(value: any);
}
To use these compression libraries you can do the following:
const KeyvBrotli = require('@keyv/compress-brotli');
const Keyv = require('keyv');
const keyv = new Keyv({store: new Map(), compression: new KeyvBrotli()});
NOTE: when you do use compression the functions serialize
and deserialize
are overwritten.
What's Changed
- redis - removing reliance on this package by @jaredwray in #499
- offline - removing this package as no longer needed by @jaredwray in #500
- fixed namespace clear issue by @alphmth in #501
- keyv - upgrading ava to 4.3.3 by @jaredwray in #503
- Compression Updates by @jaredwray in #502
- Revert "Compression Updates" by @jaredwray in #505
- keyv - upgrading eslint to 8.24.0 by @jaredwray in #504
- keyv - upgrading typescript and tsd to latest by @jaredwray in #506
- keyv - upgrading xo to 0.52.3 by @jaredwray in #507
- memcache - upgrading typescript to 4.8.4 by @jaredwray in #508
- redis - upgrading typescript to 4.8.4 by @jaredwray in #509
- offline - upgrading typescript to 4.8.4 by @jaredwray in #510
- Compression updates v2 by @alphmth in #511
- sqlite - upgrading sqlite3 to 5.1.2 by @jaredwray in #514
- sqlite - upgrading typescript to 4.8.4 by @jaredwray in #515
- sqlite - upgrading xo to 0.52.4 by @jaredwray in #517
- postgres - upgrading typescript to 4.8.4 by @jaredwray in #518
- postgres - upgrading xo to 0.52.4 by @jaredwray in #519
- mysql - upgrading typescript to 0.52.4 by @jaredwray in #520
- mysql - upgrading xo to latest by @jaredwray in #521
- Etcd - upgrading xo to 0.52.4 by @jaredwray in #522
- etcd - upgrading typescript to 4.8.4 by @jaredwray in #524
- tiered - upgrading typescript to 4.8.4 by @jaredwray in #525
- tiered - upgrading xo to 0.52.4 by @jaredwray in #526
- added fix for value by @alphmth in #523
Full Changelog: 2022-09-19...2022-10-17