For @devigner-ui/icons-svelte, which jumps from 2.x to 3.5.0 to share one
version with the other packages. Nothing in it breaks. Upgrade, then run the
codemod, which ships in the React package and works on .svelte files too:
npm install @devigner-ui/icons-svelte@^3.5.0
npx @devigner-ui/icons migrateEvery old name is still exported and renders the renamed icon, with the same props:
<script>
import { IconBag2 } from "@devigner-ui/icons-svelte"; // still works
import { IconBagStraps } from "@devigner-ui/icons-svelte"; // the new name
</script>In development an old name logs one warning in the browser console, naming
its replacement. Production builds are silent. Old names are marked
@deprecated in the types, so the Svelte language tools strike them through.
Icons chosen at runtime, such as a component looked up by a name stored in
your data and rendered with <svelte:component>. Map stored names once with
renames.json; see the codemod page.
See Upcoming 4.0.