@cosmicdrift/kumiko-renderer 0.269.1 → 0.270.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-renderer",
3
- "version": "0.269.1",
3
+ "version": "0.270.0",
4
4
  "description": "Platform-agnostic React renderer for Kumiko screens. Contains the shared logic — primitives-contract, hooks, KumikoScreen, navigation & SSE abstractions — that any platform-specific renderer (web, native) composes. No DOM, no EventSource, no react-dom.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -15,8 +15,8 @@
15
15
  }
16
16
  },
17
17
  "dependencies": {
18
- "@cosmicdrift/kumiko-framework": "0.269.1",
19
- "@cosmicdrift/kumiko-headless": "0.269.1",
18
+ "@cosmicdrift/kumiko-framework": "0.270.0",
19
+ "@cosmicdrift/kumiko-headless": "0.270.0",
20
20
  "react": "^19.2.6",
21
21
  "temporal-polyfill": "^0.3.2",
22
22
  "zod": "^4.4.3"
@@ -27,7 +27,7 @@
27
27
  "@types/react-dom": "^19.2.3",
28
28
  "jsdom": "^29.1.1",
29
29
  "react-dom": "^19.2.6",
30
- "@cosmicdrift/kumiko-locale-de": "0.269.1"
30
+ "@cosmicdrift/kumiko-locale-de": "0.270.0"
31
31
  },
32
32
  "repository": {
33
33
  "type": "git",
@@ -1,4 +1,5 @@
1
1
  import { describe, expect, test } from "bun:test";
2
+ import type { AccessRule } from "@cosmicdrift/kumiko-framework/ui-types";
2
3
  import { screenAccessAllows } from "../kumiko-screen";
3
4
 
4
5
  describe("screenAccessAllows", () => {
@@ -6,8 +7,17 @@ describe("screenAccessAllows", () => {
6
7
  expect(screenAccessAllows(undefined, undefined)).toBe(true);
7
8
  });
8
9
 
9
- test("openToAll: true allows regardless of roles", () => {
10
- expect(screenAccessAllows({ openToAll: true }, undefined)).toBe(true);
10
+ test("openToAll with a reason allows regardless of roles", () => {
11
+ expect(
12
+ screenAccessAllows(
13
+ { openToAll: { reason: "test handler callable by any signed-in test user" } },
14
+ undefined,
15
+ ),
16
+ ).toBe(true);
17
+ });
18
+
19
+ test("the deprecated openToAll: true form denies — fail-closed", () => {
20
+ expect(screenAccessAllows({ openToAll: true } as unknown as AccessRule, undefined)).toBe(false);
11
21
  });
12
22
 
13
23
  test("roles-gated allows a matching role", () => {