Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match v0 name behavior for local icons #179

Merged
merged 3 commits into from
Jan 2, 2024
Merged

Conversation

natemoo-re
Copy link
Owner

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" />

Copy link

changeset-bot bot commented Jan 2, 2024

🦋 Changeset detected

Latest commit: 662e4ee

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

Copy link

vercel bot commented Jan 2, 2024

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

@natemoo-re natemoo-re merged commit b55cd5f into main Jan 2, 2024
@natemoo-re natemoo-re deleted the fix/v1-local-regression branch January 2, 2024 20:49
@github-actions github-actions bot mentioned this pull request Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v1] Unable to locate "folder/folder/svg" icon
2 participants