@checkstack/healthcheck-frontend 0.7.0 → 0.7.1
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,14 @@
|
|
|
1
1
|
# @checkstack/healthcheck-frontend
|
|
2
2
|
|
|
3
|
+
## 0.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- deec10c: Fix production crash when opening health check accordion and enable sourcemaps
|
|
8
|
+
|
|
9
|
+
- Fixed TypeError in `HealthCheckLatencyChart` where recharts Tooltip content function was returning `undefined` instead of `null`, causing "can't access property 'value', o is undefined" error
|
|
10
|
+
- Enabled production sourcemaps in Vite config for better debugging of production errors
|
|
11
|
+
|
|
3
12
|
## 0.7.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -89,7 +89,8 @@ export const HealthCheckLatencyChart: React.FC<
|
|
|
89
89
|
/>
|
|
90
90
|
<Tooltip<number, "latencyMs">
|
|
91
91
|
content={({ active, payload }) => {
|
|
92
|
-
|
|
92
|
+
// eslint-disable-next-line unicorn/no-null -- recharts requires null return, not undefined
|
|
93
|
+
if (!active || !payload?.length) return null;
|
|
93
94
|
const data = payload[0].payload as (typeof chartData)[number];
|
|
94
95
|
const startTime = format(
|
|
95
96
|
new Date(data.timestamp),
|
|
@@ -197,7 +198,8 @@ export const HealthCheckLatencyChart: React.FC<
|
|
|
197
198
|
/>
|
|
198
199
|
<Tooltip<number, "latencyMs">
|
|
199
200
|
content={({ active, payload }) => {
|
|
200
|
-
|
|
201
|
+
// eslint-disable-next-line unicorn/no-null -- recharts requires null return, not undefined
|
|
202
|
+
if (!active || !payload?.length) return null;
|
|
201
203
|
const data = payload[0].payload as (typeof chartData)[number];
|
|
202
204
|
return (
|
|
203
205
|
<div
|