Single version numbers don't work for the unpkg CDN #1139

Closed
opened 1 week ago by idunno101 · 1 comments

Seems to be similar to #129

I first encountered the problem at https://www.nfl.com/scores/

The site makes two requests to unpkg.com:

https://unpkg.com/react@17/umd/react.production.min.js
https://unpkg.com/react-dom@17/umd/react-dom.production.min.js

Both of the requests fail since only the version '17' is provided.


I tested this on my local site and requests will succeed this format:

unpkg.com/react-dom@18.0

But fail with this format:

unpkg.com/react-dom@18
Seems to be similar to #129 I first encountered the problem at https://www.nfl.com/scores/ The site makes two requests to unpkg.com: ``` https://unpkg.com/react@17/umd/react.production.min.js https://unpkg.com/react-dom@17/umd/react-dom.production.min.js ``` Both of the requests fail since only the version '17' is provided. ----- I tested this on my local site and requests will succeed this format: ``` unpkg.com/react-dom@18.0 ``` But fail with this format: ``` unpkg.com/react-dom@18 ```
nobody added the
enhancement
label 1 week ago
nobody added this to the v2.6.36 milestone 1 week ago
Owner

Thanks for your report. So far only one-digit numbers were processed, e.g.

https://unpkg.com/react@1/umd/react.production.min.js
https://unpkg.com/react@2/umd/react.production.min.js
https://unpkg.com/react@6/umd/react.production.min.js

I've modified that so that two-digit numbers are also processed.

If you want to test it, you can find a short tutorial here: https://codeberg.org/nobody/LocalCDN/wiki#user-content-5-you-recently-changed-something-in-the-code-and-i-would-like-to-test-it-how-can-i-do-that

Thanks for your report. So far only one-digit numbers were processed, e.g. ``` https://unpkg.com/react@1/umd/react.production.min.js https://unpkg.com/react@2/umd/react.production.min.js https://unpkg.com/react@6/umd/react.production.min.js ``` I've modified that so that two-digit numbers are also processed. If you want to test it, you can find a short tutorial here: https://codeberg.org/nobody/LocalCDN/wiki#user-content-5-you-recently-changed-something-in-the-code-and-i-would-like-to-test-it-how-can-i-do-that
nobody closed this issue 2 days ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: nobody/LocalCDN#1139
Loading…
There is no content yet.