@graphcommerce/graphql 3.4.0 → 3.4.3
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 +25 -0
- package/index.ts +0 -1
- package/package.json +15 -15
- package/apollo-hooks/useClientQuery.ts +0 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1562](https://github.com/graphcommerce-org/graphcommerce/pull/1562) [`01f1588c9`](https://github.com/graphcommerce-org/graphcommerce/commit/01f1588c9200bb39dd61146e260bfa2b32060612) Thanks [@paales](https://github.com/paales)! - The context was missing in apollo client
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`475d23197`](https://github.com/graphcommerce-org/graphcommerce/commit/475d23197a6ce4b08cc325f872834ca592aa28dc)]:
|
|
10
|
+
- @graphcommerce/graphql-codegen-near-operation-file@3.0.16
|
|
11
|
+
|
|
12
|
+
## 3.4.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#1553](https://github.com/graphcommerce-org/graphcommerce/pull/1553) [`1afc6a547`](https://github.com/graphcommerce-org/graphcommerce/commit/1afc6a5473d6e31f47b5d0188801803b31865290) Thanks [@NickdeK](https://github.com/NickdeK)! - Remove unused useClientQuery
|
|
17
|
+
|
|
18
|
+
## 3.4.1
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [#1552](https://github.com/graphcommerce-org/graphcommerce/pull/1552) [`18054c441`](https://github.com/graphcommerce-org/graphcommerce/commit/18054c441962ba750bed3acc39ab46c8d3a341ce) Thanks [@paales](https://github.com/paales)! - Updated to Next.js v12.2.2 and other packages and made compatible
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [[`18054c441`](https://github.com/graphcommerce-org/graphcommerce/commit/18054c441962ba750bed3acc39ab46c8d3a341ce)]:
|
|
25
|
+
- @graphcommerce/graphql-codegen-near-operation-file@3.0.15
|
|
26
|
+
- @graphcommerce/graphql-codegen-relay-optimizer-plugin@3.0.9
|
|
27
|
+
|
|
3
28
|
## 3.4.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/index.ts
CHANGED
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": "3.4.
|
|
5
|
+
"version": "3.4.3",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "index.ts",
|
|
8
8
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
@@ -13,25 +13,25 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^4.1.
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^4.1.9",
|
|
17
17
|
"@graphcommerce/prettier-config-pwa": "^4.0.6",
|
|
18
|
-
"@graphcommerce/typescript-config-pwa": "^4.0.
|
|
18
|
+
"@graphcommerce/typescript-config-pwa": "^4.0.4",
|
|
19
19
|
"@playwright/test": "^1.21.1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@apollo/client": "^3.6.9",
|
|
23
|
-
"@graphcommerce/graphql-codegen-near-operation-file": "3.0.
|
|
24
|
-
"@graphcommerce/graphql-codegen-relay-optimizer-plugin": "3.0.
|
|
25
|
-
"@graphql-codegen/add": "3.
|
|
26
|
-
"@graphql-codegen/fragment-matcher": "3.
|
|
27
|
-
"@graphql-codegen/introspection": "2.
|
|
28
|
-
"@graphql-codegen/schema-ast": "2.
|
|
29
|
-
"@graphql-codegen/typed-document-node": "2.
|
|
30
|
-
"@graphql-codegen/typescript": "2.
|
|
31
|
-
"@graphql-codegen/typescript-apollo-client-helpers": "2.1
|
|
32
|
-
"@graphql-codegen/typescript-document-nodes": "2.
|
|
33
|
-
"@graphql-codegen/typescript-operations": "2.
|
|
34
|
-
"apollo3-cache-persist": "^0.14.
|
|
23
|
+
"@graphcommerce/graphql-codegen-near-operation-file": "3.0.16",
|
|
24
|
+
"@graphcommerce/graphql-codegen-relay-optimizer-plugin": "3.0.9",
|
|
25
|
+
"@graphql-codegen/add": "3.2.0",
|
|
26
|
+
"@graphql-codegen/fragment-matcher": "3.3.0",
|
|
27
|
+
"@graphql-codegen/introspection": "2.2.0",
|
|
28
|
+
"@graphql-codegen/schema-ast": "2.5.0",
|
|
29
|
+
"@graphql-codegen/typed-document-node": "2.3.1",
|
|
30
|
+
"@graphql-codegen/typescript": "2.7.1",
|
|
31
|
+
"@graphql-codegen/typescript-apollo-client-helpers": "2.2.1",
|
|
32
|
+
"@graphql-codegen/typescript-document-nodes": "2.3.1",
|
|
33
|
+
"@graphql-codegen/typescript-operations": "2.5.1",
|
|
34
|
+
"apollo3-cache-persist": "^0.14.1",
|
|
35
35
|
"graphql": "16.5.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useQuery as useQueryApollo } from '@apollo/client'
|
|
2
|
-
import { useEffect, useState } from 'react'
|
|
3
|
-
|
|
4
|
-
// eslint-disable-next-line prefer-const, import/no-mutable-exports
|
|
5
|
-
export const useClientQuery: typeof useQueryApollo = (query, options) => {
|
|
6
|
-
const [firstRender, setFirstRender] = useState(true)
|
|
7
|
-
|
|
8
|
-
const response = useQueryApollo(query, options)
|
|
9
|
-
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
if (firstRender) setFirstRender(false)
|
|
12
|
-
}, [firstRender])
|
|
13
|
-
|
|
14
|
-
return response
|
|
15
|
-
}
|