@graphcommerce/graphql-mesh 8.1.0-canary.9 → 9.0.0-canary.54

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 CHANGED
@@ -1,5 +1,100 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.54
4
+
5
+ ## 8.1.0-canary.53
6
+
7
+ ## 8.1.0-canary.52
8
+
9
+ ## 8.1.0-canary.51
10
+
11
+ ## 8.1.0-canary.50
12
+
13
+ ## 8.1.0-canary.49
14
+
15
+ ## 8.1.0-canary.48
16
+
17
+ ## 8.1.0-canary.47
18
+
19
+ ## 8.1.0-canary.46
20
+
21
+ ## 8.1.0-canary.45
22
+
23
+ ## 8.1.0-canary.44
24
+
25
+ ## 8.1.0-canary.43
26
+
27
+ ## 8.1.0-canary.42
28
+
29
+ ## 8.1.0-canary.41
30
+
31
+ ## 8.1.0-canary.40
32
+
33
+ ## 8.1.0-canary.39
34
+
35
+ ## 8.1.0-canary.38
36
+
37
+ ## 8.1.0-canary.37
38
+
39
+ ## 8.1.0-canary.36
40
+
41
+ ## 8.1.0-canary.35
42
+
43
+ ## 8.1.0-canary.34
44
+
45
+ ## 8.1.0-canary.33
46
+
47
+ ## 8.1.0-canary.32
48
+
49
+ ## 8.1.0-canary.31
50
+
51
+ ## 8.1.0-canary.30
52
+
53
+ ## 8.1.0-canary.29
54
+
55
+ ### Patch Changes
56
+
57
+ - [#2290](https://github.com/graphcommerce-org/graphcommerce/pull/2290) [`21f2ac0`](https://github.com/graphcommerce-org/graphcommerce/commit/21f2ac06b95cfc9b51febe19e6859cbba2b578b4) - Fix cors issues with Dynamic Row Property Picker App
58
+ ([@JoshuaS98](https://github.com/JoshuaS98))
59
+
60
+ ## 8.1.0-canary.28
61
+
62
+ ## 8.1.0-canary.27
63
+
64
+ ## 8.1.0-canary.26
65
+
66
+ ## 8.1.0-canary.25
67
+
68
+ ## 8.1.0-canary.24
69
+
70
+ ## 8.1.0-canary.23
71
+
72
+ ## 8.1.0-canary.22
73
+
74
+ ## 8.1.0-canary.21
75
+
76
+ ## 8.1.0-canary.20
77
+
78
+ ## 8.1.0-canary.19
79
+
80
+ ## 8.1.0-canary.18
81
+
82
+ ## 8.1.0-canary.17
83
+
84
+ ## 8.1.0-canary.16
85
+
86
+ ## 8.1.0-canary.15
87
+
88
+ ## 8.1.0-canary.14
89
+
90
+ ## 8.1.0-canary.13
91
+
92
+ ## 8.1.0-canary.12
93
+
94
+ ## 8.1.0-canary.11
95
+
96
+ ## 8.1.0-canary.10
97
+
3
98
  ## 8.1.0-canary.9
4
99
 
5
100
  ## 8.1.0-canary.8
@@ -7,5 +7,19 @@ const handler = createBuiltMeshHTTPHandler()
7
7
  export const createServer = async (endpoint: string) => {
8
8
  if (endpoint !== '/api/graphql')
9
9
  throw Error('Moving the GraphQL Endpoint is not supported at the moment')
10
- return (req: NextApiRequest, res: NextApiResponse) => handler(req, res)
10
+ return (req: NextApiRequest, res: NextApiResponse) => {
11
+ res.setHeader('Access-Control-Allow-Origin', req.headers.origin || '*')
12
+ const requestedHeaders = req.headers['access-control-request-headers']
13
+ if (requestedHeaders) {
14
+ res.setHeader('Access-Control-Allow-Headers', requestedHeaders)
15
+ }
16
+
17
+ if (req.method === 'OPTIONS') {
18
+ res.status(200)
19
+ res.end()
20
+ return
21
+ }
22
+
23
+ handler(req, res)
24
+ }
11
25
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/graphql-mesh",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "8.1.0-canary.9",
5
+ "version": "9.0.0-canary.54",
6
6
  "main": "index.ts",
7
7
  "dependencies": {
8
8
  "@graphql-mesh/apollo-link": "latest",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@apollo/client": "^3",
29
- "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.9",
30
- "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.9",
31
- "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.9",
29
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.54",
30
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.54",
31
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.54",
32
32
  "graphql": "^16.7.1"
33
33
  },
34
34
  "devDependencies": {