@graphcommerce/graphql-mesh 9.0.0-canary.114 → 9.0.0-canary.115

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,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.115
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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))
8
+
3
9
  ## 9.0.0-canary.114
4
10
 
5
11
  ### 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
- import { isAsyncIterable } from '@graphql-tools/utils'
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,7 +3,7 @@ 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
  /**
@@ -11,7 +11,7 @@ const fetcher = fetchRetry(
11
11
  * @param {import('fetch-retry').RequestInitWithRetry | undefined} options
12
12
  * @returns {Promise<Response>}
13
13
  */
14
- export default (
14
+ export const fetch = (
15
15
  url: RequestInfo | URL,
16
16
  options: RequestInitWithRetry | undefined,
17
17
  ): Promise<Response> => {
@@ -27,3 +27,5 @@ export default (
27
27
  retryOn: [429],
28
28
  })
29
29
  }
30
+
31
+ 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.114",
5
+ "version": "9.0.0-canary.115",
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.9.0",
10
+ "graphql": "^16.10.0",
32
11
  "long": "^5.2.3",
33
- "tslib": "^2.7.0",
12
+ "tslib": "^2.8.1",
34
13
  "uglify-es": "3.3.10"
35
14
  },
36
15
  "peerDependencies": {
37
- "@apollo/client": "^3",
38
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.114",
39
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.114",
40
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.114"
16
+ "@apollo/client": "*",
17
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.115",
18
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.115",
19
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.115",
20
+ "@graphql-mesh/runtime": "*",
21
+ "@graphql-mesh/types": "*"
41
22
  },
42
23
  "devDependencies": {
43
24
  "@types/uglify-es": "^3.0.3",