Conversation
- Fix the version number of target URL in 'broken absolute' test case - Support download size limit - Temporary set the download limit to 5 MB
- Update got to 11.8.2
|
Hey @PaperStrike, thanks for the PR 🙌 I'm currently moving house, hence the delay in my answer, sorry about that. I would need to think about the implications of dropping the I'll probably dive into this during the course of this month. I might also consider an alternative of Vercel for hosting this project to reduce the costs. |
|
It is worth to mention that if the raw sizes of files in npm packages matter significantly (I have no idea the amount of these users), we can try to read them from unpkg's official |
|
👋 Sorry for the lack of news. Just a heads up that I've started a Rust implementation in the #rust branch. I would like to switch to it during the next month of so 🤞 |
|
Alright, I have the Rust version running. |
.pngusing the raw buffer — now it works again!The main cause of #94 is unpkg (or the whole cloudflare, not sure) doesn't reply
Content-Lengthanymore. ConsideringContent-Lengthisn't a reliable header nowadays, this PR enables badge-size to actually download almost all required files, which may significantly increase the bandwidth usage. Thus I implemented #16 at the same time.The download threshold temporarily being set to 5 megabytes.
We have to find the best threshold before this is merged. 🤔
Demo: https://badge-size-teal.vercel.app/