Skip to content

fix(apollo): require the integration versions that support apollo 5 - #4187

Merged
kamilmysliwiec merged 1 commit into
masterfrom
fix/apollo-integration-peers
Oct 26, 2026
Merged

kamilmysliwiec merged 1 commit into
masterfrom
fix/apollo-integration-peers

Conversation

@kamilmysliwiec

Copy link
Copy Markdown
Member

PR Checklist

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

  • Bugfix

What is the current behavior?

The main conflict in #3554 was fixed by moving to @as-integrations/fastify 3.x, but the package metadata still allows versions that can't work with the @apollo/server ^5 peer:

  • @as-integrations/fastify peer: ^2.1.1 || ^3.0.0. 2.x requires fastify ^4 and @apollo/server ^4; 3.0.0 requires @apollo/server ^4. 3.1.0 is the first release whose peers allow @apollo/server ^5.
  • @as-integrations/express5 is listed in peerDependenciesMeta but not in peerDependencies, so its version is never checked. 1.1.2 is the first release that supports @apollo/server ^5.
  • README.md tells users to install apollo-server-express / apollo-server-fastify.

Issue Number: #3554

What is the new behavior?

  • @as-integrations/fastify: ^3.1.0.
  • @as-integrations/express5: ^1.1.2 (still optional).
  • README install commands use @apollo/server with @as-integrations/express5 or @as-integrations/fastify, as the quick start does.

Closes #3554

Does this PR introduce a breaking change?

  • Yes
  • No

Narrowing a peer range is formally semver-major, but none of the versions dropped can run with @apollo/server 5, which this package already requires.

The peer range of @as-integrations/fastify still allowed 2.x, which
needs fastify 4 and @apollo/server 4, and 3.0.0, which needs
@apollo/server 4, although this package requires @apollo/server 5:
3.1.0 is the first release that supports it. @as-integrations/express5
was listed in peerDependenciesMeta but missing from peerDependencies,
so nothing checked its version: 1.1.2 is the first that supports
@apollo/server 5. The README still told users to install
apollo-server-express or apollo-server-fastify.
@kamilmysliwiec
kamilmysliwiec merged commit 4674316 into master Oct 26, 2026
1 check passed
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.

Apollo + Fastify version conflicts

1 participant