astro-structured-datav2.0.1

Changelog

Generated from CHANGELOG.md in the project repository. Never maintained twice.

2.0.1

10 September 2026

  • fixedStrict prop validation ignores Astro's own attributes (slot, data-astro-*), so <ArticleSchema slot="head" /> works again.

2.0.0

10 September 2026

  • breakingComponents validate their props against the Zod schemas at render time and fail the build on invalid or unknown props: ISO 8601 dates and durations, ISO 4217 currencies, http(s) or root-relative URLs, non-empty text, cross-field rules.
  • breakingIntegration options are validated strictly; a missing site URL throws.
  • breakingNo invented values: LocalBusinessSchema and OrganizationSchema need a name, JobPostingSchema a hiring organisation; employmentType, operatingSystem, applicationCategory, reviewCount and the salary unit are no longer defaulted; baseSalary.unit is required.
  • breakingMeta tags and the @graph block are produced by a middleware after the page has fully rendered. HTML responses are buffered rather than streamed; tags the page defines win.
  • breaking<SchemaGraph /> only marks where the @graph goes; in graph mode a page with schemas must render it exactly once.
  • breakingEventSchema: venue props depend on attendanceMode.
  • addedEventSchema onlineUrl, output as VirtualLocation (Online) or Place plus VirtualLocation (Mixed).
  • addedchangefreq and priority sitemap hints on every component; conflicting hints fail the build.
  • addedInvalid JSON-LD in the build output fails the build.
  • addedTest suite with vitest and the Astro container API, plus end-to-end tests against a real static build, the dev server and Node SSR.
  • securityJSON-LD output is escaped so content cannot break out of the script block.

1.5.1

2 July 2026

  • fixedGraph store and meta tag deduplication are scoped to the page path, so schemas no longer leak across pages in static builds.

1.5.0

23 June 2026

  • addedAstro 7 support (peer dependency ^5.0.0 || ^6.0.0 || ^7.0.0).
  • changedDependencies updated to zod 4, schema-dts 2 and TypeScript 6.

1.4.1

12 June 2026

  • addedJobPostingSchema: identifier, directApply, jobLocationType, applicantLocationRequirements; jobLocation optional for remote jobs.
  • addedLocalBusinessSchema: url, description, email, sameAs.
  • addedEventSchema: url, organizer, performer.
  • addedVideoSchema: publisher; contentUrl or embedUrl required.
  • addedSoftwareAppSchema: description, url.

1.4.0

2 June 2026

  • addedRecipeSchema and VideoSchema, with Dev Toolbar previews and build warnings.

1.3.0

2 June 2026

  • addedvalidateRecommended() and the warnOnMissingRecommended build check.
  • addedZod schemas for all components.
  • addedAutoBreadcrumbSchema: ignoreSegments, prependBreadcrumbs, appendBreadcrumbs.
  • addedcalculateReadingTime in the ./utils export.
  • addedDev Toolbar: rich result previews, copy JSON-LD, schema.org validator link.

1.2.0

1 June 2026

  • addedWebPageSchema; more ArticleSchema props.

1.1.3

1 June 2026

  • fixedMeta tags are generated only for primary schema types, without duplicates.

1.1.1

1 June 2026

  • addedOptions siteName, locale, twitterSite, twitterCreator.

1.1.0

1 June 2026

  • addedgenerateMeta option: meta tags generated from the schemas.

1.0.1

1 June 2026

  • fixedThe ./components export points to compiled JavaScript, fixing Rollup errors in consuming projects.

1.0.0

1 June 2026

  • addedFirst release: components for Article, FAQ, Product, LocalBusiness, Event, Organization, WebSite, Breadcrumb, ProfilePage, CollectionPage, JobPosting and SoftwareApp.