pond-ts 0.63.0 → 0.64.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/API.md CHANGED
@@ -164,7 +164,7 @@ Deliberately small — the ordering-based slice of the algebra, no calendar ops
164
164
  | Operation schemas | `RollingSchema`, `RollingAlignment`, `AlignSchema`, `DiffSchema`, `SmoothSchema`, `SmoothMethod`, `FillStrategy`, `FillMapping` | `packages/core/src/schema/index.ts` |
165
165
  | Column/data kinds | `Column`, `KeyColumn`, `ColumnKind`, `ScalarKind`, `ScalarValue`, `ColumnValue`, `ArrayValue`, `ValidityBitmap` | `packages/core/src/columnar/` |
166
166
  | JSON wire format | `JsonRowFormat`, `JsonRowForSchema`, `JsonObjectRowForSchema`, `JsonValueForKind`, `JsonTimestampInput`, `JsonTimeRangeInput`, `JsonIntervalInput` | `packages/core/src/schema/index.ts` |
167
- | Temporal utility | `TemporalLike`, `DurationInput`, `CalendarUnit`, `TimeZoneOptions`, `KeyLike`, `BatchSampleStrategy` | `packages/core/src/core/`, `packages/core/src/sequence/` |
167
+ | Temporal utility | `TemporalLike`, `DurationInput`, `CalendarUnit`, `TimeZoneOptions`, `KeyLike`, `BatchSampleStrategy`, `SequenceSample`, `SequenceCoverage` | `packages/core/src/core/`, `packages/core/src/sequence/` |
168
168
 
169
169
  The `pond-ts/types` subpath re-exports the schema-as-contract types with zero
170
170
  runtime (`packages/core/src/schema/public.ts`).
package/CHANGELOG.md CHANGED
@@ -8,7 +8,8 @@ The `@pond-ts` packages — `pond-ts`, `@pond-ts/react`, `@pond-ts/charts`,
8
8
  under a single `v*` tag, so this file covers them all. Pre-1.0: minor bumps may
9
9
  include new features and type-level changes; patch bumps are strictly additive.
10
10
 
11
- [Unreleased]: https://github.com/pond-ts/pond/compare/v0.63.0...HEAD
11
+ [Unreleased]: https://github.com/pond-ts/pond/compare/v0.64.0...HEAD
12
+ [0.64.0]: https://github.com/pond-ts/pond/compare/v0.63.0...v0.64.0
12
13
  [0.63.0]: https://github.com/pond-ts/pond/compare/v0.62.0...v0.63.0
13
14
  [0.62.0]: https://github.com/pond-ts/pond/compare/v0.61.0...v0.62.0
14
15
  [0.61.0]: https://github.com/pond-ts/pond/compare/v0.60.0...v0.61.0
@@ -66,6 +67,127 @@ include new features and type-level changes; patch bumps are strictly additive.
66
67
 
67
68
  ## [Unreleased]
68
69
 
