docs: fix outdated astro:assets imports and snippets - #14478
Conversation
- Remove deprecated image utilities from astro/assets/utils docs: - matchHostname, matchPathname, matchPort, matchProtocol (removed in astro#16197) - emitImageMetadata (removed in astro#14306) - Move propsToFilename and hashTransform docs from astro/assets/utils to astro/assets (moved in astro#15435) - Move ImageTransform.background docs from Image component to ImageTransform type where it actually exists - Fix v6 upgrade guide to not recommend using the removed emitImageMetadata function Fixes withastro#14281 Co-authored-by: Nicholas M Loperena <Nloperena@users.noreply.github.com>
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
|
Hello! Thank you for opening your first PR to Astro’s Docs! 🎉 Here’s what will happen next:
|
|
Thanks, but AI generated PR are not helpful. If you read the issue, you'll see we are trying to figure out what is the best course of action here. Nothing has been decided yet. So, I'm closing this. |
Description (required)
Docs-only fix for outdated
astro:assetsimports and an incorrect<Image />snippet, matching the current public API.matchHostname,matchPathname,matchPort,matchProtocol, andemitImageMetadatafromastro/assets/utils(removed in fix(astro): remove unused re-exports causing Vite build warning astro#16197 and Recipe idea: sending email from an Astro app (and testing it locally) #14306).propsToFilenameandhashTransformdocs fromastro/assets/utilstoastro/assets(fix: update Cloudflare adapter's default image service astro#15435).backgroundonImageTransform/getImage()instead of as a typed<Image />prop.emitImageMetadata()afteremitESMImage()was removed.English only.
References
astro:assetsdocs #14281