Skip to content

August 01, 2024

Compare
Choose a tag to compare
@theguild-bot theguild-bot released this 01 Aug 20:12
· 883 commits to master since this release
ef12ee6

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

  • #7427
    8be81d2
    Thanks @enisdenjo! - Library for importing and transpiling
    TypeScript and JavaScript module during runtime

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@omnigraph/[email protected]

Minor Changes

  • #7443
    8bccd9a
    Thanks @ardatan! - POSSIBLE BREAKING CHANGE WARNING: This change is
    breaking for OpenAPI schemas that have discriminator mapping. It fixes a bug when you have keys in
    the discriminator mapping that are invalid per GraphQL spec. Now in the artifacts @discriminator
    directive's mapping argument is [String!]! instead of ObjMap. You should make sure both the
    consumer and the producer of the artifacts are updated to this version.

    discriminator:
      propertyName: petType
      mapping:
        'pet-cat': '#/components/schemas/Cat'
        'pet-dog': '#/components/schemas/Dog'

    This OpenAPI used to be translated into;

    @directive(mapping: { "pet-cat": "#/components/schemas/Cat", "pet-dog": "#/components/schemas/Dog" })

    But this is invalid in GraphQL spec, so now it's translated into;

    @directive(mapping: [["pet-cat", "#/components/schemas/Cat"], ["pet-dog", "#/components/schemas/Dog"]])

Patch Changes

@omnigraph/[email protected]

Minor Changes

  • #7443
    8bccd9a
    Thanks @ardatan! - POSSIBLE BREAKING CHANGE WARNING: This change is
    breaking for OpenAPI schemas that have discriminator mapping. It fixes a bug when you have keys in
    the discriminator mapping that are invalid per GraphQL spec. Now in the artifacts @discriminator
    directive's mapping argument is [String!]! instead of ObjMap. You should make sure both the
    consumer and the producer of the artifacts are updated to this version.

    discriminator:
      propertyName: petType
      mapping:
        'pet-cat': '#/components/schemas/Cat'
        'pet-dog': '#/components/schemas/Dog'

    This OpenAPI used to be translated into;

    @directive(mapping: { "pet-cat": "#/components/schemas/Cat", "pet-dog": "#/components/schemas/Dog" })

    But this is invalid in GraphQL spec, so now it's translated into;

    @directive(mapping: [["pet-cat", "#/components/schemas/Cat"], ["pet-dog", "#/components/schemas/Dog"]])

Patch Changes

@omnigraph/[email protected]

Patch Changes

@graphql-mesh/[email protected]

@graphql-mesh/[email protected]

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

  • #7428
    6fc03b6
    Thanks @ardatan! - dependencies updates:

  • #7428
    6fc03b6
    Thanks @ardatan! - New plugin to apply compression between
    subgraphs, gateway and the client So Mesh can compress the request before sending it to the
    subgraph and decompress the response. Then do the same for the response from the subgraph to the
    client.

    import { defineConfig, useContentEncoding } from '@graphql-mesh/serve-cli'
    
    export default defineConfig({
      plugins: () => [
        useContentEncoding({
          subgraphs: ['*'] // Enable compression for all subgraphs
          // subgraphs: ['subgraph1', 'subgraph2'] // Enable compression for specific subgraphs
        })
      ]
    })

@graphql-mesh/[email protected]

Patch Changes

  • #7444
    a4e53d9
    Thanks @renovate! - dependencies updates:

  • #7443
    8bccd9a
    Thanks @ardatan! - POSSIBLE BREAKING CHANGE WARNING: This change is
    breaking for OpenAPI schemas that have discriminator mapping. It fixes a bug when you have keys in
    the discriminator mapping that are invalid per GraphQL spec. Now in the artifacts @discriminator
    directive's mapping argument is [String!]! instead of ObjMap. You should make sure both the
    consumer and the producer of the artifacts are updated to this version.

    discriminator:
      propertyName: petType
      mapping:
        'pet-cat': '#/components/schemas/Cat'
        'pet-dog': '#/components/schemas/Dog'

    This OpenAPI used to be translated into;

    @directive(mapping: { "pet-cat": "#/components/schemas/Cat", "pet-dog": "#/components/schemas/Dog" })

    But this is invalid in GraphQL spec, so now it's translated into;

    @directive(mapping: [["pet-cat", "#/components/schemas/Cat"], ["pet-dog", "#/components/schemas/Dog"]])