Skip to content

Conversation

davidfirst
Copy link
Member

Summary

  • Upgraded lru-cache from v6.0.0 to v10.4.3
  • Upgraded tar from v6.2.1 to v7.4.3
  • Updated LRUCacheAdapter to handle breaking changes in lru-cache v10

Changes

LRUCache Migration

  • Changed from default import to named import { LRUCache }
  • Updated API methods: del()delete(), reset()clear()
  • Updated options: maxAgettl
  • Fixed keys() method to return array instead of generator
  • Added proper TypeScript generic constraints (extends {})
  • Improved options handling with explicit validation

Implementation Details

The adapter now properly validates that either maxSize or maxAge is provided, throwing an error if neither is specified. This ensures explicit configuration and prevents silent failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant