Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lru-memoizer #424

Open
4 tasks done
isidrok opened this issue Sep 30, 2024 · 0 comments · May be fixed by #427
Open
4 tasks done

Update lru-memoizer #424

isidrok opened this issue Sep 30, 2024 · 0 comments · May be fixed by #427

Comments

@isidrok
Copy link

isidrok commented Sep 30, 2024

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

This library is using an outdated version of lru-memoizer, which in turn has a dependency on lru-cache. The lru-cache version it is using is pretty outdated and is no longer compatible with new versions, as a result applications depending on packages that use different versions break when bundling them.

Describe the ideal solution

Ideally lru-memoizer would update its dependency on lru-cache to the latests version, but I opened this issue two weeks ago jfromaniello/lru-memoizer#32 and I'm not sure if thats going to happen.

lru-memoizer has been updated to version 3.0 which uses the latests lru-cache version, therefore it could be updated. Option maxAge has changed to ttl.

Alternatives and current workarounds

Since the breaking change is that the default export was removed, it can be added back:

import * as LRU from 'lru-cache';
LRU.default = LRU.LRUCache;

Additional context

No response

@isidrok isidrok changed the title Consider stop using lru-memoizer Consider replacing lru-memoizer Sep 30, 2024
@isidrok isidrok changed the title Consider replacing lru-memoizer Update lru-memoizer Oct 14, 2024
@isidrok isidrok linked a pull request Oct 29, 2024 that will close this issue
3 tasks
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 a pull request may close this issue.

1 participant