@cosmicdrift/kumiko-renderer-web 0.164.0 → 0.165.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-web",
3
- "version": "0.164.0",
3
+ "version": "0.165.0",
4
4
  "description": "Web-platform bindings for @cosmicdrift/kumiko-renderer. HTML default-primitives, browser history-based navigation, EventSource-backed live events, and a one-call createKumikoApp that mounts the whole stack via react-dom.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -16,9 +16,9 @@
16
16
  "./styles.css": "./src/styles.css"
17
17
  },
18
18
  "dependencies": {
19
- "@cosmicdrift/kumiko-dispatcher-live": "0.164.0",
20
- "@cosmicdrift/kumiko-headless": "0.164.0",
21
- "@cosmicdrift/kumiko-renderer": "0.164.0",
19
+ "@cosmicdrift/kumiko-dispatcher-live": "0.165.0",
20
+ "@cosmicdrift/kumiko-headless": "0.165.0",
21
+ "@cosmicdrift/kumiko-renderer": "0.165.0",
22
22
  "@radix-ui/react-dialog": "^1.1.15",
23
23
  "@radix-ui/react-dropdown-menu": "^2.1.16",
24
24
  "@radix-ui/react-label": "^2.1.8",
@@ -173,7 +173,14 @@ describe("defaultCellRender", () => {
173
173
 
174
174
  test("money → JPY ohne Nachkommastellen (currencyDecimals)", () => {
175
175
  const result = defaultCellRender({ amount: 1000, currency: "JPY" }, "money");
176
- expect(result.replace(/[^0-9]/g, "")).toBe("1000");
176
+ const expected = new Intl.NumberFormat(undefined, {
177
+ style: "currency",
178
+ currency: "JPY",
179
+ minimumFractionDigits: 0,
180
+ maximumFractionDigits: 0,
181
+ }).format(1000);
182
+ expect(result).toBe(expected);
183
+ expect(result).not.toMatch(/[.,]\d\d$/);
177
184
  });
178
185
 
179
186
  test("money → unerwarteter Value-Shape fällt auf String zurück", () => {