Skip to content

astro-loader-github-releases@3.0.1

Choose a tag to compare

@github-actions github-actions released this 04 Jul 16:36
504dfb7

Patch Changes

  • Expand the Astro peer range from >=4.14.0 <7.0.0 to >=4.14.0 <8.0.0 so Astro 7 projects can install the loader without peer dependency conflicts. (70b8058)

  • Relax Release identifier validation from fixed 16-character Base64 node IDs to GitHub global node IDs such as RE_..., reuse shared URL regexes, and document live entry identifiers as string | object. (70b8058)

  • Update GraphQL Code Generator (codegen.config.ts) to emit typed string documents with pure annotations, operation-only types, pre-resolved result shapes, type-only imports, string-union enums, and a scoped post-generation formatter for src/graphql/gen/operations.ts. (70b8058)

  • Replace graphql#print calls with String(...) because generated documents are now typed string documents instead of GraphQL AST documents. (70b8058)

  • Migrate the package build from inline tsup scripts and postbuild .graphql copying to tsdown --watch / tsdown with tsdown.config.ts, keep astro:env/server external through deps.neverBundle, disable declaration/source maps, and mark the package as side-effect free for better tree-shaking. (70b8058)

  • Add __typename to the release GraphQL fragment and use it in getValidReleaseNode() so lookups only map real Release nodes before stripping the typename from returned data. (70b8058)

  • Return an INVALID_IDENTIFIER loader error when live release entry lookups by node ID, URL or { owner, repo, tagName } do not resolve to a GitHub Release, instead of returning an empty result. (70b8058)

  • Align README with the updated runtime behavior. (70b8058)