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

feat(datasource/npm): cache etag for reuse #19823

Merged
merged 9 commits into from Jan 13, 2023
Merged

feat(datasource/npm): cache etag for reuse #19823

merged 9 commits into from Jan 13, 2023

Conversation

rarkins
Copy link
Collaborator

@rarkins rarkins commented Jan 13, 2023

Changes

Adds "soft" expiry package cache concept to npm datasource, reuses etag value and cached result for subsequence requests.

Context

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@rarkins rarkins requested a review from viceice January 13, 2023 10:30
lib/modules/datasource/npm/get.ts Outdated Show resolved Hide resolved
lib/modules/datasource/npm/get.ts Outdated Show resolved Hide resolved
lib/modules/datasource/npm/get.ts Outdated Show resolved Hide resolved
lib/modules/datasource/npm/get.ts Outdated Show resolved Hide resolved
lib/modules/datasource/npm/get.ts Outdated Show resolved Hide resolved
lib/modules/datasource/npm/get.ts Outdated Show resolved Hide resolved
lib/modules/datasource/npm/get.ts Outdated Show resolved Hide resolved
lib/modules/datasource/npm/get.ts Outdated Show resolved Hide resolved
lib/modules/datasource/npm/get.ts Outdated Show resolved Hide resolved
rarkins and others added 2 commits January 13, 2023 14:11
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
@rarkins rarkins enabled auto-merge (squash) January 13, 2023 21:00
@rarkins rarkins merged commit 78b8483 into main Jan 13, 2023
@rarkins rarkins deleted the feat/npm-etag-reuse branch January 13, 2023 21:20
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 34.102.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants