Readme.md version displayed not aligning with version selected #3899
-
Within our registry we have versioned packages that each have readme.md files embedded containing details for that version. Upon selection of a package version within the verdaccio registry dashboard we expect that versions readme.md to then be presented, however that is not the case. Regardless of which version is selected within the verdaccio registry dashboard, the readme.md shown is always the one from the most recent package published. Is this something that is expected, as it doesn't seem natural for other items on the registry page to reflect details for a selected version except for the readme.md? Thank you for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
This is by design, readme content takes much space, at this point all versions readme are discarded and only the latest is stored. I've been thinking for a while who to make it right without affect the size of the storage but no much research so far. |
Beta Was this translation helpful? Give feedback.
-
Yeah, sounds reasonable, I'll think what internal impact might have, I don't think is a big change at this point. That way it's up to the user to handle that problem given their readme size and desire to have the latest readme shown versus the selected version's readme.
Thanks for the insights, if you have further ideas just feel free to share them. |
Beta Was this translation helpful? Give feedback.
-
After spending some time on the readme issue (#4493), I think we should definitely change the behaviour. Projects often have several parallel releases like verdaccio. Having only one version of the readme will most likely show something incorrect if Verdaccio: Semver package: I suggest storing the readme for all versions that have a For other versions, the web interface could show links available readmes (i.e. dist-tags). If a package has no readme at all, I suggest showing a user-friendly message like npm instead of "ERROR: No README data found!": |
Beta Was this translation helpful? Give feedback.
This is by design, readme content takes much space, at this point all versions readme are discarded and only the latest is stored. I've been thinking for a while who to make it right without affect the size of the storage but no much research so far.