[pull] main from withastro:main - #696
Merged
Merged
Conversation
…n preferredLocale (#17743)
#17783) * fix(content): add apng to the image() schema format union `apng` was added to VALID_INPUT_FORMATS in #17774, but the ImageFunction type in content/config.ts was not updated to match, so passing an image from a collection schema to a component failed to type-check. Add a type test asserting the schema's format union matches ImageInputFormat, and widen the check workflow's path filter so changes under packages/astro/src and the shipped .d.ts files run the examples check before merge. * revert: keep astro check path filter as-is
…from astro/app/manifest (#17787) Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com>
…ls with quote characters (#17789) * fix(cloudflare): wrap frontmatter in function instead of rewriting return statements Replace the `RETURN_REPLACE_RE` regex tokenizer with a function-wrapping approach. Instead of rewriting `return` → `throw` (which failed on regex literals containing quote characters), wrap the frontmatter in `async function __astro__() { ... }` so `return` is valid syntax. Static import declarations are hoisted above the wrapper so the dep scanner can still discover them. Fixes #17697 * refactor(cloudflare): remove unused esbuild frontmatter plugin --------- Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )