What happened?
The current implementation of Convert-UrlToJsDelivr does not fully align with jsDelivr’s recommended usage patterns. According to jsDelivr documentation, relying on latest is non recommended for production environments, and explicit semver versioning is preferred.
To improve compatibility and reliability, the function should be updated to support multiple version‑resolution strategies.
Convert-UrlToJsDelivr should accept and correctly process the following values:
- Branch name
- Tag name
- Use the latest
References
What happened?
The current implementation of Convert-UrlToJsDelivr does not fully align with jsDelivr’s recommended usage patterns. According to
jsDelivrdocumentation, relying on latest is non recommended for production environments, and explicitsemverversioning is preferred.To improve compatibility and reliability, the function should be updated to support multiple version‑resolution strategies.
Convert-UrlToJsDelivrshould accept and correctly process the following values:References
jsDelivrdocumentation: https://www.jsdelivr.com/documentation