Make jsDelivr CDN serve the same file as UNPKG#171
Merged
1cg merged 1 commit intobigskysoftware:mainfrom Jul 18, 2025
Merged
Conversation
✅ Deploy Preview for htmx-extensions canceled.
|
Contributor
|
Thank you! |
Contributor
|
@1cg @scrhartley this looks like it should fix the issue but it will likely only apply if we manually bump the minor version of all the extensions so it can publish a new version as it will only apply when a new version is pushed up to npm for it to be read by jsdelivr. And npm skips updating existing versions by default which is why we need new version numbers. |
Merged
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Currently jsDelivr is referenced on the htmx site, but some serve the esm version.
e.g.
https://cdn.jsdelivr.net/npm/htmx-ext-head-supportmentioned in https://htmx.org/extensions/head-support/e.g.
https://cdn.jsdelivr.net/npm/htmx-ext-response-targets@2.0.2mentioned in https://htmx.org/docs/This PR updates each extension's
package.jsonso that there is a value forjsdelivrin addition to the existingunpkgone.Htmx version: latest (n/a)
Used extension(s) version(s): n/a
Corresponding issue: bigskysoftware/htmx#3380
Testing
I ran
npm installfor each extension to verify that thepackage.jsonis still valid.The final check will be looking at the CDN when new versions of the extensions are released.
Checklist
npm run test) and verified that it succeeded