@umriss-ui/calculation 0.7.2 → 0.7.3
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 +16 -0
- package/README.md +6 -1
- package/dist/calculation.js +1 -0
- package/docs/llms-full.md +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,22 @@ under a heading "Changed" of its own, no matter which digit rose.
|
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
+
## 0.7.3 – Core 0.33.0 (Oct. 2026)
|
|
15
|
+
|
|
16
|
+
Needs `@umriss-ui/core` 0.33; the peer range moves to `^0.33.0`.
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- **The unit tests run against React 18.3.1 and 19 in CI**, and a calculation is rendered to a string with no `window` in a test (`tests-unit/ssr.test.tsx`).
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- **Every entry begins with `"use client";`.** The built file `dist/calculation.js` starts with the directive, then the stylesheet import, so a bundler that splits server from client code takes each as client code. The directive is written to the built entries only; the sources are unchanged.
|
|
25
|
+
|
|
26
|
+
- **Every export is a client component.** A hook called in a Server Component now fails with React's message about a client reference, not one about `useState`.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
14
30
|
## 0.7.2 – Core 0.32.0 (Oct. 2026)
|
|
15
31
|
|
|
16
32
|
Needs `@umriss-ui/core` 0.32; the peer range moves to `^0.32.0`. Nothing else changes for a caller.
|
package/README.md
CHANGED
|
@@ -16,7 +16,12 @@ pnpm add @umriss-ui/calculation @umriss-ui/core
|
|
|
16
16
|
|
|
17
17
|
`@umriss-ui/core` is a **peer dependency**: the calculation takes its styling
|
|
18
18
|
regime, formats, wording, assessment and freshness from there. React 18 or 19
|
|
19
|
-
as a peer as well.
|
|
19
|
+
as a peer as well; the unit tests run against 18.3 and 19 in CI.
|
|
20
|
+
|
|
21
|
+
Every entry begins with `"use client"`, the directive a framework
|
|
22
|
+
with Server Components reads to treat a module as client code. No test runs
|
|
23
|
+
inside such a framework: the
|
|
24
|
+
calculation is rendered to a string in a test.
|
|
20
25
|
|
|
21
26
|
## Two forms, written as they are shown
|
|
22
27
|
|
package/dist/calculation.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import "./calculation.css";
|
|
2
3
|
import { jsx as b, jsxs as R } from "react/jsx-runtime";
|
|
3
4
|
import { Children as ke, isValidElement as K, Fragment as Me, useId as Te, useState as re, useRef as Ee, useCallback as Ae, useLayoutEffect as Re, useEffect as De } from "react";
|
package/docs/llms-full.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umriss-ui/calculation",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "React calculation view for data-dense applications - a derivation written as it is shown, evaluated by the library, folded and read line by line.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Roman Händler",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": ">=18",
|
|
49
49
|
"react-dom": ">=18",
|
|
50
|
-
"@umriss-ui/core": "^0.
|
|
50
|
+
"@umriss-ui/core": "^0.33.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@fontsource/geist-mono": "^5.3.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"typescript": "^5.6.3",
|
|
62
62
|
"vite": "^6.0.0",
|
|
63
63
|
"vite-plugin-dts": "^4.3.0",
|
|
64
|
-
"@umriss-ui/core": "0.
|
|
64
|
+
"@umriss-ui/core": "0.33.0",
|
|
65
65
|
"@umriss-ui/demo": "0.0.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|