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

Bump lru-cache and provide dispose() method #325

Closed
wants to merge 2 commits into from

Conversation

addaleax
Copy link
Contributor

@addaleax addaleax commented Aug 7, 2024

Bumping the dependency is just a drive-by; this is mostly for making sure that Agent instances in the cache are destroyed when no longer reachable.

Bumping the dependency is just a drive-by; this is mostly for
making sure that `Agent` instances in the cache are destroyed
when no longer reachable.
Copy link

changeset-bot bot commented Aug 7, 2024

🦋 Changeset detected

Latest commit: 110efed

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
proxy-agent Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Aug 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
proxy-agents ✅ Ready (Inspect) Visit Preview Aug 7, 2024 1:24pm

@lukekarrys
Copy link
Collaborator

@TooTallNate I'm going through and reviewing some PRs. Do you know why some of them are not including any CI checks besides the Vercel deployment?

@@ -36,7 +36,7 @@
"debug": "^4.3.4",
"http-proxy-agent": "^7.0.1",
"https-proxy-agent": "^7.0.5",
"lru-cache": "^7.14.1",
"lru-cache": "^11.0.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lru-cache@11 supports Node 20 || >= 22: https://github.com/isaacs/node-lru-cache/blob/65c9971e3fef123ff0f17d67add53b2d99b461b0/package.json#L70

So updating lru-cache would require a major version bump. But dispose is available in v7 (isaacs/node-lru-cache@7a6f529) so I think its better to revert the dep update and save it for the next major.

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.

2 participants