jspm / project

Roadmap and management repo for the jspm project
161 stars 8 forks source link

Updates can be fractionally unavailable #61

Closed guybedford closed 4 years ago

guybedford commented 4 years ago

When a new version of a package is published, there are a few seconds while the package is being uploaded that the reference https://jspm.dev/pkgname has been uploaded, but not all the package files necessary have. Because of this - while the package upload is still in progress it is possible to get modules not found if they are still uploading.

To make the upload process fully atomic, the upload of the pointer modules like https://jspm.dev/pkgname and https://jspm.dev/pkgname@major should be done only after all of the actual package modules have finished uploading. Handling this in the upload queue should be relatively straightforward as we already have this separation due to the different caching headers.

guybedford commented 4 years ago

Upload preference for the non-temporal package uploads has been included now which should avoid this scenario.