Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 22, 2024

This PR contains the following updates:

Package Change Age Confidence
@graphql-tools/delegate (source) ^10.0.21^10.2.23 age confidence

Release Notes

graphql-hive/gateway (@​graphql-tools/delegate)

v10.2.23

Compare Source

Patch Changes

v10.2.22

Compare Source

Patch Changes

v10.2.21

Compare Source

Patch Changes
  • #​1301 b69c80b Thanks @​enisdenjo! - Filter selection sets recursively when finalizing gateway requests

    Because abstract types can be nested.

v10.2.20

Compare Source

Patch Changes

v10.2.19

Compare Source

Patch Changes

v10.2.18

Compare Source

Patch Changes
  • #​1117 0512be3 Thanks @​ardatan! - Optimizes @provides handling by avoiding the generation of new query plans when a parent subgraph already supplies the requested fields.
    • Refactors and inlines subtractSelectionSets to compute leftover selections.
    • Threads a providedSelectionNode through planning to subtract out provided fields early.
    • Updates stitching and federation logic to conditionally skip planning when selections are already available.
  • Updated dependencies [faffc17]:

v10.2.17

Compare Source

Patch Changes

v10.2.16

Compare Source

Patch Changes

v10.2.15

Compare Source

Patch Changes

v10.2.14

Compare Source

Patch Changes

v10.2.13

Compare Source

Patch Changes
  • #​662 2318393 Thanks @​ardatan! - When a field with @skip and @include directives in a selection set throws, show the correct error

    // Query
    query myQuery($toInclude: Boolean! = false) {
        user(id: 1) {
            id
            name
            username
            totalReviews @​include(if: $toInclude)
            # If this throws, show the actual error instead of `Argument \"if\" of required type \"Boolean!\" was provided the variable` error
        }
    }
    
    // Variables
    {
        "toInclude": true
    }
    

v10.2.12

Compare Source

Patch Changes

v10.2.11

Compare Source

Patch Changes
  • #​506 9144222 Thanks @​ardatan! - Add isPrototypePollutingKey to prevent accidential prototype pollution, whenever object manipulation happens with the keys based on the user input, it is validated to prevent prototype pollution.

    For example, WrapQuery takes path which is used to manipulate the object returned to the client. If the user input is __proto__, it will throw an error from now on but previously it would have polluted the prototype.

v10.2.10

Compare Source

Patch Changes
  • #​471 18682e6 Thanks @​ardatan! - While creating a delegation request for the subschema, an selection set should be spreaded on the union type field correctly.

    In case of the following schema;

    type Query {
      foo: Foo
    }
    
    union Foo = Bar | Baz
    
    type Bar {
      id: ID!
      name: String
      age: Age
    }
    
    type Age {
      years: Int
      months: Int
    }
    
    type Baz {
      id: ID!
      name: Name
      age: Int
    }
    
    type Name {
      first: String
      last: String
    }

    If the operation is generated as following;

    query {
      foo {
        id
        name
        age {
          years
          months
        }
      }
    }

    It should be spreaded on the union type field correctly as following;

    query {
      foo {
        ... on Bar {
          id
          age {
            years
            months
          }
        }
        ... on Baz {
          id
          name {
            first
            last
          }
        }
      }
    }

v10.2.9

Compare Source

Patch Changes

v10.2.8

Compare Source

Patch Changes

v10.2.7

Compare Source

Patch Changes

v10.2.6

Compare Source

Patch Changes

v10.2.5

Compare Source

Patch Changes

v10.2.4

Compare Source

Patch Changes

v10.2.3

Compare Source

Patch Changes

v10.2.2

Compare Source

Patch Changes

v10.2.1

Compare Source

Patch Changes

v10.2.0

Compare Source

Minor Changes

v10.1.3

Compare Source

Patch Changes
  • #​118 73c621d Thanks @​{! - Do not ignore request selection set when overriding the fields

    import { buildSchema, graphql } from 'graphql';
    import { addResolversToSchema } from '@​graphql-tools/schema';
    import { stitchSchemas } from '@​graphql-tools/stitch';
    import { delegateToSchema } from '@​graphql-tools/delegate';
    
    const sub_schema = addResolversToSchema({
      schema: buildSchema(`
      type Query {
        current_user: User
      }
    
      type User {
        id: ID!
        name: String!
        age: Int!
      }
    `),
      resolvers: {
        Query: {
          current_user: () => ({ id: '5', name: 'John Doe', age: 10 }),
        },
      },
    });
    
    const stitched_schema = stitchSchemas({
      subschemas: [
        {
          schema: sub_schema,
          createProxyingResolver: (options) => {
            return (_parent, _args, context, info) => {
              const operationName = info.operation.name ? info.operation.name.value : undefined;
              return delegateToSchema({
                schema: options.subschemaConfig,
                operation: options.operation,
                context,
                info,
                operationName,
              });
            };
          },
        },
      ],
      resolvers: {
    
          name: {
            selectionSet: '{ age }',
            resolve: (parent) => `${parent.name}(${parent.age})`, // Age should be here
          },
        },
      },
    });

v10.1.2

Compare Source

v10.1.1

Compare Source

