Skip to content

apollo-compiler@1.0.0-beta.13

Choose a tag to compare

@goto-bus-stop goto-bus-stop released this 14 Feb 12:45
· 172 commits to main since this release
41b69c2

This release includes a critical fix to overflow protection in validation.

Features

  • New field merging validation implementation - goto-bus-stop, pull/816
    • Uses the much more scalable XING algorithm.
    • This also fixes some invalid selections that were previously accepted by apollo-compiler.
    • Selections in fragment definitions are now only validated in the context of the operations they
      are used in, reducing duplicate error reports for invalid fragments. This means invalid unused
      fragments do not produce field merging errors, but they will still raise a different error because
      fragments being unused is also an error according to the spec.
  • Add owned IntoIterator for DirectiveList types - SimonSapin, pull/826

Fixes

  • Actually run RecursionGuard in release mode - SimonSapin, pull/827
    • Due to a debug_assert!() oversight, stack overflow protection in validation did not run
      in release mode.
  • Accept enum values as input for custom scalars - goto-bus-stop, pull/835
    • Custom scalars accept any kind of input value. apollo-compiler used to raise a validation error when
      an enum value was used directly for a custom scalar. However, using an enum value nested inside an
      object or list was accepted. Now enum values are always accepted where a custom scalar is expected.

Maintenance