Skip to content

Version Packages - #102

Merged
somewhatabstract merged 1 commit into
mainfrom
changeset-release/main
Nov 12, 2026
Merged

somewhatabstract merged 1 commit into
mainfrom
changeset-release/main

Conversation

@khan-actions-bot

@khan-actions-bot khan-actions-bot commented Jun 9, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@khanacademy/graphql-flow@5.0.0

Major Changes

  • 61123d4: Merge sub-selections when the same response name is selected through multiple branches (base level + inline fragment, two fragment spreads, etc.) so the generated TypeScript matches what the server actually returns.

    Bug fix. Previously, a query like

    hero {
      friends { id }
      ... on Human {
        friends { name }
      }
    }

    generated a Human.friends type containing only name — the id selection from the base level was silently dropped. graphql-flow now mirrors the GraphQL spec's CollectFields behavior and merges the two friends selections, producing { id; name }.

    Behavior change (why this is a major bump): For queries that mix inline fragments with base-level field selections on an interface, the field-lookup base is now the concrete impl rather than the interface itself. In practice this means:

    • JSDoc description comments on fields now come from the concrete impl (e.g. Human.name's description shows up where previously only the bare interface field appeared).
    • If any of your interfaces declare covariant field overrides (a concrete impl narrowing the interface's field type), generated types for those fields will now reflect the concrete impl's narrower type when accessed through a fragment refinement on that impl. Runtime data was already this shape; the type is just catching up.

    If you depend on the exact previous output (e.g. snapshot tests of generated .ts files), expect diffs in interface-with-fragment queries. Regenerate types and review.

Patch Changes

  • 057b2d4: Stop publishing the .vscode folder, which the macOS sandbox that coding agents run in can't write into node_modules

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 36582ae to 4b314ec Compare November 12, 2026 20:20
@somewhatabstract
somewhatabstract merged commit 89912cd into main Nov 12, 2026
1 check passed
@somewhatabstract
somewhatabstract deleted the changeset-release/main branch November 12, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants