pond-ts 0.47.0 → 0.48.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -8,7 +8,8 @@ The `@pond-ts` packages — `pond-ts`, `@pond-ts/react`, `@pond-ts/charts`,
8
8
  tag, so this file covers them all. Pre-1.0: minor bumps may include new features
9
9
  and type-level changes; patch bumps are strictly additive.
10
10
 
11
- [Unreleased]: https://github.com/pond-ts/pond/compare/v0.47.0...HEAD
11
+ [Unreleased]: https://github.com/pond-ts/pond/compare/v0.48.0...HEAD
12
+ [0.48.0]: https://github.com/pond-ts/pond/compare/v0.47.0...v0.48.0
12
13
  [0.47.0]: https://github.com/pond-ts/pond/compare/v0.46.0...v0.47.0
13
14
  [0.46.0]: https://github.com/pjm17971/pond-ts/compare/v0.45.0...v0.46.0
14
15
  [0.45.0]: https://github.com/pjm17971/pond-ts/compare/v0.44.1...v0.45.0
@@ -46,6 +47,34 @@ and type-level changes; patch bumps are strictly additive.
46
47
 
47
48
  ## [Unreleased]
48
49
 
50
+ ## [0.48.0] — 2026-07-17
51
+
52
+ ### Added
53
+
54
+ - **charts:** `<ChartContainer>` gains **`cursorFormat`** — an independent
55
+ format for the **cursor / marker readout** (the crosshair time pill, marker
56
+ axis indicators, annotation auto-labels), separate from the tick-label
57
+ `timeFormat` / `format`. Unlike `timeFormat` (which _owns the labels_ and so
58
+ opts the axis out of the `dateStyle` ladder by design), `cursorFormat` shapes
59
+ only the readout and **keeps the flat / stacked date style** — resolving the
60
+ "one knob, two concerns" bind where the only way to fix the pill was to give
61
+ up the styled axis. A d3 specifier **string** formats uniformly; a
62
+ **function** `(epochMs, { grain, defaultText }) => string` is handed the
63
+ axis's resolved coarse **`TimeGrain`** (`year` … `second`) and the
64
+ grain-aware default text, so it can branch on zoom and pass the default
65
+ through — no re-deriving the grain from the range. New public types
66
+ **`CursorFormat`** / **`TimeGrain`**; `TradingTimeScale` gains
67
+ `readoutFormat(count)` and `grain(count)`.
68
+
69
+ ### Fixed
70
+
71
+ - **charts:** the cursor / marker time readout now formats at the axis's
72
+ **own grain** by default instead of d3's multi-scale default — a
73
+ day-or-coarser axis reads a **date** (`Sep 14, 2026`), a sub-day axis reads
74
+ date + clock. Fixes the 0.47.0 flat-axis regression where a daily bar at a
75
+ foreign-timezone midnight rendered as a bare time-of-day (`02 AM`) in the
76
+ crosshair pill (Tidal F-charts-7). Tick labels are unchanged.
77
+
49
78
  ## [0.47.0] — 2026-07-17
50
79
 
51
80
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pond-ts",
3
- "version": "0.47.0",
3
+ "version": "0.48.0",
4
4
  "description": "TypeScript-first time series primitives",
5
5
  "license": "MIT",
6
6
  "repository": {