70
+ ## [0.64.0] — 2026-08-28
71
+
72
+ ### Added
73
+
74
+ - `pond-ts`: **`Sequence.bounded(range, { coverage })`** — chooses whether a
75
+ range selects buckets by their sample point (`'sample'`, the default and the
76
+ existing behaviour) or by their extent (`'overlap'`, every bucket the range
77
+ touches, including the one containing `range.begin()`). `aggregate` realizes
78
+ its grid with `'overlap'`; alignment keeps `'sample'`. As a side benefit
79
+ `bounded({ start: t, end: t }, { coverage: 'overlap' })` is a flooring
80
+ primitive — it returns exactly the bucket containing `t` — so consumers no
81
+ longer have to re-derive pond's calendar anchoring by hand to floor a
82
+ timestamp. New exported type `SequenceCoverage`.
83
+
84
+ - `@pond-ts/charts`: **`<YAxis zeroAnchored>`** — pins a y-axis's zoom to the
85
+ value-`0` gridline instead of the pointer, and drops drag-to-pan entirely.
86
+ For a bar chart, whose baseline must never move: a bar rests on `0` (at the
87
+ plot floor for all-positive data, or somewhere mid-plot for data that
88
+ straddles positive and negative), and an ordinary pointer-pivoted gesture
89
+ would slide that baseline around the plot as you scroll. With
90
+ `zeroAnchored`, every wheel notch scales the axis around wherever `0`
91
+ currently renders, so the baseline holds however far in or out you zoom.
92
+ One qualification: the pivot is clamped into the axis's pixel range, so once
93
+ `0` has been scrolled off the plot the zoom pivots about the nearer edge and
94
+ the baseline does creep — benign for bars, where that clamp coincides with
95
+ the declared floor, but not an unconditional guarantee. Still gated by the
96
+ container's own `axisPanZoom` opt-in — this changes what the gesture does,
97
+ not whether it's on.
98
+
99
+ ### Changed
100
+
101
+ - `pond-ts`: **`aggregate` now emits the bucket containing the first event**,
102
+ where before it started at the first grid boundary _at or after_ it — so
103
+ every event between the two aggregated into nothing, silently. 60 daily bars
104
+ rolled to a calendar month came back holding 38 of them: no error, no
105
+ warning, no `undefined`, just a well-formed series with a third of the input
106
+ gone. It contradicted `aggregate`'s own documented membership rule ("point
107
+ events contribute to the bucket containing their timestamp") and was
108
+ asymmetric — the trailing partial bucket _was_ emitted. **This changes
109
+ results for any caller whose first event did not land exactly on a grid
110
+ boundary**: expect an extra leading bucket, and sums/counts that now account
111
+ for the previously-dropped events. Callers who worked around it by passing a
112
+ pre-floored explicit `range` are unaffected — the floor is now what the
113
+ default does. **Note what `range` does and does not bound:** it selects the
114
+ grid, not the event scan, so the leading bucket is filled from every event it
115
+ contains — including events _before_ `range.begin()` when the series has
116
+ them. On a window narrower than the series (a chart viewport, say) the edge
117
+ bucket is therefore a complete bucket rather than a clipped one, which is
118
+ what keeps bar heights stable under a pan; if you need the window to bound
119
+ the events too, narrow the series rather than the grid. `align(...)` and
120
+ `materialize(...)` are deliberately unchanged: their grids are _sampled_,
121
+ and the sample point becomes the output key. A pre-realized
122
+ `BoundedSequence` argument is an explicit bucket list, used as given and
123
+ unaffected by any of this. Reported by Tidal (#672).
124
+
125
+ - `@pond-ts/charts`: **y gutter drag now pans instead of zooming** — matching
126
+ the x strip's own gesture (drag pans, wheel zooms) instead of the
127
+ drag-to-zoom behavior it shipped with in `axisPanZoom="y"`/`"xy"`. Wheel
128
+ still zooms the grabbed axis about the pointer, and double-click still
129
+ releases it back to its fit; only the drag's own effect changed.
130
+
131
+ ### Fixed
132
+
133
+ - `@pond-ts/charts`: **a trading-time date band clamped onto a labelled tick
134
+ keeps its segment boundary.** The F-charts-21 collision fix dropped the whole
135
+ `{ start, label, shaded }` entry, but `<XAxis>` spans each band
136
+ `[its start, the next band's start)` and takes its zebra parity from
137
+ `shaded` — so removing an entry deleted the _period_, not a duplicate label,
138
+ and the preceding band ran on to the next surviving boundary under its own
139
+ name and shading. (Aug 1 2026 is a Saturday, so the August band clamps onto
140
+ Mon Aug 3, already a day tick — August vanished and July painted across it.)
141
+ `bands()` entries now carry **`showLabel`**, and only the text is suppressed.
142
+ Found by Codex reviewing the v0.64.0 range.
143
+ - `@pond-ts/charts`: **a controlled y-gutter wheel zoom no longer pivots about
144
+ the wrong point under a plot-level y zoom.** The `zeroAnchored` pivot was
145
+ corrected above, but the ordinary (non-anchored) controlled wheel still fed
146
+ the pointer's _screen_ pixel into the pre-transform scale's pixel space, so
147
+ the value under the pointer slid out from under it — ~0.14 units per notch at
148
+ `k = 1.198`. Third and last face of one root cause: a screen-space pixel used
149
+ where `base`'s pixel space is meant.
150
+ - `@pond-ts/charts`: **a controlled y-gutter pan no longer overshoots the
151
+ cursor under a plot-level y zoom.** With `onBoundsChange` set, the drag
152
+ translated the axis's pre-transform scale by a _screen_ pixel delta. Those
153
+ two pixel spaces differ by the container's `yTransform`, so with the plot's
154
+ own y pan/zoom engaged (`panZoom="panZoomY"` / `"panZoomXY"`) the axis
155
+ panned `k`× too far and the grabbed value outran the pointer. Both
156
+ transforms are applied in pixel space, so the base↔screen relation is
157
+ exactly affine and the correction is a division, on `log` and `symlog` as
158
+ well. (The division is exact on all three; end-to-end tracking on `symlog`
159
+ still drifts, because its knee is re-derived from the panned domain — a
160
+ pre-existing property the sibling zoom test already documents.) Invisible at
161
+ `k === 1`.
162
+ - `@pond-ts/charts`: **`<YAxis zeroAnchored>` no longer lets the baseline drift
163
+ in the controlled path.** With `onBoundsChange` set, the zoom read `0`'s
164
+ pixel off the axis's _live_ scale but inverted it through `baseYScales`.
165
+ Those two pixel spaces differ by the container's own `yTransform`, so with
166
+ the plot's y pan/zoom active (`panZoom="panZoomY"` / `"panZoomXY"`) the
167
+ baseline crept a few pixels per wheel notch — monotonically, in exactly the
168
+ gesture whose purpose is to hold it still. It was invisible without a
169
+ plot-level y zoom, where the two spaces coincide. Found by a post-merge
170
+ adversarial review of #676.
171
+ - `@pond-ts/charts`: **a `BarChart`'s baseline no longer relocates under a y
172
+ gutter pan/zoom.** `resolveBarBaseline` decided whether bars rest on zero or
173
+ on the axis floor by reading the axis's _live, transformed_ domain — the
174
+ same read a pan/zoom keeps moving — so once a gesture scrolled zero out of
175
+ view, every bar's rendered top silently snapped to the moving floor instead
176
+ of its actual value. It now reads the axis's declared (pre-transform)
177
+ domain for that decision, so a pan/zoom can move the viewport without ever
178
+ relocating a bar's own baseline.
179
+ - `@pond-ts/charts`: **[F-charts-21] a trading-time axis's stacked date-band
180
+ row no longer draws a second, colliding label over a collapsed-gap seam.**
181
+ `scale.bands()` picked its anchors from the raw calendar (a month or day
182
+ start) without checking whether that instant was live, so a period
183
+ beginning on a collapsed weekend or holiday clamped its label onto the same
184
+ seam a tick (or another band) already occupied — rendering as two
185
+ overlapping labels (`"Aug"` over `"Aug 3"`, or worse at tight zoom, fully
186
+ interleaved). Bands whose raw start needed clamping now dedupe against a
187
+ run of other clamped starts landing on the same live instant (picking the
188
+ genuinely-live member as the representative when one exists) and against
189
+ an already-labelled tick, so a seam carries exactly one label.
190
+
69
191
  ## [0.63.0] — 2026-08-18
70
192
 
71
193
  ### Added
@@ -722,6 +722,31 @@ export declare class TimeSeries<S extends SeriesSchema> {
722
722
  * bucket containing their timestamp. Interval-like events contribute to every bucket they
723
723
  * overlap under half-open overlap rules.
724
724
  *
725
+ * The grid **covers** `range` rather than sampling it: the first bucket
726
+ * emitted is the one *containing* `range.begin()`, even when it starts
727
+ * before it, so every event in `range` lands in some emitted bucket. This is
728
+ * what distinguishes bucketing from `align(...)` / `materialize(...)`, whose
729
+ * grids are sampled — there the bucket's sample point becomes the output
730
+ * key, so a bucket starting before the range would key a point outside the
731
+ * window the caller asked for.
732
+ *
733
+ * `range` bounds the **grid, not the event scan**. Every bucket is filled
734
+ * from every event it contains, so a leading bucket that starts before
735
+ * `range.begin()` also sums the events in front of it when the series has
736
+ * them. That is what makes a bucket's value independent of the window it is
737
+ * viewed through — the same bucket reads the same under any `range` — but it
738
+ * means a narrow `range` over a wide series does *not* clip contributions to
739
+ * the window. To bound the events as well, narrow the series (`within(...)`)
740
+ * rather than the grid; note that this instead leaves the edge buckets
741
+ * partially filled, which is the trade being made either way.
742
+ *
743
+ * Coverage applies to a grid this call realizes. A pre-realized
744
+ * `BoundedSequence` is an explicit bucket list and is used exactly as given
745
+ * — pond will not extend it with a bucket the caller did not ask for — so
746
+ * `aggregate(seq.bounded(r), ...)` keeps whatever leading edge `bounded`
747
+ * produced. Pass the `Sequence` itself with `{ range }` to get the covering
748
+ * grid.
749
+ *
725
750
  * Defaults:
726
751
  * - `range`: `series.timeRange()`
727
752
  *
@@ -273,10 +273,10 @@ function makeSmoothSchema(schema, target, output) {
273
273
  { name: output, kind: 'number', required: false },
274
274
  ]);
275
275
  }
