@checkstack/queue-backend 0.2.15 → 0.2.17
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 +43 -0
- package/package.json +6 -6
- package/src/router.ts +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @checkstack/queue-backend
|
|
2
2
|
|
|
3
|
+
## 0.2.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [26d8bae]
|
|
8
|
+
- @checkstack/backend-api@0.12.0
|
|
9
|
+
- @checkstack/queue-api@0.2.13
|
|
10
|
+
|
|
11
|
+
## 0.2.16
|
|
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/queue-common@0.2.8
|
|
44
|
+
- @checkstack/queue-api@0.2.12
|
|
45
|
+
|
|
3
46
|
## 0.2.15
|
|
4
47
|
|
|
5
48
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/queue-backend",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"checkstack": {
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
"lint:code": "eslint . --max-warnings 0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@checkstack/backend-api": "0.
|
|
19
|
-
"@checkstack/queue-api": "0.2.
|
|
20
|
-
"@checkstack/queue-common": "0.2.
|
|
18
|
+
"@checkstack/backend-api": "0.11.1",
|
|
19
|
+
"@checkstack/queue-api": "0.2.12",
|
|
20
|
+
"@checkstack/queue-common": "0.2.8",
|
|
21
21
|
"@hono/zod-validator": "^0.4.1",
|
|
22
22
|
"hono": "^4.12.14",
|
|
23
23
|
"zod": "^4.0.0",
|
|
24
|
-
"@checkstack/common": "0.6.
|
|
24
|
+
"@checkstack/common": "0.6.5",
|
|
25
25
|
"@orpc/server": "^1.13.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@checkstack/scripts": "0.1.2",
|
|
29
|
-
"@checkstack/tsconfig": "0.0.
|
|
29
|
+
"@checkstack/tsconfig": "0.0.5",
|
|
30
30
|
"typescript": "^5.7.2"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/src/router.ts
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
type LagSeverity,
|
|
12
12
|
} from "@checkstack/queue-common";
|
|
13
13
|
import { implement, ORPCError } from "@orpc/server";
|
|
14
|
+
import { extractErrorMessage } from "@checkstack/common";
|
|
14
15
|
|
|
15
16
|
const os = implement(queueContract)
|
|
16
17
|
.$context<RpcContext>()
|
|
@@ -81,12 +82,9 @@ export const createQueueRouter = (configService: ConfigService) => {
|
|
|
81
82
|
try {
|
|
82
83
|
await context.queueManager.setActiveBackend(pluginId, config);
|
|
83
84
|
} catch (error) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
throw error;
|
|
85
|
+
throw new ORPCError("INTERNAL_SERVER_ERROR", {
|
|
86
|
+
message: extractErrorMessage(error),
|
|
87
|
+
});
|
|
90
88
|
}
|
|
91
89
|
context.logger.info(
|
|
92
90
|
`Queue configuration updated to plugin: ${pluginId}`
|