@graphcommerce/graphql-mesh 9.0.0-canary.114 → 9.0.0-canary.116
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 +8 -0
- package/api/apolloLink.ts +4 -1
- package/customFetch.ts +6 -2
- package/package.json +9 -28
- package/plugin/forward-headers.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.116
|
|
4
|
+
|
|
5
|
+
## 9.0.0-canary.115
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#2451](https://github.com/graphcommerce-org/graphcommerce/pull/2451) [`af5c1e6`](https://github.com/graphcommerce-org/graphcommerce/commit/af5c1e686792ee7c7294efb0bc3a005946ac5c98) - Made all graphql mesh dependencies peer dependencies so users can upgrade without problems ([@paales](https://github.com/paales))
|
|
10
|
+
|
|
3
11
|
## 9.0.0-canary.114
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/api/apolloLink.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { FetchResult, Operation, RequestHandler } from '@apollo/client/core'
|
|
2
2
|
import { ApolloLink, Observable } from '@apollo/client/core'
|
|
3
3
|
import type { ExecuteMeshFn, MeshInstance, SubscribeMeshFn } from '@graphql-mesh/runtime'
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
function isAsyncIterable<T>(value: any): value is AsyncIterable<T> {
|
|
6
|
+
return value?.[Symbol.asyncIterator] != null
|
|
7
|
+
}
|
|
5
8
|
|
|
6
9
|
const ROOT_VALUE = {}
|
|
7
10
|
|
package/customFetch.ts
CHANGED
|
@@ -3,15 +3,16 @@ import type { RequestInitWithRetry } from 'fetch-retry'
|
|
|
3
3
|
|
|
4
4
|
const fetcher = fetchRetry(
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, no-underscore-dangle, @typescript-eslint/no-var-requires
|
|
6
|
-
process.env.__NEXT_PROCESSED_ENV ? fetch : require('@whatwg-node/fetch').fetch,
|
|
6
|
+
process.env.__NEXT_PROCESSED_ENV ? globalThis.fetch : require('@whatwg-node/fetch').fetch,
|
|
7
7
|
)
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @param {RequestInfo | URL} url
|
|
11
11
|
* @param {import('fetch-retry').RequestInitWithRetry | undefined} options
|
|
12
12
|
* @returns {Promise<Response>}
|
|
13
|
+
* @public
|
|
13
14
|
*/
|
|
14
|
-
export
|
|
15
|
+
export const fetch = (
|
|
15
16
|
url: RequestInfo | URL,
|
|
16
17
|
options: RequestInitWithRetry | undefined,
|
|
17
18
|
): Promise<Response> => {
|
|
@@ -27,3 +28,6 @@ export default (
|
|
|
27
28
|
retryOn: [429],
|
|
28
29
|
})
|
|
29
30
|
}
|
|
31
|
+
|
|
32
|
+
/** @public @alias */
|
|
33
|
+
export default fetch
|
package/package.json
CHANGED
|
@@ -2,42 +2,23 @@
|
|
|
2
2
|
"name": "@graphcommerce/graphql-mesh",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.116",
|
|
6
6
|
"main": "index.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@graphql-mesh/config": "latest",
|
|
9
|
-
"@graphql-mesh/cross-helpers": "latest",
|
|
10
|
-
"@graphql-mesh/graphql": "latest",
|
|
11
|
-
"@graphql-mesh/http": "latest",
|
|
12
|
-
"@graphql-mesh/json-schema": "latest",
|
|
13
|
-
"@graphql-mesh/openapi": "latest",
|
|
14
|
-
"@graphql-mesh/plugin-http-details-extensions": "latest",
|
|
15
|
-
"@graphql-mesh/runtime": "latest",
|
|
16
|
-
"@graphql-mesh/store": "latest",
|
|
17
|
-
"@graphql-mesh/transform-encapsulate": "latest",
|
|
18
|
-
"@graphql-mesh/transform-filter-schema": "latest",
|
|
19
|
-
"@graphql-mesh/transform-hoist-field": "latest",
|
|
20
|
-
"@graphql-mesh/transform-naming-convention": "latest",
|
|
21
|
-
"@graphql-mesh/transform-prefix": "latest",
|
|
22
|
-
"@graphql-mesh/transform-prune": "latest",
|
|
23
|
-
"@graphql-mesh/transform-rename": "latest",
|
|
24
|
-
"@graphql-mesh/transform-replace-field": "latest",
|
|
25
|
-
"@graphql-mesh/transform-type-merging": "latest",
|
|
26
|
-
"@graphql-mesh/types": "latest",
|
|
27
|
-
"@graphql-mesh/utils": "latest",
|
|
28
|
-
"@graphql-tools/utils": "^10.6.0",
|
|
29
8
|
"@whatwg-node/fetch": "^0.10.1",
|
|
30
9
|
"fetch-retry": "^5.0.6",
|
|
31
|
-
"graphql": "^16.
|
|
10
|
+
"graphql": "^16.10.0",
|
|
32
11
|
"long": "^5.2.3",
|
|
33
|
-
"tslib": "^2.
|
|
12
|
+
"tslib": "^2.8.1",
|
|
34
13
|
"uglify-es": "3.3.10"
|
|
35
14
|
},
|
|
36
15
|
"peerDependencies": {
|
|
37
|
-
"@apollo/client": "
|
|
38
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
|
39
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
40
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
16
|
+
"@apollo/client": "*",
|
|
17
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.116",
|
|
18
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.116",
|
|
19
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.116",
|
|
20
|
+
"@graphql-mesh/runtime": "*",
|
|
21
|
+
"@graphql-mesh/types": "*"
|
|
41
22
|
},
|
|
42
23
|
"devDependencies": {
|
|
43
24
|
"@types/uglify-es": "^3.0.3",
|