@graphcommerce/graphql-mesh 10.0.0-canary.68 → 10.0.0-canary.72

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,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.0.0-canary.72
4
+
5
+ ## 10.0.0-canary.71
6
+
7
+ ## 10.0.0-canary.70
8
+
9
+ ### Major Changes
10
+
11
+ - [#2565](https://github.com/graphcommerce-org/graphcommerce/pull/2565) [`c96dfcd`](https://github.com/graphcommerce-org/graphcommerce/commit/c96dfcdca981baca387c270ad9e2b9515cdd00cc) - Updated to Apollo Client 4 ([@paales](https://github.com/paales))
12
+
13
+ ## 10.0.0-canary.69
14
+
3
15
  ## 10.0.0-canary.68
4
16
 
5
17
  ## 10.0.0-canary.67
package/api/apolloLink.ts CHANGED
@@ -1,5 +1,4 @@
1
- import type { FetchResult, Operation, RequestHandler } from '@apollo/client/core'
2
- import { ApolloLink, Observable } from '@apollo/client/core'
1
+ import { ApolloLink, Observable } from '@apollo/client'
3
2
  import type { ExecuteMeshFn, MeshInstance, SubscribeMeshFn } from '@graphql-mesh/runtime'
4
3
 
5
4
  function isAsyncIterable<T>(value: any): value is AsyncIterable<T> {
@@ -10,8 +9,8 @@ const ROOT_VALUE = {}
10
9
 
11
10
  function createMeshApolloRequestHandler(
12
11
  mesh: MeshInstance | Promise<MeshInstance>,
13
- ): RequestHandler {
14
- return (operation: Operation): Observable<FetchResult> =>
12
+ ): ApolloLink.RequestHandler {
13
+ return (operation: ApolloLink.Operation): Observable<ApolloLink.Result> =>
15
14
  new Observable((observer) => {
16
15
  Promise.resolve()
17
16
  .then(async () => {
package/package.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@graphcommerce/graphql-mesh",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "10.0.0-canary.68",
5
+ "version": "10.0.0-canary.72",
6
6
  "dependencies": {
7
- "@whatwg-node/fetch": "^0.10.10",
7
+ "@whatwg-node/fetch": "^0.10.13",
8
8
  "fetch-retry": "^5.0.6",
9
9
  "graphql": "^16.12.0",
10
10
  "long": "^5.3.2",
@@ -20,9 +20,9 @@
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@apollo/client": "*",
23
- "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.68",
24
- "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.68",
25
- "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.68",
23
+ "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.72",
24
+ "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.72",
25
+ "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.72",
26
26
  "@graphql-mesh/runtime": "*",
27
27
  "@graphql-mesh/types": "*"
28
28
  },