Skip to content

v0.30.1

Choose a tag to compare

@travsteward travsteward released this 01 Jun 14:17
· 132 commits to main since this release

Fixed

  • Blog frontmatter now emits dates as unquoted YAML scalars, so Astro z.date() schemas build instead of failing. post_to_blog routed every frontmatter value through a stringifier that quoted it — so a date shipped as pubDate: "2026-05-31". Astro's z.date() parses a quoted scalar as a string, not a Date, and rejects it: a real publish froze every Netlify build with InvalidContentEntryFrontmatterError … Expected type "date", received "string". buildFrontmatter now emits the date destination key(s) (pubDate / date / publishedDate) as raw, unquoted YAML when the value is YYYY-MM-DD — the form accepted by z.date() and z.coerce.date() and Jekyll/Hugo/Next (gray-matter). Non-date-shaped values fall back to quoted; real string fields are untouched.

Tests

  • scripts/test-blog-cover-path.mjs section [9] — 7 assertions pinning unquoted date emit (45 total).