Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gateway now supported #6801

Merged
merged 1 commit into from
Aug 11, 2022
Merged

Gateway now supported #6801

merged 1 commit into from
Aug 11, 2022

Conversation

glasser
Copy link
Member

@glasser glasser commented Aug 11, 2022

  • Add tests that passing ApolloGateway to ApolloServer typechecks with a
    variety of packages. (Will probably need to mess around with Renovate to
    not have it mess this up.)
  • Update docs to say that gateway works with any version that supports
    graphql@16.

Note that the graphql@16 peer dep was added to gateway with v0.47.0
(2022-Feb-03), but until v0.50.1 (2022-Apr-13) it had a dependency on
apollo-utilities whose peer dep didn't allow v16. It's possible that
releases during that two month span worked with v16 in practice (forcing
the peer dep) but it seems best to only recommend versions that don't
require forcing peer deps (and there aren't any documented breaking
changes between these two versions other than requiring newer
graphql). The most explicit requirement is that we need v0.35.0
because we assume gateway has onSchemaLoadOrUpdate.

Fixes #6719.

@changeset-bot
Copy link

changeset-bot bot commented Aug 11, 2022

🦋 Changeset detected

Latest commit: 73d0fc0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Aug 11, 2022

Deploy Preview for apollo-server-docs ready!

Name Link
🔨 Latest commit 73d0fc0
🔍 Latest deploy log https://app.netlify.com/sites/apollo-server-docs/deploys/62f588cb25796f0008f3aa6e
😎 Deploy Preview https://deploy-preview-6801--apollo-server-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 11, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 73d0fc0:

Sandbox Source
Apollo Server Typescript Configuration
Apollo Server Configuration

@glasser glasser force-pushed the glasser/gateway-supported branch 2 times, most recently from d0811d2 to beb9261 Compare August 11, 2022 22:49
- Add tests that passing ApolloGateway to ApolloServer typechecks with a
  variety of packages. (Will probably need to mess around with Renovate to
  not have it mess this up.)
- Update docs to say that gateway works with any version that supports
  graphql@16.

Note that the graphql@16 peer dep was added to gateway with v0.47.0
(2022-Feb-03), but until v0.50.1 (2022-Apr-13) it had a dependency on
`apollo-utilities` whose peer dep didn't allow v16. It's possible that
releases during that two month span worked with v16 in practice (forcing
the peer dep) but it seems best to only recommend versions that don't
require forcing peer deps (and there aren't any documented breaking
changes between these two versions other than requiring newer
`graphql`). The most explicit requirement is that we need v0.35.0
because we assume gateway has onSchemaLoadOrUpdate.

Testing this requires disabling npm engine-strict on Node 18.
@glasser glasser force-pushed the glasser/gateway-supported branch from beb9261 to 73d0fc0 Compare August 11, 2022 22:55
@glasser glasser merged commit e271815 into version-4 Aug 11, 2022
@glasser glasser deleted the glasser/gateway-supported branch August 11, 2022 23:02
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant