-
Notifications
You must be signed in to change notification settings - Fork 38
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
refactor(sdk): Replace quick-lru
with lru-cache
#2924
Open
mondoreale
wants to merge
31
commits into
main
Choose a base branch
from
swap-lru-library
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…tead-of-CacheMap-in-registries
This reverts commit e5bfdcf.
mondoreale
changed the base branch from
main
to
sdk-use-Mapping-instead-of-CacheMap-in-registries
December 2, 2024 23:18
mondoreale
force-pushed
the
swap-lru-library
branch
from
December 3, 2024 10:26
c43a6cb
to
0242fd4
Compare
The motivation here is that unlike `quick-lru` `lru-cache` comes in 2 formats we're interested in: cjs and esm. Plus, DHT already uses `lru-cache` so it already fits the stack.
Incorrect param!
mondoreale
force-pushed
the
swap-lru-library
branch
from
December 3, 2024 11:38
3cf45e0
to
3917a4b
Compare
mondoreale
commented
Dec 3, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me revert this one. Most likely node v18 vs v20 issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't get this to pass locally. "Me" problem, it seems. CI sees no issues.
Locally it fails. Let's push it and see if it's a "me" problem.
Base automatically changed from
sdk-use-Mapping-instead-of-CacheMap-in-registries
to
main
December 4, 2024 12:55
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(Hopefully one of many small PRs.)
Summary
quick-lru
is an ES-only package and in order to build with it for CJS we currently move it (raw ESM) over (to/vendor
) and transform to CommonJS as part of SDK's build process.lru-cache
is already being used by DHT and it organically comes in 2 flavours: CJS and ESM. No magic required, and no magic = less maintenance.Changes
Mapping
.Checklist before requesting a review
Is this a breaking change? If it is, be clear in summary.TODO
comments left behind are meant to be left in.Updated changelog if applicable.Updated documentation if applicable.Remaining todos