natemoo-re / astro-icon

Inline and sprite-based SVGs in Astro made easy!
https://astroicon.dev
Other
990 stars 57 forks source link

Match v0 name behavior for local icons #179

Closed natemoo-re closed 6 months ago

natemoo-re commented 6 months ago

Fixes #178

BREAKING: Subdirectory prefixes are required for local icons.

This fixes a regression introduced in v1 and matches the previous v0 name behavior.

As an example, the src/icons/logos/astro.svg file could previously be referenced by the name astro. It should correctly be referenced by the name logos/astro.

Before

<Icon name="astro" />

After

<Icon name="logos/astro" />
changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: 662e4ee6821a6ea887e6a3590130513ced7034b9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------- | ----- | | astro-icon | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-astroicon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 2, 2024 3:08am
astroicon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 2, 2024 3:08am