@zerotal/monitor 1.5.0 → 1.5.1

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
@@ -8,6 +8,15 @@ follows the Zerotal monorepo's unified versioning.
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [1.5.1] — 2026-08-15
12
+
13
+ ### Fixed
14
+
15
+ - **Open-by-default access in development never applied.** The predicate read `APP_ENV`,
16
+ which holds the runtime mode once the app has booted, so the panel demanded an explicit
17
+ `auth` predicate even on a developer's machine. It asks `devSurfacesEnabled()` now — and
18
+ still requires one anywhere that is not explicitly a development environment.
19
+
11
20
  ## [1.5.0] — 2026-08-15
12
21
 
13
22
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerotal/monitor",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "license": "MIT",
5
5
  "maturity": "stable",
6
6
  "private": false,
@@ -29,14 +29,14 @@
29
29
  "typecheck": "tsc --noEmit"
30
30
  },
31
31
  "dependencies": {
32
- "@zerotal/core": "1.5.0",
33
- "@zerotal/flow-ui": "1.5.0",
34
- "@zerotal/flow": "1.5.0"
32
+ "@zerotal/core": "1.5.1",
33
+ "@zerotal/flow-ui": "1.5.1",
34
+ "@zerotal/flow": "1.5.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@zerotal/queue": "1.5.0",
38
- "@zerotal/scheduler": "1.5.0",
39
- "@zerotal/telemetry": "1.5.0"
37
+ "@zerotal/queue": "1.5.1",
38
+ "@zerotal/scheduler": "1.5.1",
39
+ "@zerotal/telemetry": "1.5.1"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@zerotal/queue": "^1.0.0",
package/src/config.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * auth: (user) => user?.role === "admin",
8
8
  * });
9
9
  */
10
- import { deepMerge, isDevSurfaceAllowed } from "@zerotal/core";
10
+ import { deepMerge, devSurfacesEnabled } from "@zerotal/core";
11
11
  import type { RetentionMode } from "./store/MonitorDb.ts";
12
12
  import type { AlertThresholds } from "./alerting.ts";
13
13
 
@@ -129,7 +129,7 @@ export interface ResolvedMonitorConfig extends MonitorConfigShape {
129
129
  // documented `APP_ENV=production` deploy would otherwise expose the panel.
130
130
  // Only explicitly non-prod envs get open-by-default access; everything else
131
131
  // (unset, staging, production) must supply an explicit `auth` predicate.
132
- const defaultAuthOpen = (): boolean => isDevSurfaceAllowed(Bun.env["APP_ENV"] ?? "");
132
+ const defaultAuthOpen = (): boolean => devSurfacesEnabled();
133
133
 
134
134
  const defaults: ResolvedMonitorConfig = {
135
135
  path: "/monitor",