Release v1.4.0
Minor Changes
-
0a4b4b6: Refactored
createPersistentCache
to accept aconfig
object for optional settings.Before:
createPersistentCache(generator, namespace, ignoreKeys?, useIdb?)
Now:
createPersistentCache(generator, namespace, { ignoreKeys, cache, // optional in-memory cache object for cross-plugin sharing cacheTarget, // "memory" | "idb" | "both" (default: "both") parallel, // compute + read race (default: true) });
-
In-memory cache sharing: Pass a shared cache object to coordinate between modules or tabs.
-
Configurable cache strategies:
cacheTarget
: choose where data is stored — RAM, IndexedDB, or both.parallel
: race compute and read to optimize latency.
This is a breaking change for plugins that use caching due to the updated function signature.
No changes for other users. -
Full Changelog: 1.3.4...1.4.0