Skip to content

December 24, 2024

Latest
Compare
Choose a tag to compare
@theguild-bot theguild-bot released this 24 Dec 10:45
· 7 commits to main since this release
9f109dd

@graphql-yoga/[email protected]

@graphql-yoga/[email protected]

[email protected]

Patch Changes

  • #3588
    ed344ea
    Thanks @ardatan! - Mark createLRUCache utility as deprecated, and
    export it as _createLRUCache marking it as an internal utility

@graphql-yoga/[email protected]

Patch Changes

@graphql-yoga/[email protected]

Patch Changes

@graphql-yoga/[email protected]

Patch Changes

@graphql-yoga/[email protected]

Patch Changes

@graphql-yoga/[email protected]

Patch Changes

@graphql-yoga/[email protected]

Patch Changes

@graphql-yoga/[email protected]

Patch Changes

@graphql-yoga/[email protected]

Patch Changes

@graphql-yoga/[email protected]

Patch Changes

@graphql-yoga/[email protected]

Patch Changes

@graphql-yoga/[email protected]

Patch Changes

  • #3590
    840c6ae
    Thanks @ardatan! - - 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 { extractFromConnectionParams, extractFromHeader, useJWT } from '@graphql-yoga/plugin-jwt'
    
    const yoga = createYoga({
      // ...
      plugins: [
        useJWT({
          // 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 ' })
          ]
        })
      ]
    })

@graphql-yoga/[email protected]

Patch Changes

@graphql-yoga/[email protected]

Patch Changes

@graphql-yoga/[email protected]

Patch Changes

@graphql-yoga/[email protected]

Patch Changes

@graphql-yoga/[email protected]

Patch Changes