@checkstack/integration-webhook-backend 0.0.22 → 0.0.24

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,48 @@
1
1
  # @checkstack/integration-webhook-backend
2
2
 
3
+ ## 0.0.24
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [26d8bae]
8
+ - @checkstack/backend-api@0.12.0
9
+ - @checkstack/integration-backend@0.1.19
10
+
11
+ ## 0.0.23
12
+
13
+ ### Patch Changes
14
+
15
+ - d1a2796: Enforce stricter code quality standards and eliminate AI slop anti-patterns.
16
+
17
+ **New utility**
18
+
19
+ - `extractErrorMessage(error, fallback?)` in `@checkstack/common` for consistent error extraction
20
+
21
+ **ESLint rules**
22
+
23
+ - `react-hooks/rules-of-hooks` and `exhaustive-deps` for hook correctness
24
+ - `no-console` in frontend packages — forces `toast` over silent `console.error`
25
+ - `no-restricted-syntax` banning `instanceof Error` — forces `extractErrorMessage`
26
+ - Custom `no-eslint-disable-any` rule preventing `@typescript-eslint/no-explicit-any` circumvention
27
+
28
+ **Refactoring**
29
+
30
+ - Replace 141 `instanceof Error` boilerplate patterns across the codebase
31
+ - Replace swallowed `console.error` with user-visible `toast.error()` feedback
32
+ - Remove 15 redundant `as` type casts in IntegrationsPage and ProviderConnectionsPage
33
+ - Consolidate 3 identical callback handlers into `handleDialogClose`
34
+ - Fix conditional React hook call in `FormField.tsx`
35
+ - Fix unstable useMemo deps in `Dashboard.tsx`
36
+ - Replace `useEffect`→`setState` with derived `useMemo` in `RegisterPage.tsx`
37
+ - Rewrite `keystore.test.ts` with typed `DrizzleMockChain` (eliminating 7 `any` suppressions)
38
+ - Delete obvious comments in `encryption.ts` and Teams `provider.ts`
39
+
40
+ - Updated dependencies [d1a2796]
41
+ - @checkstack/common@0.6.5
42
+ - @checkstack/backend-api@0.11.1
43
+ - @checkstack/integration-backend@0.1.18
44
+ - @checkstack/integration-common@0.2.8
45
+
3
46
  ## 0.0.22
4
47
 
5
48
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/integration-webhook-backend",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "checkstack": {
@@ -12,16 +12,16 @@
12
12
  "lint:code": "eslint . --max-warnings 0"
13
13
  },
14
14
  "dependencies": {
15
- "@checkstack/backend-api": "0.10.0",
16
- "@checkstack/integration-backend": "0.1.15",
17
- "@checkstack/integration-common": "0.2.7",
18
- "@checkstack/common": "0.6.4",
15
+ "@checkstack/backend-api": "0.11.1",
16
+ "@checkstack/integration-backend": "0.1.18",
17
+ "@checkstack/integration-common": "0.2.8",
18
+ "@checkstack/common": "0.6.5",
19
19
  "zod": "^4.2.1"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/bun": "^1.0.0",
23
23
  "typescript": "^5.0.0",
24
- "@checkstack/tsconfig": "0.0.4",
24
+ "@checkstack/tsconfig": "0.0.5",
25
25
  "@checkstack/scripts": "0.1.2"
26
26
  }
27
27
  }
package/src/provider.ts CHANGED
@@ -5,6 +5,7 @@ import type {
5
5
  IntegrationDeliveryContext,
6
6
  IntegrationDeliveryResult,
7
7
  } from "@checkstack/integration-backend";
8
+ import { extractErrorMessage } from "@checkstack/common";
8
9
 
9
10
  // =============================================================================
10
11
  // Template Expansion Helper
@@ -320,7 +321,7 @@ Configure your server to:
320
321
  externalId,
321
322
  };
322
323
  } catch (error) {
323
- const message = error instanceof Error ? error.message : String(error);
324
+ const message = extractErrorMessage(error);
324
325
  logger.error(`Webhook delivery failed: ${message}`);
325
326
 
326
327
  // Network errors should trigger retry