@checkstack/healthcheck-script-backend 0.3.7 → 0.3.9
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 +44 -0
- package/package.json +5 -5
- package/src/inline-script-collector.ts +2 -1
- package/src/strategy.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @checkstack/healthcheck-script-backend
|
|
2
2
|
|
|
3
|
+
## 0.3.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [26d8bae]
|
|
8
|
+
- Updated dependencies [26d8bae]
|
|
9
|
+
- @checkstack/healthcheck-common@0.11.0
|
|
10
|
+
- @checkstack/backend-api@0.12.0
|
|
11
|
+
|
|
12
|
+
## 0.3.8
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- d1a2796: Enforce stricter code quality standards and eliminate AI slop anti-patterns.
|
|
17
|
+
|
|
18
|
+
**New utility**
|
|
19
|
+
|
|
20
|
+
- `extractErrorMessage(error, fallback?)` in `@checkstack/common` for consistent error extraction
|
|
21
|
+
|
|
22
|
+
**ESLint rules**
|
|
23
|
+
|
|
24
|
+
- `react-hooks/rules-of-hooks` and `exhaustive-deps` for hook correctness
|
|
25
|
+
- `no-console` in frontend packages — forces `toast` over silent `console.error`
|
|
26
|
+
- `no-restricted-syntax` banning `instanceof Error` — forces `extractErrorMessage`
|
|
27
|
+
- Custom `no-eslint-disable-any` rule preventing `@typescript-eslint/no-explicit-any` circumvention
|
|
28
|
+
|
|
29
|
+
**Refactoring**
|
|
30
|
+
|
|
31
|
+
- Replace 141 `instanceof Error` boilerplate patterns across the codebase
|
|
32
|
+
- Replace swallowed `console.error` with user-visible `toast.error()` feedback
|
|
33
|
+
- Remove 15 redundant `as` type casts in IntegrationsPage and ProviderConnectionsPage
|
|
34
|
+
- Consolidate 3 identical callback handlers into `handleDialogClose`
|
|
35
|
+
- Fix conditional React hook call in `FormField.tsx`
|
|
36
|
+
- Fix unstable useMemo deps in `Dashboard.tsx`
|
|
37
|
+
- Replace `useEffect`→`setState` with derived `useMemo` in `RegisterPage.tsx`
|
|
38
|
+
- Rewrite `keystore.test.ts` with typed `DrizzleMockChain` (eliminating 7 `any` suppressions)
|
|
39
|
+
- Delete obvious comments in `encryption.ts` and Teams `provider.ts`
|
|
40
|
+
|
|
41
|
+
- Updated dependencies [d1a2796]
|
|
42
|
+
- Updated dependencies [3c34b07]
|
|
43
|
+
- @checkstack/common@0.6.5
|
|
44
|
+
- @checkstack/backend-api@0.11.1
|
|
45
|
+
- @checkstack/healthcheck-common@0.10.1
|
|
46
|
+
|
|
3
47
|
## 0.3.7
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/healthcheck-script-backend",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"checkstack": {
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"lint:code": "eslint . --max-warnings 0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@checkstack/backend-api": "0.
|
|
16
|
-
"@checkstack/common": "0.6.
|
|
17
|
-
"@checkstack/healthcheck-common": "0.
|
|
15
|
+
"@checkstack/backend-api": "0.11.1",
|
|
16
|
+
"@checkstack/common": "0.6.5",
|
|
17
|
+
"@checkstack/healthcheck-common": "0.10.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/bun": "^1.0.0",
|
|
21
21
|
"typescript": "^5.0.0",
|
|
22
|
-
"@checkstack/tsconfig": "0.0.
|
|
22
|
+
"@checkstack/tsconfig": "0.0.5",
|
|
23
23
|
"@checkstack/scripts": "0.1.2"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
} from "@checkstack/healthcheck-common";
|
|
22
22
|
import { pluginMetadata } from "./plugin-metadata";
|
|
23
23
|
import type { ScriptTransportClient } from "./transport-client";
|
|
24
|
+
import { extractErrorMessage } from "@checkstack/common";
|
|
24
25
|
|
|
25
26
|
// ============================================================================
|
|
26
27
|
// SCRIPT EXECUTION UTILITIES (shared with integration-script-backend pattern)
|
|
@@ -164,7 +165,7 @@ async function executeInlineScript({
|
|
|
164
165
|
timedOut: false,
|
|
165
166
|
};
|
|
166
167
|
} catch (error) {
|
|
167
|
-
const message =
|
|
168
|
+
const message = extractErrorMessage(error);
|
|
168
169
|
if (message === "__TIMEOUT__") {
|
|
169
170
|
return {
|
|
170
171
|
result: undefined,
|
package/src/strategy.ts
CHANGED
|
@@ -27,6 +27,7 @@ import type {
|
|
|
27
27
|
ScriptRequest,
|
|
28
28
|
ScriptResult as ScriptResultType,
|
|
29
29
|
} from "./transport-client";
|
|
30
|
+
import { extractErrorMessage } from "@checkstack/common";
|
|
30
31
|
|
|
31
32
|
// ============================================================================
|
|
32
33
|
// SCHEMAS
|
|
@@ -305,7 +306,7 @@ export class ScriptHealthCheckStrategy implements HealthCheckStrategy<
|
|
|
305
306
|
stdout: "",
|
|
306
307
|
stderr: "",
|
|
307
308
|
timedOut: false,
|
|
308
|
-
error:
|
|
309
|
+
error: extractErrorMessage(error),
|
|
309
310
|
};
|
|
310
311
|
}
|
|
311
312
|
},
|