@graphcommerce/graphql 6.0.0-canary.49 → 6.0.0-canary.50

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.0.0-canary.50
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1851](https://github.com/graphcommerce-org/graphcommerce/pull/1851) [`550fd9f4f`](https://github.com/graphcommerce-org/graphcommerce/commit/550fd9f4ff8ce1a78254d7f1d711236f0d9ddef7) - More compact measure perf link ([@paales](https://github.com/paales))
8
+
3
9
  ## 6.0.0-canary.49
4
10
 
5
11
  ## 6.0.0-canary.48
@@ -46,7 +46,7 @@ const renderLine = (line: {
46
46
  dashrepeat >= 1 ? `${waitDotsRound > 1 ? '┼' : ''}${'─'.repeat(dashrepeat - 1)}` : ''
47
47
  const result = `${startSpacing}├${waitDots}${dashes}┤`
48
48
 
49
- return ['', ...line.additional, result]
49
+ return [...line.additional, result]
50
50
  }
51
51
 
52
52
  export const flushMeasurePerf = () => {
@@ -69,7 +69,7 @@ export const flushMeasurePerf = () => {
69
69
  })
70
70
  end -= start
71
71
 
72
- const colDivider = Math.max(Math.floor(end / 150), 20)
72
+ const colDivider = end > 1000 ? end / 50 : 1000 / 50
73
73
 
74
74
  const lines = entries.map(([_, value]) => {
75
75
  const requestStart = value.start.getTime() - start
@@ -86,7 +86,7 @@ export const flushMeasurePerf = () => {
86
86
  requestEnd,
87
87
  additional: [
88
88
  value.operationName,
89
- `${duration - (duration - serverStart)}ms`,
89
+ // `${duration - (duration - serverStart)}ms`,
90
90
  `${duration - serverStart}ms`,
91
91
  ],
92
92
  colDivider,
@@ -94,14 +94,13 @@ export const flushMeasurePerf = () => {
94
94
  })
95
95
 
96
96
  const items = [
97
- ['', 'GraphQL requests', 'Bootup', 'Mesh', 'Waterfall'],
98
- ['', '', '', '', ''],
97
+ ['Operation', 'Mesh', 'Timeline'],
99
98
  ...lines,
100
99
  renderLine({
101
100
  serverStart: 0,
102
101
  requestStart: 0,
103
102
  requestEnd: end,
104
- additional: [`Total time`, '', `${end}ms`],
103
+ additional: [`Total time`, `${end}ms`],
105
104
  colDivider,
106
105
  }),
107
106
  ]
@@ -118,7 +117,7 @@ export const flushMeasurePerf = () => {
118
117
  items.forEach((item) => {
119
118
  item.forEach((_, index) => {
120
119
  item[index] = `${item[index].padEnd(colWidths[index], ' ')}${
121
- index !== item.length - 1 ? ` │ ` : ''
120
+ index !== item.length - 1 ? `` : ''
122
121
  }`
123
122
  })
124
123
  })
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.0.0-canary.49",
5
+ "version": "6.0.0-canary.50",
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.10",
17
- "@graphcommerce/graphql-codegen-near-operation-file": "6.0.0-canary.49",
18
- "@graphcommerce/graphql-codegen-relay-optimizer-plugin": "6.0.0-canary.49",
17
+ "@graphcommerce/graphql-codegen-near-operation-file": "6.0.0-canary.50",
18
+ "@graphcommerce/graphql-codegen-relay-optimizer-plugin": "6.0.0-canary.50",
19
19
  "@graphql-codegen/add": "4.0.1",
20
20
  "@graphql-codegen/fragment-matcher": "4.0.1",
21
21
  "@graphql-codegen/introspection": "3.0.1",
@@ -29,9 +29,9 @@
29
29
  "graphql": "16.6.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@graphcommerce/eslint-config-pwa": "6.0.0-canary.49",
33
- "@graphcommerce/prettier-config-pwa": "6.0.0-canary.49",
34
- "@graphcommerce/typescript-config-pwa": "6.0.0-canary.49"
32
+ "@graphcommerce/eslint-config-pwa": "6.0.0-canary.50",
33
+ "@graphcommerce/prettier-config-pwa": "6.0.0-canary.50",
34
+ "@graphcommerce/typescript-config-pwa": "6.0.0-canary.50"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "react": "^18.2.0",