Skip to content

v3.1.1

Compare
Choose a tag to compare
@aarsilv aarsilv released this 07 Jun 15:32
· 102 commits to main since this release
025f80d

What's Changed

We've added new configuration options for fine control over behavior of the cache:

  • maxCacheAgeSeconds - Maximum age, in seconds, that previously cached values are considered valid until new values will be fetched (default: 0)
  • useExpiredCache - Whether initialization will be considered successfully complete if expired cache values are loaded. If false, initialization will always wait for a fetch if cached values are expired. (default: false)
  • updateOnFetch - Sets how the configuration is updated after a successful fetch (default: always)
    • always - immediately start using the new configuration
    • expired- immediately start using the new configuration only if the current one has expired
    • empty - only use the new configuration if the current one is both expired and uninitialized/empty

Full Changelog: v3.1.0...v3.1.1