@graphcommerce/magento-graphql 4.13.2 → 4.14.0-canary.10
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,6 +1,36 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 4.
|
|
3
|
+
## 4.14.0-canary.10
|
|
4
|
+
|
|
5
|
+
## 4.14.0-canary.9
|
|
6
|
+
|
|
7
|
+
## 4.14.0-canary.8
|
|
8
|
+
|
|
9
|
+
## 4.14.0-canary.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#1738](https://github.com/graphcommerce-org/graphcommerce/pull/1738) [`52882a63e`](https://github.com/graphcommerce-org/graphcommerce/commit/52882a63e96c0d3ba9641c3714d288fa4f420c82) - Do not forward the Prev prop in plugins ([@paales](https://github.com/paales))
|
|
14
|
+
|
|
15
|
+
## 4.14.0-canary.6
|
|
16
|
+
|
|
17
|
+
## 4.14.0-canary.5
|
|
18
|
+
|
|
19
|
+
## 4.14.0-canary.4
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- [#1733](https://github.com/graphcommerce-org/graphcommerce/pull/1733) [`761bd2832`](https://github.com/graphcommerce-org/graphcommerce/commit/761bd2832f115afc8b95bedbf479266309dd5acc) - ApolloLinks, typePolicies and migration scripts are now handled with plugins on the new library component `<GraphQLProvider/>`. Hygraph's, Magento Cart, Customer, Store, Wishlist and Magento GraphQL are all migrated to be using plugins.
|
|
24
|
+
|
|
25
|
+
If you are using custom `links` / `policies` / `migrations` you can pass them as props to the `<GraphQLProvider/>` or create your own local plugin. ([@paales](https://github.com/paales))
|
|
26
|
+
|
|
27
|
+
## 4.14.0-canary.3
|
|
28
|
+
|
|
29
|
+
## 4.14.0-canary.2
|
|
30
|
+
|
|
31
|
+
## 4.13.2-canary.1
|
|
32
|
+
|
|
33
|
+
## 4.13.2-canary.0
|
|
4
34
|
|
|
5
35
|
## 4.13.1
|
|
6
36
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-graphql",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.14.0-canary.10",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "index.ts",
|
|
8
8
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@playwright/test": "^1.21.1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@graphcommerce/graphql": "4.
|
|
22
|
+
"@graphcommerce/graphql": "4.31.0-canary.6"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"next": "^12.1.2",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GraphQLProviderProps } from '@graphcommerce/graphql'
|
|
2
|
+
import type { PluginProps } from '@graphcommerce/next-config'
|
|
3
|
+
import { magentoTypePolicies } from '../typePolicies'
|
|
4
|
+
|
|
5
|
+
export const component = 'GraphQLProvider'
|
|
6
|
+
export const exported = '@graphcommerce/graphql'
|
|
7
|
+
|
|
8
|
+
function MagentoGraphqlGraphqlProvider(props: PluginProps<GraphQLProviderProps>) {
|
|
9
|
+
const { Prev, policies = [], ...rest } = props
|
|
10
|
+
return <Prev {...rest} policies={[magentoTypePolicies, ...policies]} />
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Plugin = MagentoGraphqlGraphqlProvider
|