Skip to content

chore(master): release 2.1.0 - #12

Merged
hexsprite merged 2 commits into
masterfrom
release-please--branches--master--components--intervaltree
Oct 4, 2026
Merged

hexsprite merged 2 commits into
masterfrom
release-please--branches--master--components--intervaltree

Conversation

@hexsprite

@hexsprite hexsprite commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

🤖 I have created a release beep boop

2.1.0 (2026-10-04)

Features

  • add IntervalTree.fromJSON for exact serialize round trips (bfe9bbe)
  • export ArrayIntervalCollection as reference implementation (c4ccdf6)
  • widen IntervalCollection to the full API (54cf430)

Bug Fixes

  • add exports map so require() resolves the cjs build (8619f02)
  • align ArrayIntervalCollection hash and constructor with IntervalTree (d72a67b)
  • correct chop assertion message (05a2fd3)
  • default invariant checks off and read flag at runtime (ccef5d9)
  • guard searchByLengthStartingAt against non-positive minLength (e7e6639)
  • keep same-start intervals sorted by end so equals/first/last are order-independent (29d5cad)
  • make empty chop ranges a no-op and validate chopAll ranges up front (a81addd)
  • make verify() read-only and check every invariant (fe229e1)
  • require a gap between intervals in a clean tree (53ab6ce)
  • return the largest-end interval from last() and document canonical order (b7ae950)
  • sort searchByLengthStartingAt results after clipping to startingAt (686140c)
  • stop chopAll from mutating the caller's ranges (5875f5d)
  • verify strict ordering of left child (a927b23)

Performance Improvements

  • copy augmentation fields in Node.clone instead of recomputing (6a06086)
  • early-exit contains() and overlaps() (802dd09)
  • faster add, remove, chop, chopAll, and removeEnveloped (5–12% in the bundled benchmarks): the tree core now tracks its own size and reports insert/remove results without module-level state (03c9d74)

This PR was generated with Release Please. See documentation.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Drop the gaps() spike line: gaps is not exported. Name the tree-core
speedup, which landed as refactor commits and so is hidden by default.

Claude-Session: https://claude.ai/code/session_01LvcQF6DarWXfPCstXTDykn
@hexsprite
hexsprite merged commit 08f5cb4 into master Oct 4, 2026
6 checks passed
@hexsprite
hexsprite deleted the release-please--branches--master--components--intervaltree branch October 4, 2026 04:29
@hexsprite

Copy link
Copy Markdown
Owner Author

🤖 Created releases:

🌻

@codspeed

codspeed Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 39 untouched benchmarks


Comparing release-please--branches--master--components--intervaltree (06e51b4) with master (f704b4b)

Open in CodSpeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant