@graphcommerce/graphql 5.2.0-canary.8 → 6.0.0-canary.20

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,29 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.0.0-canary.20
4
+
5
+ ## 5.2.0-canary.19
6
+
7
+ ## 5.2.0-canary.18
8
+
9
+ ## 5.2.0-canary.17
10
+
11
+ ## 5.2.0-canary.16
12
+
13
+ ## 5.2.0-canary.15
14
+
15
+ ## 5.2.0-canary.14
16
+
17
+ ## 5.2.0-canary.13
18
+
19
+ ## 5.2.0-canary.12
20
+
21
+ ## 5.2.0-canary.11
22
+
23
+ ## 5.2.0-canary.10
24
+
25
+ ## 5.2.0-canary.9
26
+
3
27
  ## 5.2.0-canary.8
4
28
 
5
29
  ## 5.2.0-canary.7
package/apollo.ts CHANGED
@@ -1,5 +1,3 @@
1
- import { ApolloCache, NormalizedCacheObject } from '@apollo/client'
2
-
3
1
  export { cloneDeep, mergeDeep } from '@apollo/client/utilities'
4
2
 
5
3
  export * from '@apollo/client'
@@ -8,8 +6,3 @@ export * from '@apollo/client/link/context'
8
6
  export * from '@apollo/client/link/error'
9
7
 
10
8
  export { getOperationName } from '@apollo/client/utilities'
11
-
12
- export type ClientContext = {
13
- cache: ApolloCache<NormalizedCacheObject>
14
- headers?: Record<string, string>
15
- }
@@ -51,10 +51,7 @@ export function GraphQLProvider(props: GraphQLProviderProps) {
51
51
  ...(typeof window === 'undefined' ? [errorLink, measurePerformanceLink] : []),
52
52
  ...links,
53
53
  // The actual Http connection to the Mesh backend.
54
- new HttpLink({
55
- uri: process.env.NEXT_PUBLIC_GRAPHQL_ENDPOINT,
56
- credentials: 'same-origin',
57
- }),
54
+ new HttpLink({ uri: '/api/graphql', credentials: 'same-origin' }),
58
55
  ])
59
56
 
60
57
  const createCache = () =>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/graphql",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "5.2.0-canary.8",
5
+ "version": "6.0.0-canary.20",
6
6
  "sideEffects": false,
7
7
  "main": "index.ts",
8
8
  "prettier": "@graphcommerce/prettier-config-pwa",
@@ -14,24 +14,24 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@apollo/client": "^3.7.2",
17
- "@graphcommerce/graphql-codegen-near-operation-file": "5.2.0-canary.8",
18
- "@graphcommerce/graphql-codegen-relay-optimizer-plugin": "5.2.0-canary.8",
19
- "@graphql-codegen/add": "3.2.3",
20
- "@graphql-codegen/fragment-matcher": "3.3.3",
21
- "@graphql-codegen/introspection": "2.2.3",
22
- "@graphql-codegen/schema-ast": "2.6.0",
23
- "@graphql-codegen/typed-document-node": "2.3.10",
24
- "@graphql-codegen/typescript": "2.8.5",
17
+ "@graphcommerce/graphql-codegen-near-operation-file": "6.0.0-canary.20",
18
+ "@graphcommerce/graphql-codegen-relay-optimizer-plugin": "6.0.0-canary.20",
19
+ "@graphql-codegen/add": "4.0.0",
20
+ "@graphql-codegen/fragment-matcher": "4.0.0",
21
+ "@graphql-codegen/introspection": "3.0.0",
22
+ "@graphql-codegen/schema-ast": "3.0.0",
23
+ "@graphql-codegen/typed-document-node": "3.0.0",
24
+ "@graphql-codegen/typescript": "3.0.0",
25
25
  "@graphql-codegen/typescript-apollo-client-helpers": "2.2.6",
26
- "@graphql-codegen/typescript-document-nodes": "2.3.10",
27
- "@graphql-codegen/typescript-operations": "2.5.10",
26
+ "@graphql-codegen/typescript-document-nodes": "3.0.0",
27
+ "@graphql-codegen/typescript-operations": "3.0.0",
28
28
  "apollo3-cache-persist": "^0.14.1",
29
29
  "graphql": "16.6.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@graphcommerce/eslint-config-pwa": "5.2.0-canary.8",
33
- "@graphcommerce/prettier-config-pwa": "5.2.0-canary.8",
34
- "@graphcommerce/typescript-config-pwa": "5.2.0-canary.8"
32
+ "@graphcommerce/eslint-config-pwa": "6.0.0-canary.20",
33
+ "@graphcommerce/prettier-config-pwa": "6.0.0-canary.20",
34
+ "@graphcommerce/typescript-config-pwa": "6.0.0-canary.20"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "react": "^18.2.0",
@@ -33,7 +33,7 @@ export async function waitForGraphQlResponse<Q, V>(
33
33
  const test = base.extend<ApolloClientTest>({
34
34
  apolloClient: async ({}, use) => {
35
35
  const client = new ApolloClient({
36
- uri: process.env.NEXT_PUBLIC_GRAPHQL_ENDPOINT,
36
+ uri: 'http://localhost:3000/api/graphql',
37
37
  credentials: 'same-origin',
38
38
  cache: new InMemoryCache(),
39
39
  })