You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug symfony#52119 [AssetMapper] Using ?specifier=* does not match unstable packages on jsdelivr (weaverryan)
This PR was merged into the 6.4 branch.
Discussion
----------
[AssetMapper] Using ?specifier=* does not match unstable packages on jsdelivr
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fixsymfony#52106
| License | MIT
To find which version of a package to grab, we use this API endpoint - https://data.jsdelivr.com/v1/packages/npm/`@tabler`/core/resolved. If a version constraint is specified (e.g. `importmap:require 'bootstrap@^5'`), we add a `?specifier=5`. If no version is specified, previously we added `?specifier=*`. However, this seems to ignore beta releases (returning `null` for ``@table`/core`, whose only has a 1.0 beta). Omitting `?specifier` seems to grab the latest, no matter what it is.
Also, if for some reason, we still can't find a `version`, we know blow up with a much clearer exception.
Cheers!
Commits
-------
370f6dc [AssetMapper] Using ?specifier=* does not match unstable packages on jsdelivr
0 commit comments