@graphcommerce/graphql 6.2.0-canary.88 → 6.2.0-canary.89
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,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.2.0-canary.89
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2031](https://github.com/graphcommerce-org/graphcommerce/pull/2031) [`4d8fc9e99`](https://github.com/graphcommerce-org/graphcommerce/commit/4d8fc9e998fc9361282833316ec9564da0644ed6) - Eslint fixes and suppress accepted warnings ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
3
9
|
## 6.2.0-canary.88
|
|
4
10
|
|
|
5
11
|
## 6.2.0-canary.87
|
|
@@ -6,7 +6,8 @@ import {
|
|
|
6
6
|
ApolloProvider,
|
|
7
7
|
HttpLink,
|
|
8
8
|
} from '@apollo/client'
|
|
9
|
-
|
|
9
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
10
|
+
import { useStorefrontConfig } from '@graphcommerce/next-ui/hooks/useStorefrontConfig'
|
|
10
11
|
import type { AppProps } from 'next/app'
|
|
11
12
|
import { useCallback, useEffect, useRef, useState } from 'react'
|
|
12
13
|
import { ApolloClientConfig, graphqlConfig, ApolloClientConfigInput } from '../../config'
|
|
@@ -43,7 +43,7 @@ const renderLine = (line: {
|
|
|
43
43
|
|
|
44
44
|
export const flushMeasurePerf = () => {
|
|
45
45
|
const entries = Array.from(running.entries())
|
|
46
|
-
if (entries.length === 0 || !entries.every(([
|
|
46
|
+
if (entries.length === 0 || !entries.every(([, v]) => v.end)) return
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Print to the console a timeline that gives a visual reprentation of the starting time and
|
|
@@ -55,7 +55,7 @@ export const flushMeasurePerf = () => {
|
|
|
55
55
|
|
|
56
56
|
let start = Number.MAX_VALUE
|
|
57
57
|
let end = 0
|
|
58
|
-
entries.forEach(([
|
|
58
|
+
entries.forEach(([, value]) => {
|
|
59
59
|
if (value.start.getTime() < start) start = value.start.getTime()
|
|
60
60
|
if (value.end && value.end.getTime() > end) end = value.end.getTime()
|
|
61
61
|
})
|
|
@@ -63,7 +63,7 @@ export const flushMeasurePerf = () => {
|
|
|
63
63
|
|
|
64
64
|
const colDivider = end > 1000 ? end / 50 : 1000 / 50
|
|
65
65
|
|
|
66
|
-
const lines = entries.map(([
|
|
66
|
+
const lines = entries.map(([, value]) => {
|
|
67
67
|
const requestStart = value.start.getTime() - start
|
|
68
68
|
const requestEnd = value.end ? value.end.getTime() - start : 0
|
|
69
69
|
const duration = requestEnd - requestStart
|
|
@@ -109,9 +109,10 @@ export const flushMeasurePerf = () => {
|
|
|
109
109
|
// padd the items to the max length
|
|
110
110
|
items.forEach((item) => {
|
|
111
111
|
item.forEach((_, index) => {
|
|
112
|
-
const [str,
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
const [str] = (Array.isArray(item[index]) ? item[index] : [item[index], item[index]]) as [
|
|
113
|
+
string,
|
|
114
|
+
string,
|
|
115
|
+
]
|
|
115
116
|
|
|
116
117
|
const val = (Array.isArray(item[index]) ? item[index][1] : item[index]) as string
|
|
117
118
|
|
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": "6.2.0-canary.
|
|
5
|
+
"version": "6.2.0-canary.89",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "index.ts",
|
|
8
8
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@apollo/client": "~3.7.17",
|
|
17
|
-
"@graphcommerce/graphql-codegen-near-operation-file": "6.2.0-canary.
|
|
18
|
-
"@graphcommerce/graphql-codegen-relay-optimizer-plugin": "6.2.0-canary.
|
|
17
|
+
"@graphcommerce/graphql-codegen-near-operation-file": "6.2.0-canary.89",
|
|
18
|
+
"@graphcommerce/graphql-codegen-relay-optimizer-plugin": "6.2.0-canary.89",
|
|
19
19
|
"@graphql-codegen/add": "5.0.0",
|
|
20
20
|
"@graphql-codegen/fragment-matcher": "5.0.0",
|
|
21
21
|
"@graphql-codegen/introspection": "4.0.0",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"apollo3-cache-persist": "^0.14.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@graphcommerce/eslint-config-pwa": "6.2.0-canary.
|
|
32
|
-
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.
|
|
33
|
-
"@graphcommerce/typescript-config-pwa": "6.2.0-canary.
|
|
31
|
+
"@graphcommerce/eslint-config-pwa": "6.2.0-canary.89",
|
|
32
|
+
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.89",
|
|
33
|
+
"@graphcommerce/typescript-config-pwa": "6.2.0-canary.89"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": "^18.2.0",
|