@checkstack/notification-teams-backend 0.0.25 → 0.0.27

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,47 @@
1
1
  # @checkstack/notification-teams-backend
2
2
 
3
+ ## 0.0.27
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [26d8bae]
8
+ - @checkstack/backend-api@0.12.0
9
+ - @checkstack/notification-backend@0.1.22
10
+
11
+ ## 0.0.26
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/notification-backend@0.1.21
44
+
3
45
  ## 0.0.25
4
46
 
5
47
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/notification-teams-backend",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "checkstack": {
@@ -15,13 +15,13 @@
15
15
  "lint": "eslint src --ext .ts"
16
16
  },
17
17
  "dependencies": {
18
- "@checkstack/backend-api": "0.10.0",
19
- "@checkstack/common": "0.6.4",
20
- "@checkstack/notification-backend": "0.1.18",
18
+ "@checkstack/backend-api": "0.11.1",
19
+ "@checkstack/common": "0.6.5",
20
+ "@checkstack/notification-backend": "0.1.21",
21
21
  "zod": "^4.2.1"
22
22
  },
23
23
  "devDependencies": {
24
- "@checkstack/tsconfig": "0.0.4",
24
+ "@checkstack/tsconfig": "0.0.5",
25
25
  "typescript": "^5.7.2"
26
26
  }
27
27
  }
package/src/index.ts CHANGED
@@ -10,6 +10,7 @@ import {
10
10
  } from "@checkstack/backend-api";
11
11
  import { notificationStrategyExtensionPoint } from "@checkstack/notification-backend";
12
12
  import { pluginMetadata } from "./plugin-metadata";
13
+ import { extractErrorMessage } from "@checkstack/common";
13
14
 
14
15
  // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
15
16
  // Configuration Schemas
@@ -346,7 +347,7 @@ const teamsStrategy: NotificationStrategy<TeamsConfig> = {
346
347
  };
347
348
  } catch (error) {
348
349
  const message =
349
- error instanceof Error ? error.message : "Unknown Graph API error";
350
+ extractErrorMessage(error, "Unknown Graph API error");
350
351
  logger.error("Teams notification error", { error: message });
351
352
  return {
352
353
  success: false,