Skip to content

gql.tada@1.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Jan 15:29
· 235 commits to main since this release
b74251c

Minor Changes

  • Support @_optional and @_required directives on fields overriding the field types.
    When used, @_required can turn a nullable type into a non-nullable, and @_optional
    can turn non-nullable fields into nullable ones. (See “Client-Controlled Nullability” in Graphcache for an example of a client implementing this.)
    Submitted by @kitten (See #32)
  • Add support for @_unmask directive on fragments causing the fragment type to not be masked. FragmentOf<> will return the full result type of fragments when they’re annotated with @_unmask and spreading these unmasked fragments into parent documents will use their full type
    Submitted by @kitten (See #31)

Patch Changes

  • Format TadaDocumentNode output’s third generic differently. The output of fragment definitions will now be more readable (e.g. { fragment: 'Name', on: 'Type', masked: true })
    Submitted by @kitten (See #31)
  • Improve performance of selection and variables inference
    Submitted by @kitten (See #35)
  • Improve performance of GraphQL document parser
    Submitted by @kitten (See #34)