@checkstack/frontend-api 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 CHANGED
@@ -1,5 +1,45 @@
1
1
  # @checkstack/frontend-api
2
2
 
3
+ ## 0.3.9
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
+ - @checkstack/common@0.6.5
34
+
35
+ ## 0.3.8
36
+
37
+ ### Patch Changes
38
+
39
+ - 67158e2: Standardize package metadata, unify AJV versions to 8.18.0, and enforce monorepo architecture rules via updated ESLint configuration. This ensures consistent package discovery and runtime dependency safety across the platform.
40
+ - Updated dependencies [67158e2]
41
+ - @checkstack/common@0.6.4
42
+
3
43
  ## 0.3.7
4
44
 
5
45
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/frontend-api",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "scripts": {
@@ -12,8 +12,8 @@
12
12
  "react": "^18.0.0"
13
13
  },
14
14
  "dependencies": {
15
- "@checkstack/common": "0.6.2",
16
- "@orpc/client": "^1.13.2",
15
+ "@checkstack/common": "0.6.4",
16
+ "@orpc/client": "^1.13.14",
17
17
  "@orpc/react-query": "1.13.4",
18
18
  "@orpc/tanstack-query": "^1.13.2",
19
19
  "@tanstack/react-query": "^5.64.0"
@@ -22,7 +22,10 @@
22
22
  "@types/bun": "^1.3.5",
23
23
  "@types/react": "^18.0.0",
24
24
  "typescript": "^5.0.0",
25
- "@checkstack/tsconfig": "0.0.3",
26
- "@checkstack/scripts": "0.1.1"
25
+ "@checkstack/tsconfig": "0.0.5",
26
+ "@checkstack/scripts": "0.1.2"
27
+ },
28
+ "checkstack": {
29
+ "type": "tooling"
27
30
  }
28
31
  }
@@ -37,8 +37,7 @@ export function ExtensionSlot<TSlot extends SlotDefinition<unknown>>({
37
37
  return (
38
38
  <>
39
39
  {extensions.map((ext) => {
40
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
41
- const Component = ext.component as React.ComponentType<any>;
40
+ const Component = ext.component as React.ComponentType<Record<string, unknown>>;
42
41
  return <Component key={ext.id} {...(context ?? {})} />;
43
42
  })}
44
43
  </>
@@ -116,6 +116,7 @@ export const RuntimeConfigProvider: React.FC<RuntimeConfigProviderProps> = ({
116
116
  } catch (error_) {
117
117
  console.error("RuntimeConfigProvider: Failed to load config", error_);
118
118
  setError(
119
+ // eslint-disable-next-line no-restricted-syntax -- Needs Error object for state, not just message
119
120
  error_ instanceof Error ? error_ : new Error(String(error_))
120
121
  );
121
122
  // Do NOT set a fallback — surface the error visibly.