Pin font icons versions to latest#464
Conversation
|
Hi @sronveaux, |
|
Totally agree that these are no Regarding pinpointing: If we can assure that semantic versioning is used by these 2 packages we could use |
|
I just read again carefully the description of @sronveaux and this
makes me +1 for pinpointing the versions. I also checked the repos of @mdi/font and material-icons and they are quite intransparent, what changed and what is part of the releases, which also makes me feel pinpointing could be a good idea. |
|
Hi @fschmenger and @chrismayer and thanks for your returns, I totally agree that using the minor version What makes me change my mind for those icon fonts is exactly the lack of traceability between versions.
So now all depends what we call a breaking change. Except that As for using the Just tell me what you think about this and I'll adapt as necessary! Cheers, |
fschmenger
left a comment
There was a problem hiding this comment.
Ok, +1 for pinning then, thanks for the detailed explanantion!
Feel free to merge.
This small PR pins the
Material Design Iconsandmaterial-iconsto latest available versions.This is part of the must-have points to address before
Wegue v3is out and is thus mentioned in the upgrade notes.The PR does nothing in practice, as the versions present inside the package.json file were:
As latest versions are
7.4.47forMDIand1.13.14formaterial-iconsand as dependencies were pinned with a^, someone who had installed dependencies lately was already fetching those latest versions.However, as discussed in #319 some times ago, changing version of those icon fonts can bring bad surprises as some icons are removed or replaced from version to version. In our case, no icon disappeared but some were updated and so can have a different visual even between minor version updates. That's why I propose to pin those fonts to the exact version as is already the case for
OpenLayersandProj4.I also propose to move them from the
devDependenciesto thedependenciessection as they are clearly part of the assets distributed at runtime and are not dev-only. In practice, as we're usingVite, the change has no impact, it is purely philosophical and merely clarifies the use that is made of these packages.