For @devigner-ui/icons-svg, which jumps from 2.x to 3.5.0 to share one
version with the other packages. Nothing in it breaks.
Until 4.0.0 every old file is still in the package, holding the renamed drawing, and every sprite keeps the old id beside the new one:
<img src="https://cdn.jsdelivr.net/npm/@devigner-ui/icons-svg@3.5.0/svg/outline/Bag2.svg" /> <!-- still works -->
<img src="https://cdn.jsdelivr.net/npm/@devigner-ui/icons-svg@3.5.0/svg/outline/BagStraps.svg" /> <!-- the new name -->
<svg><use href="/sprite/outline.svg#Bag2" /></svg> <!-- still works -->
<svg><use href="/sprite/outline.svg#BagStraps" /></svg> <!-- the new name -->A file cannot warn you, so nothing tells you at runtime that a name is old.
Update your paths with the codemod, which rewrites svg/<style>/<Name>.svg
paths and #Name sprite references in HTML, CSS, templates and scripts:
npx @devigner-ui/icons migrate --dry # list what would change
npx @devigner-ui/icons migrateThe full list ships in the package as @devigner-ui/icons-svg/renames.json,
and on the All renames page.
A CDN link without a version, such as …/npm/@devigner-ui/icons-svg/svg/…,
follows the newest release. Old file names keep resolving until 4.0.0 and then
return 404. Pin a version in the URL, or move to the new names before 4.0.
Twenty-seven renames change only capitalisation, such as Additem.svg to
AddItem.svg. On Windows and macOS two files whose names differ only in case
are one file, so the package keeps the new file and the old sprite id but not
a second file. The old file path still resolves on case-insensitive systems,
and returns 404 on Linux servers and most CDNs. Use the new spelling.