Skip to content

fix(validator): add .avif and .svg to ALLOWED_IMAGE_EXTENSIONS#140

Open
CryptoExplor wants to merge 1 commit intofarcasterxyz:mainfrom
CryptoExplor:patch-2
Open

fix(validator): add .avif and .svg to ALLOWED_IMAGE_EXTENSIONS#140
CryptoExplor wants to merge 1 commit intofarcasterxyz:mainfrom
CryptoExplor:patch-2

Conversation

@CryptoExplor
Copy link
Copy Markdown

Fixes #135

Adds avif and svg to the ALLOWED_IMAGE_EXTENSIONS set in validator.ts so that snap authors can use these widely-supported image formats without hitting a validation error.

  • .avif: supported in Chrome 85+, Firefox 93+, Safari 16+
  • .svg: universally supported, common for icons and scalable UI elements

Fixes farcasterxyz#135

Adds `avif` and `svg` to the `ALLOWED_IMAGE_EXTENSIONS` set in validator.ts so that snap authors can use these widely-supported image formats without hitting a validation error.

- `.avif`: supported in Chrome 85+, Firefox 93+, Safari 16+
- `.svg`: universally supported, common for icons and scalable UI elements
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 11, 2026

@CryptoExplor is attempting to deploy a commit to the farcaster Team on Vercel.

A member of the Team first needs to authorize it.

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.

validator: validateImageUrl does not support .avif and .svg image formats

1 participant