@checkstack/frontend-api 0.3.8 → 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 +32 -0
- package/package.json +4 -4
- package/src/components/ExtensionSlot.tsx +1 -2
- package/src/runtime-config.tsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
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
|
+
|
|
3
35
|
## 0.3.8
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/frontend-api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"react": "^18.0.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@checkstack/common": "0.6.
|
|
15
|
+
"@checkstack/common": "0.6.4",
|
|
16
16
|
"@orpc/client": "^1.13.14",
|
|
17
17
|
"@orpc/react-query": "1.13.4",
|
|
18
18
|
"@orpc/tanstack-query": "^1.13.2",
|
|
@@ -22,8 +22,8 @@
|
|
|
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.
|
|
26
|
-
"@checkstack/scripts": "0.1.
|
|
25
|
+
"@checkstack/tsconfig": "0.0.5",
|
|
26
|
+
"@checkstack/scripts": "0.1.2"
|
|
27
27
|
},
|
|
28
28
|
"checkstack": {
|
|
29
29
|
"type": "tooling"
|
|
@@ -37,8 +37,7 @@ export function ExtensionSlot<TSlot extends SlotDefinition<unknown>>({
|
|
|
37
37
|
return (
|
|
38
38
|
<>
|
|
39
39
|
{extensions.map((ext) => {
|
|
40
|
-
|
|
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
|
</>
|
package/src/runtime-config.tsx
CHANGED
|
@@ -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.
|