@checkstack/healthcheck-redis-backend 0.2.7 → 0.2.8

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,40 @@
1
1
  # @checkstack/healthcheck-redis-backend
2
2
 
3
+ ## 0.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - d1a2796: Enforce stricter code quality standards and eliminate AI slop anti-patterns.
8
+
9
+ **New utility**
10
+
11
+ - `extractErrorMessage(error, fallback?)` in `@checkstack/common` for consistent error extraction
12
+
13
+ **ESLint rules**
14
+
15
+ - `react-hooks/rules-of-hooks` and `exhaustive-deps` for hook correctness
16
+ - `no-console` in frontend packages — forces `toast` over silent `console.error`
17
+ - `no-restricted-syntax` banning `instanceof Error` — forces `extractErrorMessage`
18
+ - Custom `no-eslint-disable-any` rule preventing `@typescript-eslint/no-explicit-any` circumvention
19
+
20
+ **Refactoring**
21
+
22
+ - Replace 141 `instanceof Error` boilerplate patterns across the codebase
23
+ - Replace swallowed `console.error` with user-visible `toast.error()` feedback
24
+ - Remove 15 redundant `as` type casts in IntegrationsPage and ProviderConnectionsPage
25
+ - Consolidate 3 identical callback handlers into `handleDialogClose`
26
+ - Fix conditional React hook call in `FormField.tsx`
27
+ - Fix unstable useMemo deps in `Dashboard.tsx`
28
+ - Replace `useEffect`→`setState` with derived `useMemo` in `RegisterPage.tsx`
29
+ - Rewrite `keystore.test.ts` with typed `DrizzleMockChain` (eliminating 7 `any` suppressions)
30
+ - Delete obvious comments in `encryption.ts` and Teams `provider.ts`
31
+
32
+ - Updated dependencies [d1a2796]
33
+ - Updated dependencies [3c34b07]
34
+ - @checkstack/common@0.6.5
35
+ - @checkstack/backend-api@0.11.1
36
+ - @checkstack/healthcheck-common@0.10.1
37
+
3
38
  ## 0.2.7
4
39
 
5
40
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/healthcheck-redis-backend",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "checkstack": {
@@ -12,15 +12,15 @@
12
12
  "lint:code": "eslint . --max-warnings 0"
13
13
  },
14
14
  "dependencies": {
15
- "@checkstack/backend-api": "0.10.0",
15
+ "@checkstack/backend-api": "0.11.0",
16
16
  "@checkstack/common": "0.6.4",
17
- "@checkstack/healthcheck-common": "0.8.4",
17
+ "@checkstack/healthcheck-common": "0.10.0",
18
18
  "ioredis": "^5.3.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/bun": "^1.0.0",
22
22
  "typescript": "^5.0.0",
23
- "@checkstack/tsconfig": "0.0.4",
23
+ "@checkstack/tsconfig": "0.0.5",
24
24
  "@checkstack/scripts": "0.1.2"
25
25
  }
26
26
  }
package/src/strategy.ts CHANGED
@@ -32,6 +32,7 @@ import type {
32
32
  RedisCommand,
33
33
  RedisCommandResult,
34
34
  } from "./transport-client";
35
+ import { extractErrorMessage } from "@checkstack/common";
35
36
 
36
37
  // ============================================================================
37
38
  // SCHEMAS
@@ -283,7 +284,7 @@ export class RedisHealthCheckStrategy implements HealthCheckStrategy<
283
284
  } catch (error) {
284
285
  return {
285
286
  value: undefined,
286
- error: error instanceof Error ? error.message : String(error),
287
+ error: extractErrorMessage(error),
287
288
  };
288
289
  }
289
290
  },