276
- function toBoundedSequence(sequence, range, sample) {
276
+ function toBoundedSequence(sequence, range, sample, coverage = 'sample') {
277
277
  return sequence instanceof BoundedSequence
278
278
  ? sequence
279
- : sequence.bounded(range, { sample });
279
+ : sequence.bounded(range, { sample, coverage });
280
280
  }
281
281
  function isTimeKeyed(series) {
282
282
  return series.firstColumnKind === 'time';
@@ -3967,7 +3967,15 @@ function aggregateInternal(series, sequence, mapping, options = {}) {
3967
3967
  rows: [],
3968
3968
  });
3969
3969
  }
3970
- const buckets = toBoundedSequence(sequence, range, 'begin').intervals();
3970
+ // Bucketing selects by extent, not by sample point: every event inside
3971
+ // `range` must land in an emitted bucket, including the events between
3972
+ // `range.begin()` and the first grid boundary at or after it. Alignment
3973
+ // and materialization deliberately keep the default 'sample' coverage —
3974
+ // there the sample point becomes the output key, so a bucket starting
3975
+ // before the range would key a point outside the range the caller asked
3976
+ // for. Reported by Tidal in pond-ts#672
3977
+ // (docs/notes/tidal-aggregate-leading-bucket-2026-08.md).
3978
+ const buckets = toBoundedSequence(sequence, range, 'begin', 'overlap').intervals();
3971
3979
  const columns = aggregateColumns;
