Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 14, 2025

Bumps @apollo/composition to 2.12.1 and updates ancestor dependency @apollo/gateway. These dependencies need to be updated together.

Updates @apollo/composition from 2.10.1 to 2.12.1

Release notes

Sourced from @​apollo/composition's releases.

@​apollo/composition@​2.12.1

Patch Changes

  • Fixed access control verification of transitive requirements (through @requires and/or @fromContext) to ensure it works with chains of transitive dependencies. (#3343)

  • Allow interface object fields to specify access control (#3343)

    Update composition logic to allow specifying access control directives (@authenticated, @requiresScopes and @policy) on @interfaceObject fields. While we disallow access control on interface types and fields, we decided to support it on @interfaceObject as it is a useful pattern to define a single resolver (that may need access controls) for common interface fields. Alternative would require our users to explicitly define resolvers for all implementations which defeats the purpose of @interfaceObject.

    This PR refactors in how we propagate access control by providing additional merge sources when merging directives on interfaces, interface fields and object fields.

  • Updated dependencies [09e596e6a0c753071ca822e84f525d73ada395cf, ac1ed2946c48e0fef4b413b192d8c5fbdb2370ae]:

    • @​apollo/federation-internals@​2.12.1
    • @​apollo/query-graphs@​2.12.1

@​apollo/composition@​2.12.0

Minor Changes

  • Federation 2.12 and Connect 0.3 (#3276)

  • Added isSuccess argument to @connect and @source (#3294)

  • Fixes a bug where composition may not generate a satisfiability error for an unsatisfiable @shareable mutation field. (#3305) (#3305)

  • Automatically propagate authorization requirements from implementing type to interface in the supergraph. (#3321)

    Authorization requirements now automatically propagate from implementing types to interfaces during composition. Direct auth specifications on interfaces are no longer allowed. Interface access requires satisfying ALL implementing types' requirements (AND rule), with these requirements included in the supergraph for backward compatibility with older routers.

  • Fix transitive auth requirements on @requires and @fromcontext (#3321)

    Adds new postMergeValidation check to ensure that all fields that depends on data from other parts of the supergraph through @requires and/or @fromContext directives explicitly specify matching @authenticated, @requiresScopes and/or @policy auth requirements, e.g.

    type T @key(fields: "id") {
      id: ID!
      extra: String @external
      # we need explicit `@authenticated` as it is needed to access extra
      requiresExtra: String @requires(fields: "extra") @authenticated
    }
    type T @​key(fields: "id") {
    id: ID!
    extra: String @​authenticated
    }

  • Adding new CompositionOption maxValidationSubgraphPaths. This value represents the maximum number of SubgraphPathInfo objects that may exist in a ValidationTraversal when checking for satisfiability. Setting this value can help composition error before running out of memory. Default is 1,000,000. (#3275)

  • Restrict usage of auth directives on interfaces (#3321)

... (truncated)

Changelog

Sourced from @​apollo/composition's changelog.

2.12.1

Patch Changes

  • Fixed access control verification of transitive requirements (through @requires and/or @fromContext) to ensure it works with chains of transitive dependencies. (#3343)

  • Allow interface object fields to specify access control (#3343)

    Update composition logic to allow specifying access control directives (@authenticated, @requiresScopes and @policy) on @interfaceObject fields. While we disallow access control on interface types and fields, we decided to support it on @interfaceObject as it is a useful pattern to define a single resolver (that may need access controls) for common interface fields. Alternative would require our users to explicitly define resolvers for all implementations which defeats the purpose of @interfaceObject.

    This PR refactors in how we propagate access control by providing additional merge sources when merging directives on interfaces, interface fields and object fields.

  • Updated dependencies [09e596e6a0c753071ca822e84f525d73ada395cf, ac1ed2946c48e0fef4b413b192d8c5fbdb2370ae]:

    • @​apollo/federation-internals@​2.12.1
    • @​apollo/query-graphs@​2.12.1

2.12.0

Minor Changes

  • Federation 2.12 and Connect 0.3 (#3276)

  • Added isSuccess argument to @​connect and @​source (#3294)

  • Fixes a bug where composition may not generate a satisfiability error for an unsatisfiable @shareable mutation field. (#3305) (#3305)

  • Automatically propagate authorization requirements from implementing type to interface in the supergraph. (#3321)

    Authorization requirements now automatically propagate from implementing types to interfaces during composition. Direct auth specifications on interfaces are no longer allowed. Interface access requires satisfying ALL implementing types' requirements (AND rule), with these requirements included in the supergraph for backward compatibility with older routers.

  • Fix transitive auth requirements on @requires and @fromcontext (#3321)

    Adds new postMergeValidation check to ensure that all fields that depends on data from other parts of the supergraph through @requires and/or @fromContext directives explicitly specify matching @authenticated, @requiresScopes and/or @policy auth requirements, e.g.

    type T @key(fields: "id") {
      id: ID!
      extra: String @external
      # we need explicit `@authenticated` as it is needed to access extra
      requiresExtra: String @requires(fields: "extra") @authenticated
    }
    type T @​key(fields: "id") {
    id: ID!
    extra: String @​authenticated
    }

  • Adding new CompositionOption maxValidationSubgraphPaths. This value represents the maximum number of SubgraphPathInfo objects that may exist in a ValidationTraversal when checking for satisfiability. Setting this value can help composition error before running out of memory. Default is 1,000,000. (#3275)

... (truncated)

Commits

Updates @apollo/gateway from 2.10.1 to 2.12.1

Release notes

Sourced from @​apollo/gateway's releases.

@​apollo/gateway@​2.12.1

Patch Changes

@​apollo/gateway@​2.12.0

Minor Changes

  • Federation 2.12 and Connect 0.3 (#3276)

Patch Changes

@​apollo/gateway@​2.12.0-preview.4

Patch Changes

@​apollo/gateway@​2.12.0-preview.3

Patch Changes

@​apollo/gateway@​2.12.0-preview.2

Patch Changes

@​apollo/gateway@​2.12.0-preview.1

Patch Changes

  • Updated dependencies []:
    • @​apollo/composition@​2.12.0-preview.1
    • @​apollo/federation-internals@​2.12.0-preview.1

... (truncated)

Changelog

Sourced from @​apollo/gateway's changelog.

2.12.1

Patch Changes

2.12.0

Minor Changes

  • Federation 2.12 and Connect 0.3 (#3276)

Patch Changes

2.11.3

Patch Changes

2.11.2

Patch Changes

2.11.1

Patch Changes

2.11.0

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [@apollo/composition](https://github.com/apollographql/federation/tree/HEAD/composition-js) to 2.12.1 and updates ancestor dependency [@apollo/gateway](https://github.com/apollographql/federation/tree/HEAD/gateway-js). These dependencies need to be updated together.


Updates `@apollo/composition` from 2.10.1 to 2.12.1
- [Release notes](https://github.com/apollographql/federation/releases)
- [Changelog](https://github.com/apollographql/federation/blob/main/composition-js/CHANGELOG.md)
- [Commits](https://github.com/apollographql/federation/commits/@apollo/[email protected]/composition-js)

Updates `@apollo/gateway` from 2.10.1 to 2.12.1
- [Release notes](https://github.com/apollographql/federation/releases)
- [Changelog](https://github.com/apollographql/federation/blob/main/gateway-js/CHANGELOG.md)
- [Commits](https://github.com/apollographql/federation/commits/@apollo/[email protected]/gateway-js)

---
updated-dependencies:
- dependency-name: "@apollo/composition"
  dependency-version: 2.12.1
  dependency-type: indirect
- dependency-name: "@apollo/gateway"
  dependency-version: 2.12.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Nov 14, 2025
@pavelnikolov pavelnikolov merged commit de3da1b into main Nov 15, 2025
3 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/example/federation/integration/gateway/multi-f6137195a2 branch November 15, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants