Skip to content

Commit

Permalink
chore(release): update monorepo packages versions (#3591)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
theguild-bot and github-actions[bot] authored Dec 24, 2024
1 parent cb35087 commit 9f109dd
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 25 deletions.
24 changes: 0 additions & 24 deletions .changeset/rich-goats-rescue.md

This file was deleted.

31 changes: 31 additions & 0 deletions packages/plugins/jwt/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# @graphql-yoga/plugin-jwt

## 3.4.9

### Patch Changes

- [#3590](https://github.com/dotansimha/graphql-yoga/pull/3590)
[`840c6ae`](https://github.com/dotansimha/graphql-yoga/commit/840c6ae0b8e52fd8ecdc4cca86e1ee30fa99a8c4)
Thanks [@ardatan](https://github.com/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](https://the-guild.dev/graphql/yoga-server/docs/features/subscriptions#graphql-over-websocket-protocol-via-graphql-ws)

```ts
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 ' })
]
})
]
})
```

## 3.4.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/jwt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-yoga/plugin-jwt",
"version": "3.4.8",
"version": "3.4.9",
"type": "module",
"description": "jwt plugin for GraphQL Yoga.",
"repository": {
Expand Down

0 comments on commit 9f109dd

Please sign in to comment.