Patch Changes
  • 342e044
    Thanks @​ardatan! - Prevent extra queries to the same subgraph
    multiple times on the same plan, and merge iterables correctly

v10.1.0

Compare Source

Minor Changes

v10.0.29

Compare Source

Patch Changes

v10.0.28

Compare Source

Patch Changes

v10.0.27

Compare Source

Patch Changes

v10.0.26

Compare Source

Patch Changes

v10.0.25

Compare Source

Patch Changes

v10.0.24

Compare Source

Patch Changes

v10.0.23

Compare Source

Patch Changes
  • #​6573
    7e2938d
    Thanks @​ardatan! - When there are two services like below then the
    following query senty, the gateway tries to fetch id as an extra field because it considers id
    might be needed while this is not correct. This patch avoids any extra calls, and forwards the
    query as is to the 2nd service.

    query {
      viewer {
        booksContainer(input: $input) {
          edges {
            cursor
            node {
              source {
                # Book(upc=)
                upc
              }
            }
          }
          pageInfo {
            endCursor
          }
        }
      }
    }
    type Book @​key(fields: "id") @​key(fields: "upc") {
      id: ID!
      upc: ID!
    }
    type BookContainer { # the type that is used in a collection
      id: ID!
      # ... other stuff here
      source: Book!
    }
    
    type Book @​key(fields: "upc") {
      upc: ID!
    }
    
    type Query {
      viewer: Viewer
    }
    
    type Viewer {
      booksContainer: BooksContainerResult
    }
    
    type BooksContainerResult {
      edges: [BooksContainerEdge!]!
      pageInfo: PageInfo!
    }
    
    type BooksContainerEdge {
      node: BookContainer!
      cursor: String!
    }
    
    type PageInfo {
      endCursor: String
    }

v10.0.22

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.8 fix(deps): update dependency @graphql-tools/delegate to ^10.2.9 Dec 24, 2024
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from 20bb9fa to d8915a2 Compare December 24, 2024 17:19
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from d8915a2 to a3d63a8 Compare January 20, 2025 14:28
@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.9 fix(deps): update dependency @graphql-tools/delegate to ^10.2.10 Jan 20, 2025
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from a3d63a8 to dfc950c Compare January 29, 2025 18:22
@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.10 fix(deps): update dependency @graphql-tools/delegate to ^10.2.11 Jan 29, 2025
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from dfc950c to 83a04e6 Compare February 13, 2025 19:24
@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.11 fix(deps): update dependency @graphql-tools/delegate to ^10.2.12 Feb 13, 2025
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from 83a04e6 to 27093ea Compare February 14, 2025 15:57
@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.12 fix(deps): update dependency @graphql-tools/delegate to ^10.2.13 Feb 14, 2025
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from 27093ea to ae30906 Compare March 11, 2025 17:18
@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.13 fix(deps): update dependency @graphql-tools/delegate to ^10.2.14 Mar 11, 2025
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from ae30906 to 00f907b Compare March 20, 2025 11:47
@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.14 fix(deps): update dependency @graphql-tools/delegate to ^10.2.15 Mar 20, 2025
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from 00f907b to fc1b4d0 Compare March 25, 2025 20:10
@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.15 fix(deps): update dependency @graphql-tools/delegate to ^10.2.16 Mar 25, 2025
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from fc1b4d0 to f4ee933 Compare April 7, 2025 13:03
@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.16 fix(deps): update dependency @graphql-tools/delegate to ^10.2.17 Apr 7, 2025
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from f4ee933 to 800d43b Compare May 16, 2025 19:59
@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.17 fix(deps): update dependency @graphql-tools/delegate to ^10.2.18 May 16, 2025
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from 800d43b to 05d4166 Compare June 2, 2025 14:30
@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.18 fix(deps): update dependency @graphql-tools/delegate to ^10.2.19 Jun 2, 2025
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from 05d4166 to 25ff507 Compare June 26, 2025 19:35
@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.19 fix(deps): update dependency @graphql-tools/delegate to ^10.2.20 Jun 26, 2025
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from 25ff507 to 1843692 Compare July 7, 2025 20:32
@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.20 fix(deps): update dependency @graphql-tools/delegate to ^10.2.21 Jul 7, 2025
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from 1843692 to 57d3cc4 Compare July 23, 2025 21:47
@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.21 fix(deps): update dependency @graphql-tools/delegate to ^10.2.22 Jul 23, 2025
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from 57d3cc4 to af1d2bc Compare August 1, 2025 16:00
@renovate renovate bot changed the title fix(deps): update dependency @graphql-tools/delegate to ^10.2.22 fix(deps): update dependency @graphql-tools/delegate to ^10.2.23 Aug 1, 2025
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch 2 times, most recently from 972fa71 to e39e38f Compare August 31, 2025 22:19
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from e39e38f to 14ac454 Compare November 10, 2025 03:29
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from 14ac454 to 279e822 Compare November 18, 2025 10:11
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from 279e822 to 3b68ac9 Compare November 29, 2025 21:48
@renovate renovate bot force-pushed the renovate/graphql-hive-gateway-monorepo branch from 3b68ac9 to 035e993 Compare January 8, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants