htmx icon indicating copy to clipboard operation
htmx copied to clipboard

Default unpkg.com URL has stopped pointing to "latest"

Open bittner opened this issue 10 months ago • 1 comments
trafficstars

It used to be possible to download the latest version of HTMX simply by cURL'ing https://unpkg.com/htmx.org/dist/htmx.min.js (or https://unpkg.com/htmx.org@latest/dist/htmx.min.js), which would redirect replacing the "latest" in the URL path by the current latest version number of HTMX.

That was very handy! I used that to automate checking for version updates in the CI pipelines of my Django projects.

Unfortunately, this seems to have stopped working after v1.9.12. The two URLs mentioned about still point to that version while the current latest version is already v2.0.4, at the time of this writing.

Was this change on purpose or is it a bug/mistake in the release automation?

bittner avatar Dec 21 '24 13:12 bittner

The reason is clearly written in the NEWS block of the homepage: 2.x isn't the latest.

mailq avatar Dec 22 '24 13:12 mailq

Okay, sorry, I didn't find anything in the README and didn't look further. My bad!

Thanks for the clarification! Love HTMX!

bittner avatar Dec 23 '24 11:12 bittner