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

Upcoming Release Changes #8191

Merged
merged 1 commit into from
Dec 25, 2024
Merged

Upcoming Release Changes #8191

merged 1 commit into from
Dec 25, 2024

Conversation

theguild-bot
Copy link
Collaborator

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

@graphql-mesh/[email protected]

Minor Changes

  • #8189
    83a73ab
    Thanks @jjangga0214! -
    #3590 Do not throw when `request` is not
    available in the context, it can be a WebSockets connection

    • Export helper extractFromConnectionParams to get the token from WebSocket connectionParams
      when GraphQL WS is used like
      here
    import {
      defineConfig,
      extractFromConnectionParams,
      extractFromHeader,
      useJWT
    } from '@graphql-hive/gateway'
    
    export const gatewayConfig = defineConfig({
      jwt: {
        // So it will look for the token in the connectionParams.my-token field in case of a WebSockets connection
        // It will check WS params and headers, and get the available one
        lookupLocations: [
          extractFromConnectionParams({ name: 'my-token' }),
          extractFromHeader({ name: 'authorization', prefix: 'Bearer ' })
        ]
      }
    })

@ardatan ardatan merged commit 982c3c7 into master Dec 25, 2024
15 checks passed
@ardatan ardatan deleted the changeset-release/master branch December 25, 2024 08:34
Copy link
Contributor

Apollo Federation Subgraph Compatibility Results

Federation 1 Support Federation 2 Support
_service🟢
@key (single)🟢
@key (multi)🟢
@key (composite)🟢
repeatable @key🟢
@requires🟢
@provides🟢
federated tracing🟢
@link🟢
@shareable🟢
@tag🟢
@override🟢
@inaccessible🟢
@composeDirective🟢
@interfaceObject🟢

Learn more:

Copy link
Contributor

💻 Website Preview

The latest changes are available as preview in: https://83e4fb12.graphql-mesh.pages.dev

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.

2 participants