Skip to content

Releases: divriots/npm-registry-utils

v1.1.4

10 May 16:03
Compare
Choose a tag to compare

What's Changed

  • build: add prettier + format files by @muryoh in #3
  • overridable refreshmeta by @muryoh in #4

Full Changelog: v1.1.3...v1.1.4

v1.1.3

27 Apr 16:54
Compare
Choose a tag to compare

fix: concurrent gets

When 2 concurrent gets were coming for a version that was no available
in the already cache meta:

first request would consider that it had to refresh and could not return
stale meta (so far so good)
second request would consider that it should not refresh meta (because first
was already doing it) and it could return stale meta
The problem on that second request is that it would then return metas missing the
version it was looking for even though it was in the progress of being fetched
This PR makes it so we store the pending refresh so that the second request
benefits from it

v1.1.2

26 Jan 13:21
fb8ca02
Compare
Choose a tag to compare

Improve error handling when fetching meta

  • if a fetch error happens, backoff for 100ms and retry once
  • when another get of that meta is attempted, retry instead of serving the cached error