Conversation
Member
|
Yeah this is fine, good suggestion @k-yle 👍 I remember adding this in 8db1c1f mostly because Milos asked for it here #8305 (comment) I remember being weakly against the idea of having code that automatically references the dependencies in My opinion is still that urls like these should be updated manually (by a human) and with intention. |
matkoniecz
reviewed
Mar 1, 2026
matkoniecz
reviewed
Mar 1, 2026
| const v = parseVersion(nsiVersion); | ||
| const vMinor = `${v.major}.${v.minor}`; | ||
| const cdn = nsiCdnUrl.replace('{version}', vMinor); | ||
| const cdn = nsiCdnUrl.replace('{version}', nsiVersion); |
Contributor
There was a problem hiding this comment.
I am trying to confirm that my test plan makes sense: it is executed at runtime, when user starts editing, right?
Collaborator
Author
matkoniecz
reviewed
Mar 4, 2026
Contributor
matkoniecz
left a comment
There was a problem hiding this comment.
NSI continues to work in my test
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.

When constructing a CDN URL for NSI assets, NSI's version number is parsed with "vparse", and then the semver-patch part is removed.
As far as I can tell, this extra parsing is not required, because the jsdeliver CDN supports any semver syntax. None of the other assets do this extra parsing.
cc @bhousel, since this you added this because of #8305 (comment)