pond-ts 0.34.1 → 0.36.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 +52 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,7 +8,9 @@ The `@pond-ts` packages — `pond-ts`, `@pond-ts/react`, `@pond-ts/charts`, and
|
|
|
8
8
|
them all. Pre-1.0: minor bumps may include new features and type-level changes;
|
|
9
9
|
patch bumps are strictly additive.
|
|
10
10
|
|
|
11
|
-
[Unreleased]: https://github.com/pjm17971/pond-ts/compare/v0.
|
|
11
|
+
[Unreleased]: https://github.com/pjm17971/pond-ts/compare/v0.36.0...HEAD
|
|
12
|
+
[0.36.0]: https://github.com/pjm17971/pond-ts/compare/v0.35.0...v0.36.0
|
|
13
|
+
[0.35.0]: https://github.com/pjm17971/pond-ts/compare/v0.34.1...v0.35.0
|
|
12
14
|
[0.34.1]: https://github.com/pjm17971/pond-ts/compare/v0.34.0...v0.34.1
|
|
13
15
|
[0.34.0]: https://github.com/pjm17971/pond-ts/compare/v0.33.0...v0.34.0
|
|
14
16
|
[0.33.0]: https://github.com/pjm17971/pond-ts/compare/v0.32.0...v0.33.0
|
|
@@ -30,6 +32,55 @@ patch bumps are strictly additive.
|
|
|
30
32
|
[0.19.0]: https://github.com/pjm17971/pond-ts/compare/v0.18.0...v0.19.0
|
|
31
33
|
[0.18.0]: https://github.com/pjm17971/pond-ts/compare/v0.17.1...v0.18.0
|
|
32
34
|
|
|
35
|
+
## [0.36.0] — 2026-07-02
|
|
36
|
+
|
|
37
|
+
A `@pond-ts/charts` release: a CSS-custom-property → theme bridge so a canvas
|
|
38
|
+
chart can follow a design system's tokens and dark/light toggle. `pond-ts`,
|
|
39
|
+
`@pond-ts/react`, and `@pond-ts/fit` carry no code changes — republished in
|
|
40
|
+
lock-step (their `pond-ts` / `@pond-ts/react` peer ranges widen to `^0.36.0`).
|
|
41
|
+
|
|
42
|
+
### Added
|
|
43
|
+
|
|
44
|
+
- **Charts — `cssVarTheme(base, resolve, opts?)`.** Builds a `ChartTheme` by
|
|
45
|
+
overlaying CSS custom properties onto a base theme: a typed `resolve`
|
|
46
|
+
receives a `readVar` and returns only the slots to override. An unresolved
|
|
47
|
+
var keeps the base value (a missing token never blanks a colour). DOM-only by
|
|
48
|
+
design; safe under SSR / worker (returns the base + any literal fallbacks).
|
|
49
|
+
The typed `ChartTheme` stays the single styling channel — this generates it
|
|
50
|
+
from CSS rather than adding a second one. (#315)
|
|
51
|
+
- **Charts — `useChartTheme(base, resolve, opts?)`.** Wraps `cssVarTheme` and
|
|
52
|
+
re-resolves on a `data-theme` / `class` change (a `MutationObserver` on the
|
|
53
|
+
root, configurable via `{ target, attributes }`), so a chart follows
|
|
54
|
+
dark/light with the page — no `mode` prop threaded through. Returns a new
|
|
55
|
+
theme reference only when the resolved theme actually changed (the repaint
|
|
56
|
+
signal `ChartContainer` keys on), so an unrelated attribute toggle doesn't
|
|
57
|
+
repaint. Lives in `@pond-ts/charts` (not `@pond-ts/react`) to keep the
|
|
58
|
+
package graph acyclic. (#315)
|
|
59
|
+
- **Docs — charts recipes.** [Theming charts](https://pjm17971.github.io/pond-ts/docs/recipes/theming)
|
|
60
|
+
(the `ChartTheme` model, semantic identifiers, per-series dash, the CSS-var
|
|
61
|
+
bridge), [Using @pond-ts/charts](https://pjm17971.github.io/pond-ts/docs/recipes/using-charts)
|
|
62
|
+
(install, the Storybook `react-docgen` gotcha, the repaint contract,
|
|
63
|
+
in-dev consumption), and
|
|
64
|
+
[Resizable multi-panel layout](https://pjm17971.github.io/pond-ts/docs/recipes/resizable-panels).
|
|
65
|
+
(#314, #315, #316)
|
|
66
|
+
|
|
67
|
+
## [0.35.0] — 2026-07-02
|
|
68
|
+
|
|
69
|
+
A `@pond-ts/charts` release: per-series line dash patterns. `pond-ts`,
|
|
70
|
+
`@pond-ts/react`, and `@pond-ts/fit` carry no code changes — republished in
|
|
71
|
+
lock-step (their `pond-ts` / `@pond-ts/react` peer ranges widen to `^0.35.0`).
|
|
72
|
+
|
|
73
|
+
### Added
|
|
74
|
+
|
|
75
|
+
- **Charts — per-series line dash (`LineStyle.dash`).** A theme's line style
|
|
76
|
+
accepts an optional `dash?: readonly number[]` — a px on/off pattern
|
|
77
|
+
(`[6, 4]` dashed, `[2, 3]` ≈ dotted; omit or `[]` = solid) applied to the
|
|
78
|
+
series stroke. Lets a theme set a **modeled / forecast** line (e.g. GARCH
|
|
79
|
+
vol) apart from an observed one at a glance. Distinct from a `GapMode`'s
|
|
80
|
+
inferred gap-bridge dashing (which marks *missing data*, not the whole
|
|
81
|
+
line). Additive: existing themes are unaffected; a solid line never touches
|
|
82
|
+
`setLineDash`. New `Charts/LineChart → LineStyles` story. (#313)
|
|
83
|
+
|
|
33
84
|
## [0.34.1] — 2026-07-01
|
|
34
85
|
|
|
35
86
|
A `pond-ts` core patch: fixes a performance regression introduced in 0.34.0.
|