Skip to content

Commit

Permalink
chore(release): update monorepo packages versions (#8191)
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 25, 2024
1 parent 83a73ab commit 982c3c7
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 26 deletions.
25 changes: 0 additions & 25 deletions .changeset/odd-pants-sing.md

This file was deleted.

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

## 1.4.0

### Minor Changes

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

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

## 1.3.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/jwt-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-mesh/plugin-jwt-auth",
"version": "1.3.10",
"version": "1.4.0",
"type": "module",
"repository": {
"type": "git",
Expand Down

0 comments on commit 982c3c7

Please sign in to comment.