Major Changes
-
#8272
66bd442Thanks @glasser! - Previously, this published package contained copies compiled both as ECMAScript modules (ESM) and as CommonJS. It is now published only as ESM, without a CommonJS build. All supported versions of Node.js allow you torequire()ESM code from CommonJS code.Even though Node.js's own module loader should be able to use this module from CommonJS code without configuration changes, other ways of running code might need small adjustments. Specifically, some configurations of Jest and TypeScript may need changes; see the migration guide for details.
While Apollo Server v6.0.0 is ESM-only, it does not yet depend on any other ESM-only package at runtime. (This will make it easier to change our minds and return to publishing CommonJS builds if this change was premature.) However, we may choose to start depending on ESM-only packages in a future minor release.
-
#8246
89486b2Thanks @glasser! - Require GraphQL.js v17. Thegraphqlpeer dependency is now^17.1.0; Apollo Server 6 does not support GraphQL.js v16 (nor does it support pre-release versions of GraphQL.js v17, as Apollo Server 5 did experimentally). Before upgrading, read the GraphQL.js v16 to v17 upgrade guide for changes to GraphQL.js itself.Incremental delivery (
@deferand@stream) now works natively without needing to install an alpha version of GraphQL.js. Clients must request incremental delivery with theaccept: multipart/mixed; incrementalSpec=v0.2HTTP header.Other packages that peer-depend on
graphqlmust also accept v17; in particular, use@apollo/gatewayv2.14.5 or later and@apollo/subgraphv2.16.0 or later. -
#8244
0976350Thanks @glasser! - Drop support for Node.js v20, which reached end-of-life on April 30, 2026. Apollo Server 6 requires Node.js v22.18.0 or later (engines.node: ">=22.18").Apollo Server 6 also adopts a new policy for Node.js support: once a Node.js major version reaches end-of-life, Apollo Server may drop support for it with a minor release rather than a major release. Such a change will be called out in the changelog. This policy only applies to Node.js versions, not other dependencies.
Apollo Server is now compiled with TypeScript's
es2024target and lib (every supported Node.js version implements ES2024).