3972
3980
  if (isTimeKeyed(series)) {
3973
3981
  // Step 3B columnar fast path: when every mapped column is a built-in
package/dist/index.d.ts CHANGED
@@ -38,6 +38,7 @@ export type { CalendarOptions, CalendarUnit, TimeZoneOptions, } from './core/cal
38
38
  export type { EventKey, IntervalInput, IntervalValue, TemporalLike, TimeRangeInput, TimestampInput, } from './core/temporal.js';
39
39
  export type { DurationInput } from './core/duration.js';
40
40
  export type { SequenceSample } from './sequence/sequence.js';
41
+ export type { SequenceCoverage } from './sequence/sequence.js';
41
42
  export type { LiveSeriesOptions, OrderingMode, RetentionPolicy, } from './live/live-series.js';
42
43
  export type { LiveRollingOptions, RollingWindow, } from './live/live-rolling-aggregation.js';
43
44
  export type { DurationString, FusedMapping, FusedMappingElaborated, FusedMappingValue, FusedRollingSchema, FusedPartitionedRollingSchema, } from './schema/index.js';
@@ -1,6 +1,7 @@
1
1
  export { Sequence } from './sequence.js';
2
2
  export { BoundedSequence } from './bounded-sequence.js';
3
3
  export type { SequenceSample } from './sequence.js';
4
+ export type { SequenceCoverage } from './sequence.js';
4
5
  export type { SampleStrategy } from './sample.js';
5
6
  export type { BatchSampleStrategy } from './sample.js';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -4,6 +4,21 @@ import type { DurationInput } from '../core/duration.js';
4
4
  import type { TemporalLike, TimestampInput } from '../core/temporal.js';
5
5
  export type { DurationInput };
6
6
  export type SequenceSample = 'begin' | 'center' | 'end';
7
+ /**
8
+ * How `bounded(...)` decides which buckets a range selects.
9
+ *
10
+ * - `'sample'` (default) — by the bucket's **sample point**: a bucket is
11
+ * selected when the instant picked by `sample` falls in the range. This is
12
+ * what alignment wants, where the sample point becomes the output key.
13
+ * - `'overlap'` — by the bucket's **extent**: a bucket is selected when any
14
+ * part of it overlaps the range, so the bucket *containing* `range.begin()`
15
+ * is included even though it starts before it. This is what bucketing wants,
16
+ * where every event in the range must land in some emitted bucket.
17
+ *
18
+ * `'overlap'` selects on extent alone, so `sample` does not affect which
19
+ * buckets it returns.
20
+ */
21
+ export type SequenceCoverage = 'sample' | 'overlap';
7
22
  type FixedSequenceInput = {
8
23
  every: DurationInput;
9
24
  anchor?: TimestampInput;
@@ -69,7 +84,31 @@ export declare class Sequence {
69
84
  * Example: `sequence.bounded(new TimeRange({ start, end }))`.
70
85
  * Realizes a finite `BoundedSequence` over the supplied range.
71
86
  *
72
- * Sample position controls which intervals are selected:
87
+ * `coverage` chooses what "over the range" means, and is the more
88
+ * consequential of the two options:
89
+ *
90
+ * - `'sample'` (default) — select by sample point, per the table below. The
91
+ * bucket containing `range.begin()` is **excluded** when it starts before
92
+ * it, because its sample point sits outside the range.
93
+ * - `'overlap'` — select every bucket whose extent overlaps the range,
94
+ * including the one containing `range.begin()`. `sample` is then ignored:
95
+ * selection is on extent, not on a point. Use this whenever the buckets
96
+ * are containers that must account for every instant in the range —
97
+ * `aggregate` realizes its grid this way.
98
+ *
99
+ * At the default `sample: 'begin'` only the leading edge differs between the
100
+ * two: both keep a trailing bucket that starts inside the range and runs
101
+ * past its end. Against a non-default `sample` the trailing edge moves too,
102
+ * because `'overlap'` drops the sample offset that `'sample'` shifts both
103
+ * edges by — another reason to read `'overlap'` as ignoring `sample`
104
+ * outright rather than as a modifier on it.
105
+ *
106
+ * A single-instant range under `'overlap'` is the flooring primitive:
107
+ * `sequence.bounded({ start: t, end: t }, { coverage: 'overlap' })` returns
108
+ * exactly the bucket containing `t`.
109
+ *
110
+ * Sample position controls which intervals are selected under
111
+ * `coverage: 'sample'`:
73
112
  *
74
113
  * - `'begin'` (default) — sample point is the interval's start.
75
114
  * Includes buckets where `sample ∈ [range.begin, range.end]`.
@@ -84,6 +123,7 @@ export declare class Sequence {
84
123
  */
85
124
  bounded(range: TemporalLike, options?: {
86
125
  sample?: SequenceSample;
126
+ coverage?: SequenceCoverage;
87
127
  }): BoundedSequence;
88
128
  }
89
129
  //# sourceMappingURL=sequence.d.ts.map
@@ -99,7 +99,31 @@ export class Sequence {
99
99
  * Example: `sequence.bounded(new TimeRange({ start, end }))`.
100
100
  * Realizes a finite `BoundedSequence` over the supplied range.
101
101
  *
102
- * Sample position controls which intervals are selected:
102
+ * `coverage` chooses what "over the range" means, and is the more
103
+ * consequential of the two options:
104
+ *
105
+ * - `'sample'` (default) — select by sample point, per the table below. The
106
+ * bucket containing `range.begin()` is **excluded** when it starts before
107
+ * it, because its sample point sits outside the range.
108
+ * - `'overlap'` — select every bucket whose extent overlaps the range,
109
+ * including the one containing `range.begin()`. `sample` is then ignored:
110
+ * selection is on extent, not on a point. Use this whenever the buckets
111
+ * are containers that must account for every instant in the range —
112
+ * `aggregate` realizes its grid this way.
113
+ *
114
+ * At the default `sample: 'begin'` only the leading edge differs between the
115
+ * two: both keep a trailing bucket that starts inside the range and runs
116
+ * past its end. Against a non-default `sample` the trailing edge moves too,
117
+ * because `'overlap'` drops the sample offset that `'sample'` shifts both
118
+ * edges by — another reason to read `'overlap'` as ignoring `sample`
119
+ * outright rather than as a modifier on it.
120
+ *
121
+ * A single-instant range under `'overlap'` is the flooring primitive:
122
+ * `sequence.bounded({ start: t, end: t }, { coverage: 'overlap' })` returns
123
+ * exactly the bucket containing `t`.
124
+ *
125
+ * Sample position controls which intervals are selected under
126
+ * `coverage: 'sample'`:
103
127
  *
104
128
  * - `'begin'` (default) — sample point is the interval's start.
105
129
  * Includes buckets where `sample ∈ [range.begin, range.end]`.
@@ -114,6 +138,7 @@ export class Sequence {
114
138
  */
115
139
  bounded(range, options = {}) {
116
140
  const sample = options.sample ?? 'begin';
141
+ const coverage = options.coverage ?? 'sample';
117
142
  const requested = toTimeRange(range);
118
143
  const intervals = [];
119
144
  if (this.#kind === 'fixed') {
@@ -129,11 +154,26 @@ export class Sequence {
129
154
  // boundary case symmetric: begin-sampling at range.end() and
130
155
  // end-sampling at range.begin() would otherwise BOTH include
131
156
  // intervals whose extent sits entirely outside the range.
132
- const sampleOffset = sample === 'center' ? stepMs / 2 : sample === 'end' ? stepMs : 0;
133
- const firstIndex = sample === 'end'
134
- ? Math.floor((requested.begin() - sampleOffset - anchorMs) / stepMs) +
135
- 1
136
- : Math.ceil((requested.begin() - sampleOffset - anchorMs) / stepMs);
157
+ //
158
+ // Under `coverage: 'overlap'` selection is on extent instead, so the
159
+ // sample point plays no part: a bucket is in when its extent overlaps
160
+ // the range. `end > requested.begin()` reduces to `floor` on the same
161
+ // quotient `ceil` is taken of above the one index of difference is
162
+ // the bucket containing `requested.begin()`. The trailing test is
163
+ // `begin <= requested.end()`, which is what `lastIndex` already
164
+ // computes at a zero offset, so only the leading edge moves.
165
+ const sampleOffset = coverage === 'overlap'
166
+ ? 0
167
+ : sample === 'center'
168
+ ? stepMs / 2
169
+ : sample === 'end'
170
+ ? stepMs
171
+ : 0;
172
+ const firstIndex = coverage === 'overlap'
173
+ ? Math.floor((requested.begin() - anchorMs) / stepMs)
174
+ : sample === 'end'
175
+ ? Math.floor((requested.begin() - sampleOffset - anchorMs) / stepMs) + 1
176
+ : Math.ceil((requested.begin() - sampleOffset - anchorMs) / stepMs);
137
177
  const lastIndex = Math.floor((requested.end() - sampleOffset - anchorMs) / stepMs);
138
178
  for (let index = firstIndex; index <= lastIndex; index += 1) {
139
179
  const start = anchorMs + index * stepMs;
@@ -156,14 +196,25 @@ export class Sequence {
156
196
  : sample === 'center'
157
197
  ? start + (end - start) / 2
158
198
  : start;
159
- if (sampleTime > requested.end()) {
199
+ // Under `coverage: 'overlap'` selection is on extent, so both tests
200
+ // read the bucket's own start rather than its sample point.
201
+ const selector = coverage === 'overlap' ? start : sampleTime;
202
+ if (selector > requested.end()) {
160
203
  break;
161
204
  }
162
205
  // 'begin' and 'center': sample ∈ [requested.begin, requested.end]
163
206
  // 'end': sample ∈ (requested.begin, requested.end]
164
- const include = sample === 'end'
165
- ? sampleTime > requested.begin()
166
- : sampleTime >= requested.begin();
207
+ //
208
+ // Under 'overlap' every candidate is in: the walk starts at the bucket
209
+ // containing `requested.begin()` (`toPlainDateStart` floors to it), and
210
+ // every later bucket starts after that, so the leading test can only
211
+ // ever pass. This is the one line the leading-bucket drop turned on —
212
+ // the containing bucket was computed above and then discarded here.
213
+ const include = coverage === 'overlap'
214
+ ? true
215
+ : sample === 'end'
216
+ ? sampleTime > requested.begin()
217
+ : sampleTime >= requested.begin();
167
218
  if (include) {
168
219
  intervals.push(new Interval({ value: start, start, end }));
169
220
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pond-ts",
3
- "version": "0.63.0",
3
+ "version": "0.64.0",
4
4
  "description": "TypeScript-first time series primitives",
5
5
  "license": "MIT",
6
6
  "repository": {