New
- Ability to set the journal mode on sqlite cache databases (#3399): There is now a function to set the journal mode of the connected sqlite database and control how the journal file is stored and processed. See PR #443. Thanks to @pixelmatrix for the feature request.
Fixed
- Fix crash when
GraphQLError
is “too many validation errors”" (#438): When a GraphQLError from the JS parsing step is a “Too many validation errors” error, there is nosource
in the error object. Codegen will now check for it to avoid this edge case crash. - Cache write interceptor should gracefully handle missing cache records (#439): The work to support the
@defer
directive introduced a bug where the cache write interceptor would throw if no cache records were returned during response parsing. This is incorrect as there are no cache records in the case of anerrors
only GraphQL response. - Avoid using
fatalError
onJSONEncodable
(#128): The fatal error logic inJSONEncodable
was replaced with a type constraintwhere
clause. Thank you to @arnauddorgans for the contribution. - Introspection-based schema download creates duplicate
@defer
directive definition (#3417): The codegen engine can now correctly detect pre-existing@defer
directive definitions in introspection sources and prevent the duplicate definition. See PR #440. Thanks to @loganblevins for reporting the issue.