Three ways a read through upstream repositories differed from the User
Guide:
- Upstreams were searched breadth-first. "If an upstream repository has
its own upstream repositories, the same logic is used to find a package
version before moving to the next upstream repository": the guide's
own example, my_repo with upstreams A and B, A with C and D and D with
E, is searched my_repo, A, C, D, E, B. The walk is depth-first in each
repository's listed order now.
- A version an upstream had itself retained named that upstream as its
origin, and one the upstream got from public:npmjs came back INTERNAL.
A version's DomainEntryPoint is where it "originally entered" the
domain, so a retained version now carries its upstream's own entry
point: the external connection, EXTERNAL, or the repository it was
published to, however many upstreams it came through. It is read
again when the version's claim is confirmed, so a copy made while the
upstream's own fetch is still finishing gets that fetch's connection.
- An upstream's external connection was never consulted, so a version no
upstream had fetched yet was a 404. AWS fetches it through the
upstream's connection and retains it there and in the repository the
request was made to. A miss at every upstream now tries the external
connections of the upstreams in the same order, for npm, Maven, PyPI
and NuGet, and a packument, Simple index or maven-metadata.xml read
through such an upstream offers what its connection has. That fetch
skips a version Archived or Disposed at the upstream, or here in the
Simple index, reads this repository's fences before it starts, so a
deletion during it is not undone, and passes on an npm client's ask
for the full packument. The four formats share it in
UpstreamExternalConnectionFetch.