Skip to content

astro-loader-github-releases@3.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 26 May 16:39
fbf674c

Major Changes

  • Remove the userCommit mode from build-time and live release loaders because GitHub no longer includes commit summaries in public PushEvent payloads. The mode: 'repoList' discriminator is also removed because repository-list loading is now the only supported behavior (c0089f2)

  • Move live loaders to the /live subpath. liveGithubReleasesLoader is no longer exported from the package root, so import it from the /live subpath instead: (c0089f2)

    import { liveGithubReleasesLoader } from "astro-loader-github-releases/live";

    This keeps the package root focused on build-time loaders and prevents build-time users from loading live runtime dependencies such as astro:env/server.

  • Use Astro's adapter-backed getSecret() for live loader GitHub tokens instead of import.meta.env, avoiding build-time inlining and allowing runtime-provided secrets to be read per request (c0089f2)

  • Implement the Astro 6 migration change where schema types are inferred instead of generated, while preserving accurate entryReturnType inference and avoiding Zod 4 internal type leakage in published declarations (c0089f2)

  • Astro v6.0 upgrades to Zod 4. Based on the Zod 4 changelog and the need to keep compatibility with older Astro versions, update schemas by: (c0089f2)

    • Replace object intersection with extend() for the extended post schema