Repository navigation
fix(apollo): require the integration versions that support apollo 5 - #4187
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
PR Type
What is the current behavior?
The main conflict in #3554 was fixed by moving to
@as-integrations/fastify3.x, but the package metadata still allows versions that can't work with the@apollo/server ^5peer:@as-integrations/fastifypeer:^2.1.1 || ^3.0.0. 2.x requiresfastify ^4and@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/express5is listed inpeerDependenciesMetabut not inpeerDependencies, so its version is never checked. 1.1.2 is the first release that supports@apollo/server ^5.README.mdtells users to installapollo-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).@apollo/serverwith@as-integrations/express5or@as-integrations/fastify, as the quick start does.Closes #3554
Does this PR introduce a breaking change?
Narrowing a peer range is formally semver-major, but none of the versions dropped can run with
@apollo/server5, which this package already requires.