Skip to content

Releases: apollographql/apollo-server

@apollo/[email protected]

05 Jun 21:31
51b79ac
Compare
Choose a tag to compare

Patch Changes

  • #7599 c3f04d050 Thanks @trevor-scheer! - Update @apollo/utils.usagereporting dependency. Previously, installing @apollo/gateway and @apollo/server could result in duplicate / differently versioned installs of @apollo/usage-reporting-protobuf. This is because the @apollo/server-gateway-interface package was updated to use the latest protobuf, but the @apollo/utils.usagereporting package was not. After this change, users should always end up with a single install of the protobuf package when installing both @apollo/server and @apollo/gateway latest versions.

@apollo/[email protected]

05 Jun 21:31
51b79ac
Compare
Choose a tag to compare

Patch Changes

@apollo/[email protected]

26 May 20:08
7eb9681
Compare
Choose a tag to compare

Patch Changes

@apollo/[email protected]

02 May 18:44
5ab08c1
Compare
Choose a tag to compare

Patch Changes

  • #7539 5d3c45be9 Thanks @mayakoneval! - 🐛 Bug Fix for Apollo Server Landing Pages on Safari. A Content Security Policy was added to our landing page html so that Safari can run the inline scripts we use to call the Embedded Sandbox & Explorer.

@apollo/[email protected]

02 May 18:44
5ab08c1
Compare
Choose a tag to compare

Patch Changes

@apollo/[email protected]

20 Apr 20:41
b9c6f4c
Compare
Choose a tag to compare

Minor Changes

  • #7504 22a5be934 Thanks @mayakoneval! - In the Apollo Server Landing Page Local config, you can now opt out of the telemetry that Apollo Studio runs in the
    embedded Sandbox & Explorer landing pages. This telemetry includes Google Analytics for event tracking and
    Sentry for error tracking.

    Example of the new config option:

    const server = new ApolloServer({
      typeDefs,
      resolvers,
      plugins: [
        process.env.NODE_ENV === 'production'
          ? ApolloServerPluginLandingPageProductionDefault({
              graphRef: 'my-graph-id@my-graph-variant',
              embed: {
                runTelemetry: false
              },
            })
          : ApolloServerPluginLandingPageLocalDefault({
              embed: {
                runTelemetry: false
              },
            }),
      ],
    });
    

@apollo/[email protected]

20 Apr 20:41
b9c6f4c
Compare
Choose a tag to compare

Patch Changes

@apollo/[email protected]

03 Apr 18:47
05b2da4
Compare
Choose a tag to compare

Minor Changes

  • #7465 1e808146a Thanks @trevor-scheer! - Introduce new opt-in configuration option to mitigate v4 status code regression

    Apollo Server v4 accidentally started responding to requests with an invalid variables object with a 200 status code, where v3 previously responded with a 400. In order to not break current behavior (potentially breaking users who have creatively worked around this issue) and offer a mitigation, we've added the following configuration option which we recommend for all users.

    new ApolloServer({
      // ...
      status400ForVariableCoercionErrors: true,
    });

    Specifically, this regression affects cases where input variable coercion fails. Variables of an incorrect type (i.e. String instead of Int) or unexpectedly null are examples that fail variable coercion. Additionally, missing or incorrect fields on input objects as well as custom scalars that throw during validation will also fail variable coercion. For more specifics on variable coercion, see the "Input Coercion" sections in the GraphQL spec.

    This will become the default behavior in Apollo Server v5 and the configuration option will be ignored / no longer needed.

Patch Changes

  • #7454 f6e3ae021 Thanks @trevor-scheer! - Start building packages with TS 5.x, which should have no effect for users

  • #7433 e0db95b96 Thanks @KGAdamCook! - Previously, when users provided their own documentStore, Apollo Server used a random prefix per schema in order to guarantee there was no shared state from one schema to the next. Now Apollo Server uses a hash of the schema, which enables the provided document store to be shared if you choose to do so.

@apollo/[email protected]

03 Apr 18:47
05b2da4
Compare
Choose a tag to compare

Patch Changes

@apollo/[email protected]

03 Apr 18:47
05b2da4
Compare
Choose a tag to compare

Patch Changes