astro-loader-github-prs@2.0.1
Patch Changes
-
Expand the Astro peer range from
>=4.14.0 <7.0.0to>=4.14.0 <8.0.0so Astro 7 projects can install the loader without peer dependency conflicts. (70b8058) -
Normalize PR search construction by prefixing
type:pronly when neithertype:prnoris:pris present, and preserve existing positive or negativecreated:qualifiers when applyingmonthsBack. (70b8058) -
Relax PR identifier validation from fixed 16-character Base64 node IDs to GitHub global node IDs such as
PR_..., reuse shared URL regexes, and document live entry identifiers asstring | 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 forsrc/graphql/gen/operations.ts. (70b8058) -
Replace
graphql#printcalls withString(...)because generated documents are now typed string documents instead of GraphQL AST documents. (70b8058) -
Migrate the package build from inline
tsupscripts andpostbuild.graphqlcopying totsdown --watch/tsdownwithtsdown.config.ts, keepastro:env/serverexternal throughdeps.neverBundle, disable declaration/source maps, and mark the package as side-effect free for better tree-shaking. (70b8058) -
Add
__typenameto the PR GraphQL fragment and use it ingetValidPrNode()so lookups only map realPullRequestnodes before stripping the typename from returned data. (70b8058) -
Return an
INVALID_IDENTIFIERloader error when live PR entry lookups by node ID, URL or{ owner, repo, number }do not resolve to a GitHub PR, instead of returning an empty result. (70b8058) -
Align README with the updated runtime behavior. (
70b8058)