@graphcommerce/graphql-mesh 4.1.7 → 4.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/api/createEnvelop.ts +3 -10
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.1.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1590](https://github.com/graphcommerce-org/graphcommerce/pull/1590) [`3ff0e7f2d`](https://github.com/graphcommerce-org/graphcommerce/commit/3ff0e7f2d26edad228848268d24e9aaf56cd2c30) Thanks [@paales](https://github.com/paales)! - useExtendContext doesn’t need to be added in createEnvelop already added by default
|
|
8
|
+
|
|
3
9
|
## 4.1.7
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/api/createEnvelop.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
2
|
-
import {
|
|
2
|
+
import { useApolloTracing } from '@envelop/apollo-tracing'
|
|
3
|
+
import { createServer as createYogaServer } from '@graphql-yoga/node'
|
|
3
4
|
import { getBuiltMesh, rawServeConfig } from '../.mesh'
|
|
4
5
|
|
|
5
6
|
export async function createServer(endpoint: string) {
|
|
@@ -10,15 +11,7 @@ export async function createServer(endpoint: string) {
|
|
|
10
11
|
|
|
11
12
|
// pass the Mesh instance to Yoga and configure GraphiQL
|
|
12
13
|
const server = createYogaServer({
|
|
13
|
-
plugins: [
|
|
14
|
-
...mesh.plugins,
|
|
15
|
-
useExtendContext(({ req, res }) => ({
|
|
16
|
-
...req,
|
|
17
|
-
headers: req.headers,
|
|
18
|
-
cookies: req.cookies,
|
|
19
|
-
res,
|
|
20
|
-
})),
|
|
21
|
-
],
|
|
14
|
+
plugins: [...mesh.plugins, useApolloTracing()],
|
|
22
15
|
context: ({ req }) => ({ ...req, ...mesh.meshContext }),
|
|
23
16
|
graphiql: {
|
|
24
17
|
endpoint,
|
package/package.json
CHANGED
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
"name": "@graphcommerce/graphql-mesh",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "4.1.
|
|
5
|
+
"version": "4.1.8",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "index.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@
|
|
11
|
-
"@graphql-mesh/
|
|
12
|
-
"@graphql-mesh/
|
|
13
|
-
"@graphql-mesh/
|
|
14
|
-
"@graphql-mesh/
|
|
15
|
-
"@graphql-
|
|
10
|
+
"@envelop/apollo-tracing": "^3.5.0",
|
|
11
|
+
"@graphql-mesh/apollo-link": "^6.0.0",
|
|
12
|
+
"@graphql-mesh/config": "6.0.0",
|
|
13
|
+
"@graphql-mesh/graphql": "0.29.10",
|
|
14
|
+
"@graphql-mesh/types": "0.79.0",
|
|
15
|
+
"@graphql-mesh/utils": "0.38.0",
|
|
16
|
+
"@graphql-yoga/node": "^2.13.7",
|
|
16
17
|
"graphql": "16.5.0",
|
|
17
18
|
"next": "12.2.5"
|
|
18
19
|
},
|