@umriss-ui/calculation 0.42.0 → 0.43.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/CHANGELOG.md CHANGED
@@ -14,6 +14,23 @@ From 0.34.0 the packages share one number - five, and six from 0.40.0, when the
14
14
 
15
15
  ---
16
16
 
17
+ ## 0.43.0 – Places that carry down, and a calculation's root (Oct. 2026)
18
+
19
+ ### Added
20
+
21
+ - **`Calculation` takes a `ref`**, which receives its surface `<div>` (ADR-0068).
22
+
23
+ ### Changed
24
+
25
+ - **A quantity without its own `decimals` takes those of the quantity it is an operand of**, where both have the same `unit` and `format`: down the tree, through a chain's interims, and for a `Ref` where its quantity is defined (ADR-0069).
26
+ - Migration: nothing to change; an operand that showed the default places beside a parent with its own now shows the parent's - give it `decimals` of its own to keep the old figure.
27
+ - **A non-zero derived value no longer reads 0 at the default places;** it is shown without fixed places, in scientific notation where tiny. A caller's own or carried places are kept as given.
28
+ - Migration: nothing to change; a tiny result that read "0.00" now reads its value.
29
+ - **The rest and the `ref` reach the surface**, and the name (`aria-label`, `aria-labelledby`, `aria-describedby`) still reaches the list (ADR-0068). No old form is kept, since an attribute stands on one element.
30
+ - Migration: a selector or a test id that found the list now finds the surface.
31
+ - **The peer range on core moves to `^0.43.0`.**
32
+ - Migration: install the 0.43 version of `@umriss-ui/core` beside it.
33
+
17
34
  ## 0.42.0 – A calculation written in a Server Component (Oct. 2026)
18
35
 
19
36
  ### Added
package/README.md CHANGED
@@ -59,6 +59,8 @@ import { Calculation, Difference, Given, Product, Ref, Sum } from "@umriss-ui/ca
59
59
  </Calculation>
60
60
  ```
61
61
 
62
+ `Calculation` is a composite: `ref`, `className`, `style`, `id` and `data-*` reach its surface; `aria-label`, `aria-labelledby` and `aria-describedby` reach the list inside it.
63
+
62
64
  A **chain** suits a sheet read top to bottom (ADR-0028). A first quantity,
63
65
  then `Plus`, `Minus`, `Times` or `DividedBy`, each working its operand into the
64
66
  value before it, strictly in order, and `Interim`s naming the value where they