Skip to content

Release v1.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Jun 04:26
· 227 commits to main since this release

Minor Changes

  • 0a4b4b6: Refactored createPersistentCache to accept a config 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