Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: apollographql/federation-jvm
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: apollographql/federation-jvm
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.x
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 15 commits
  • 110 files changed
  • 5 contributors

Commits on Oct 10, 2024

  1. Configuration menu
    Copy the full SHA
    dd75100 View commit details
    Browse the repository at this point in the history
  2. add circleci config

    dariuszkuc committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    b036d42 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5881cb9 View commit details
    Browse the repository at this point in the history
  4. feat: federation 2.5 support (#347)

    Adds support for [Federation specification
    v2.5](https://www.apollographql.com/docs/federation/federation-versions#v25).
    
    Changes:
    
    * new `@authenticated` directive
    
    ```graphql
    directive @authenticated on
        ENUM
      | FIELD_DEFINITION
      | INTERFACE
      | OBJECT
      | SCALAR
    ```
    
    * new `@requiresScopes` directive
    
    ```graphql
    directive @requiresScopes(scopes: [[Scope!]!]!) on
        ENUM
      | FIELD_DEFINITION
      | INTERFACE
      | OBJECT
      | SCALAR
    
    scalar Scope
    ```
    dariuszkuc committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    cbac29b View commit details
    Browse the repository at this point in the history
  5. fix GH file name

    dariuszkuc committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    393c60b View commit details
    Browse the repository at this point in the history
  6. fix build

    dariuszkuc committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    155e8c6 View commit details
    Browse the repository at this point in the history
  7. fix: @authenticated and @requiresScopes only apply to fed v2.5 (#353

    )
    
    Attempting to import new directives with old specification version will
    throw exception.
    dariuszkuc committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    c5fad3a View commit details
    Browse the repository at this point in the history
  8. fix: include full @link directive definition (#352)

    Add missing `Purpose` enum. Full `@link` definition as per the
    [spec](https://github.com/apollographql/specs/blob/main/link/v1.0/link-v1.0.graphql):
    
    ```graphql
    directive @link(
        url: String!,
        as: String,
        import: [Import],
        for: Purpose)
    repeatable on SCHEMA
    
    scalar Import
    
    enum Purpose {
      SECURITY
      EXECUTION
    }
    ```
    
    Resolves: #351
    dariuszkuc committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    18432f6 View commit details
    Browse the repository at this point in the history
  9. fix: default to not generate ftv1 traces (#370)

    Federation tracing should only be enabled if the Router/Gateway sends
    the proper `ftv1` header and value. Currently trace data is generated
    even if the header is not specified which leads to unnecessary
    computations of data that will ultimately be discarded by the
    Router/Gateway.... If header is not specified, we should default to
    `false` to avoid those unnecessary computations.
    
    See: https://www.apollographql.com/docs/federation/metrics/
    
    Supersedes: #368
    dariuszkuc committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    4b750b8 View commit details
    Browse the repository at this point in the history
  10. feat: add support for fed v2.6 and v2.7 (#377)

    * federation v2.6 - new `@policy` directive, see
    [docs](https://www.apollographql.com/docs/federation/federated-types/federated-directives#policy)
    for details
    
    ```graphql
    directive @Policy(policies: [[federation__Policy!]!]!) on
      | FIELD_DEFINITION
      | OBJECT
      | INTERFACE
      | SCALAR
      | ENUM
    
    scalar Policy
    ```
    
    * federation v2.7 - update to `@override` definition (new `label`
    argument), see
    [docs](https://www.apollographql.com/docs/federation/federated-types/federated-directives#progressive-override)
    for details
    
    ```graphql
    directive @OverRide(from: String!, label: String) on FIELD_DEFINITION
    ```
    
    ---------
    
    Co-authored-by: Trevor Scheer <[email protected]>
    dariuszkuc and trevor-scheer committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    42dcf10 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. update to latest tests

    Starting with Federation v2.3 `@tag` is applicable on `SCHEMA` as well.
    dariuszkuc committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    fe719e8 View commit details
    Browse the repository at this point in the history
  2. ensure scalars are wired up if no existing wiring (#382)

    Fixes #380
    
    This restructures the scalar transformation logic to ensure that both
    the type definition and wiring are added correctly if necessary. This
    allows consumers to define the scalars in their schema, but not assign
    runtime wiring. This can be nice to support other tools like linters or
    graphql-faker that require the schema to be a valid schema file.
    craig-day authored and dariuszkuc committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    961fd33 View commit details
    Browse the repository at this point in the history
  3. federation 2.8 support (#409)

    clenfest authored and dariuszkuc committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    ce01b73 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c587ef9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    084916a View commit details
    Browse the repository at this point in the history
Loading