PackageTrack

npm · #4601

@apollo/utils.keyvaluecache

4.0.0apollographql/apollo-utils

Minimal key-value cache interface

Release timeline

10 releases since 2022
2023202420252026

Releases

  1. 4.0.021 May 2025
    Release notes

    Major Changes

    Open source →
    Additional notes

    Major Changes

    Open source →
  2. 3.1.014 Sept 2023
    Release notes

    Minor Changes

    Open source →
    Additional notes

    Minor Changes

    • #337 e02f708 Thanks @HishamAli81! - Updated the KeyValueCache.KeyValueCacheSetOptions type to be configurable, to be able to support custom key value caches that require additional cache set options.
    Open source →
    Additional notes

    Minor Changes

    • #337 e02f708 Thanks @HishamAli81! - Updated the KeyValueCache.KeyValueCacheSetOptions type to be configurable, to be able to support custom key value caches that require additional cache set options.

    Patch Changes

    Open source →
    Additional notes

    Minor Changes

    • #299 a4c17b2 Thanks @trevor-scheer! - Update usage reporting protobuf which introduces support for the ConditionNode in query planning.
    Open source →
  3. 3.0.017 Apr 2023
    Release notes10 sources agree

    Major Changes

    Open source →
    Additional notes

    Major Changes

    Patch Changes

    Open source →
    Additional notes

    Major Changes

    Patch Changes

    Open source →
    Additional notes

    Major Changes

    Patch Changes

    • #271 4e85af0 Thanks @trevor-scheer! - Update lru-cache dependency from v7.x to v9.x

      The InMemoryLRUCache constructor accepts an LRUCache.Options object. This type has changed since v8.x, so you may need to update your usages accordingly.

      The changes in the options typings aren't documented in the changelog; please look at the source below for specifics.

      v7 options can be derived here. v8-9 options can be derived here.

    • Updated dependencies [4e85af0]:

    Open source →
    Additional notes

    Major Changes

    Patch Changes

    Open source →
    Additional notes

    Major Changes

    Patch Changes

    Open source →
  4. 2.1.13 Apr 2023
    Release notes

    Patch Changes

    Open source →
  5. 2.1.09 Dec 2022
    Release notes

    Minor Changes

    • #298 cfa5dd4 Thanks @trevor-scheer! - Update usage reporting protobuf which introduces support for the ConditionNode in query planning.
    Open source →
    Additional notes

    Minor Changes

    • #236 675409f Thanks @glasser! - New static methods PrefixingKeyValueCache.cacheDangerouslyDoesNotNeedPrefixesForIsolation and PrefixingKeyValueCache.prefixesAreUnnecessaryForIsolation allows you to opt a particular cache out of the prefixing done by a PrefixingKeyValueCache.
    Open source →
  6. 2.0.123 Nov 2022
    Release notes10 sources agree

    Patch Changes

    • #266 ba46d81 Thanks @renovate! - Start building packages with TypeScript v5, which should have no effect for consumers
    Open source →
    Additional notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • #260 957493f Thanks @trevor-scheer! - Fix issue with KeyvAdapter where Keyv.getMany returns undefined, causing KeyvAdapter to violate the DataLoader contract.

      DataLoader always expects a Promise<Array<V>> having the same length as the keys that were given to it. This problem stems from a shortcoming of the Keyv typings, since it doesn't declare that a get([...keys]) can return a singular undefined (but it can in the case of errors / Store.getMany can return a singular undefined).

    Open source →
    Additional notes

    Patch Changes

    • #226 bcf0981 Thanks @trevor-scheer! - Fix the version range specified for lru-cache which was previously invalid. Unpin the range now that we've dropped support for node@12 and this was originally a @types/node@12 issue.
    Open source →
  7. 2.0.018 Nov 2022
    Release notes10 sources agree

    Major Changes

    Open source →
    Additional notes

    Major Changes

    Patch Changes

    Open source →
    Additional notes

    Major Changes

    Patch Changes

    Open source →
    Additional notes

    Major Changes

    Patch Changes

    Open source →
    Additional notes

    Major Changes

    Patch Changes

    Open source →
    Additional notes

    Major Changes

    Patch Changes

    Open source →
  8. 1.0.223 Nov 2022
    Release notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
  9. 1.0.127 May 2022
    Release notes

    Patch Changes

    • #219 e8f8188 Thanks @SimenB! - Migrate from apollo-reporting-protobuf to @apollo/usage-reporting-protobuf
    Open source →
    Additional notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
  10. 1.0.027 May 2022
    Release notes2 sources agree

    Major Changes

    Open source →
    Additional notes

    Major Changes

    • #175 49a8c8f Thanks @glasser! - New package, representing AS3-style interface between Apollo Server and Apollo Gateway
    Open source →
    Additional notes

    Major Changes

    Open source →
    Additional notes

    Major Changes

    Open source →
    Additional notes

    Major Changes

    • #93 7ce10c7 Thanks @trevor-scheer! - Introduce package which extracts KeyValueCache, PrefixingKeyValueCache, and InMemoryLRUCache from Apollo Server and adds a separate Keyv adapter which implements the KeyValueCache interface. This also introduces an ErrorsAreMissesCache for adding tolerance and logging to errors when using caching clients which might be susceptible to connection failures or other types of errors.
    Open source →
    Additional notes

    Major Changes

    • #93 7ce10c7 Thanks @trevor-scheer! - Introduce package which extracts KeyValueCache, PrefixingKeyValueCache, and InMemoryLRUCache from Apollo Server and adds a separate Keyv adapter which implements the KeyValueCache interface. This also introduces an ErrorsAreMissesCache for adding tolerance and logging to errors when using caching clients which might be susceptible to connection failures or other types of errors.

    Patch Changes

    Open source →
    Additional notes

    Major Changes

    • #92 0d9db54 Thanks @trevor-scheer! - Initial release of usage reporting signature (and its components) Initial release of calculateReferencedFieldsByType

    Patch Changes

    Open source →
    Additional notes2 sources agree

    Major Changes

    • #92 0d9db54 Thanks @trevor-scheer! - Initial release of usage reporting signature (and its components) Initial release of calculateReferencedFieldsByType
    Open source →
    Additional notes

    Major Changes

    Open source →
    Additional notes

    Major Changes

    • 74c47d2: Initial release of Logger interface
    Open source →