- Add
loc
getter to parsedDocumentNode
fragment outputs to ensure that using fragments created bygql.tada
'sgraphql()
function withgraphql-tag
doesn't crash.graphql-tag
does not treat theDocumentNode.loc
property as optional on interpolations, which leads to intercompatibility issues Submitted by @JoviDeCroock (See #38) - Add missing exports to make apollo-client functional with this library Submitted by @JoviDeCroock (See #39)
- Remove
for-of
syntax fromvalueFromTypeNode
andvalueFromASTUntyped
helpers for JSC memory reduction Submitted by @kitten (See #33)
⚠️ Fix typo causing complex string parsing to fail on subsequent runs Submitted by @kitten (See #31)
⚠️ Fix@ts-ignore
on TypeScript peer dependency import in typings not being applied due to a leading!
character Submitted by @IvanUkhov (See #27)
⚠️ Fix aliased field name followed by arguments causing parsing error Submitted by @kitten (See65c73a0
)
- Update build process to align with other
@0no-co
packages. Effectively, this will mean that the JS features range we support will now matchurql
, and in practice, this means thatfor-of
is now used in our build output Submitted by @kitten (See #21) - Improve parser performance Submitted by @kitten (See #25)
- Improve printer performance Submitted by @kitten (See #24)
⚠️ Fix string and block string matches eagerly matching past the end boundary of strings and ignoring escaped closing characters. In certain cases,"""
and"
boundaries would be skipped if any other string boundary follows in the input document Submitted by @kitten (See #17)
⚠️ Fix browser quirk occurring in Safari 10–13 causing sticky regular expressions in the parser to match when they shouldn't / match too eagerly Submitted by @kitten (See #15)
- Alias all GraphQL AST types to the
'graphql'
package’s TypeScript AST types, if it’s installed. This will ensure that all AST types are always compatible. Submitted by undefined (See #10)
⚠️ Fix float pattern and int/float decision in value parsing Submitted by @kitten (See #8)- Remove redundant code paths from
visit
and parser Submitted by @kitten (See #8)