@graphcommerce/graphql 7.1.0-canary.37 → 7.1.0-canary.39

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,15 @@
1
1
  # Change Log
2
2
 
3
+ ## 7.1.0-canary.39
4
+
5
+ ## 7.1.0-canary.38
6
+
7
+ ### Patch Changes
8
+
9
+ - [#2048](https://github.com/graphcommerce-org/graphcommerce/pull/2048) [`4a29bf7e0`](https://github.com/graphcommerce-org/graphcommerce/commit/4a29bf7e0d6cfa4ee360ef3f28b779689f6c1e11) - Include @connection, @export, @defer and @nonreactive in schema, so they can be used, in queries ([@Jessevdpoel](https://github.com/Jessevdpoel))
10
+
11
+ - [#2048](https://github.com/graphcommerce-org/graphcommerce/pull/2048) [`072cd14f2`](https://github.com/graphcommerce-org/graphcommerce/commit/072cd14f29b58b907ce04ee294e8fb9c6190556a) - Allow configurable_product_options_selection to be stored in the localStorage so queries can be resolved correctly ([@Jessevdpoel](https://github.com/Jessevdpoel))
12
+
3
13
  ## 7.1.0-canary.37
4
14
 
5
15
  ## 7.1.0-canary.36
@@ -1,2 +1,26 @@
1
- "Indicates that the client should resolve the field value locally as part of a query, e.g. in a React component"
1
+ """
2
+ The @client directive allows you to resolve client-only data alongside your server data. These fields are not sent to the GraphQL server.
3
+ """
2
4
  directive @client on FIELD
5
+
6
+ """
7
+ The @connection directive allows you to specify a custom cache key for paginated results. For more information, see this section on the [@connection directive](https://www.apollographql.com/docs/react/caching/advanced-topics/#the-connection-directive).
8
+ """
9
+ directive @connection(key: String, filter: [String]) on FIELD
10
+
11
+ """
12
+ This directive enables your queries to receive data for specific fields incrementally, instead of receiving all field data at the same time. This is helpful whenever some fields in a query take much longer to resolve than others.
13
+ """
14
+ directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT
15
+
16
+ # """
17
+ # Directs the executor to stream plural fields when the `if` argument is true or undefined.
18
+ # """
19
+ # directive @stream(if: Boolean! = true, label: String, initialCount: Int! = 0) on FIELD
20
+
21
+ directive @export(exportName: String!) on FIELD
22
+
23
+ """
24
+ The @nonreactive directive can be used to mark query fields or fragment spreads and is used to indicate that changes to the data contained within the subtrees marked @nonreactive should not trigger rerendering.
25
+ """
26
+ directive @nonreactive on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
@@ -31,7 +31,6 @@ export const persistenceMapper = (data: string): Promise<string> => {
31
31
  'ROOT_QUERY.checkoutAgreements',
32
32
  'ROOT_QUERY.storeConfig',
33
33
  'ROOT_QUERY.__type*',
34
- 'ConfigurableProduct:*.configurable_product_options_selection*',
35
34
  '*Product:{"uid":"*"}.crosssell_products',
36
35
  ])
37
36
 
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": "7.1.0-canary.37",
5
+ "version": "7.1.0-canary.39",
6
6
  "sideEffects": false,
7
7
  "main": "index.ts",
8
8
  "prettier": "@graphcommerce/prettier-config-pwa",
@@ -13,9 +13,8 @@
13
13
  }
14
14
  },
15
15
  "dependencies": {
16
- "@apollo/client": "~3.8.2",
17
- "@graphcommerce/graphql-codegen-near-operation-file": "7.1.0-canary.37",
18
- "@graphcommerce/graphql-codegen-relay-optimizer-plugin": "7.1.0-canary.37",
16
+ "@graphcommerce/graphql-codegen-near-operation-file": "7.1.0-canary.39",
17
+ "@graphcommerce/graphql-codegen-relay-optimizer-plugin": "7.1.0-canary.39",
19
18
  "@graphql-codegen/add": "5.0.0",
20
19
  "@graphql-codegen/fragment-matcher": "5.0.0",
21
20
  "@graphql-codegen/introspection": "4.0.0",
@@ -27,12 +26,11 @@
27
26
  "@graphql-codegen/typescript-operations": "4.0.1",
28
27
  "apollo3-cache-persist": "^0.14.1"
29
28
  },
30
- "devDependencies": {
31
- "@graphcommerce/eslint-config-pwa": "7.1.0-canary.37",
32
- "@graphcommerce/prettier-config-pwa": "7.1.0-canary.37",
33
- "@graphcommerce/typescript-config-pwa": "7.1.0-canary.37"
34
- },
35
29
  "peerDependencies": {
30
+ "@apollo/client": "^3",
31
+ "@graphcommerce/eslint-config-pwa": "7.1.0-canary.39",
32
+ "@graphcommerce/prettier-config-pwa": "7.1.0-canary.39",
33
+ "@graphcommerce/typescript-config-pwa": "7.1.0-canary.39",
36
34
  "graphql": "^16.7.1",
37
35
  "react": "^18.2.0",
38
36
  "react-dom": "^18.2.0"