@checkstack/notification-backstage-backend 0.1.32 → 0.1.34

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,52 @@
1
1
  # @checkstack/notification-backstage-backend
2
2
 
3
+ ## 0.1.34
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f23f3c9]
8
+ - Updated dependencies [f23f3c9]
9
+ - Updated dependencies [f23f3c9]
10
+ - Updated dependencies [f23f3c9]
11
+ - Updated dependencies [f23f3c9]
12
+ - @checkstack/common@0.11.0
13
+ - @checkstack/backend-api@0.17.0
14
+ - @checkstack/notification-backend@1.2.0
15
+
16
+ ## 0.1.33
17
+
18
+ ### Patch Changes
19
+
20
+ - a06b899: Dead-code audit cleanup and a small platform of shared notification helpers.
21
+
22
+ **Removed (dead code)**
23
+
24
+ - `core/backend/src/plugin-manager/deregistration-guard.ts` deleted. The exported `assertCanDeregister()` was never called and was a less-complete version of the dependents+isUninstallable checks already done inline by `previewUninstallOriginator` / `uninstallOriginator` in `plugin-manager-orchestrator.ts`.
25
+ - `createMockQueueFactory` deprecated alias removed from `@checkstack/test-utils-backend`. Use `createMockQueueManager` directly.
26
+
27
+ **New shared helpers**
28
+
29
+ - `@checkstack/backend-api` now exports `requestTimeoutMs()` — a Zod field builder for outbound HTTP request timeouts (1s..60s, default 10s). Replaces hand-rolled `configNumber({}).min(1000).max(60_000).default(10_000)` in `integration-webhook-backend`, `integration-script-backend`, and `healthcheck-script-backend`'s inline collector.
30
+ - `@checkstack/notification-common` now exports `SubjectStatusSchema` / `SubjectStatus`, mirroring the existing `ImportanceSchema`.
31
+ - `@checkstack/notification-backend` now exports:
32
+ - `SUBJECT_STATUS_EMOJI` / `IMPORTANCE_EMOJI` — the shared status / importance emoji maps that Discord, Slack, Teams, Webex and Telegram previously each redefined inline.
33
+ - `postJson(opts)` — a timeout-bounded `fetch` wrapper that handles non-2xx logging and error mapping for webhook-style POSTs. Returns `{ ok: true, response } | { ok: false, error }`.
34
+
35
+ **Migrated to shared helpers**
36
+
37
+ - Discord, Slack, Gotify, Pushover notification backends now use `postJson`. Outer try/catch + per-plugin error mapping deleted (~140 LOC).
38
+ - Discord, Slack, Teams, Telegram, Webex notification backends now use `IMPORTANCE_EMOJI`. Discord, Slack, Teams use `SUBJECT_STATUS_EMOJI`.
39
+ - Teams, Webex, Backstage, Telegram kept their inline fetch/Bot logic: their error strings surface server response bodies to operators, or the transport isn't raw `fetch` (Telegram uses `grammy`'s `Bot`).
40
+
41
+ **API surface tightening**
42
+
43
+ - Per-plugin test-only re-exports in 6 notification backends (Pushover, Gotify, Backstage, Slack, Discord, Teams) and the `CertificateInfo` interface in `healthcheck-tls-backend/strategy.ts` are now JSDoc-tagged `@internal`. No behaviour change; signals that downstream consumers must not depend on them.
44
+
45
+ - Updated dependencies [a06b899]
46
+ - Updated dependencies [a06b899]
47
+ - @checkstack/backend-api@0.16.0
48
+ - @checkstack/notification-backend@1.1.0
49
+
3
50
  ## 0.1.32
4
51
 
5
52
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/notification-backstage-backend",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "checkstack": {
@@ -15,8 +15,8 @@
15
15
  "pack": "bunx @checkstack/scripts plugin-pack"
16
16
  },
17
17
  "dependencies": {
18
- "@checkstack/backend-api": "0.15.2",
19
- "@checkstack/notification-backend": "1.0.4",
18
+ "@checkstack/backend-api": "0.16.0",
19
+ "@checkstack/notification-backend": "1.1.0",
20
20
  "@checkstack/common": "0.10.0",
21
21
  "zod": "^4.2.1"
22
22
  },
package/src/index.ts CHANGED
@@ -301,6 +301,11 @@ export default createBackendPlugin({
301
301
  },
302
302
  });
303
303
 
304
- // Export for testing
304
+ /**
305
+ * Internal exports for the package's own unit tests. Not part of the plugin's
306
+ * public API surface.
307
+ * @internal
308
+ */
305
309
  export { backstageConfigSchemaV1, userConfigSchemaV1, mapImportanceToSeverity };
310
+ /** @internal */
306
311
  export type { BackstageConfig, BackstageUserConfig };