Skip to content

Add diffRanges offset-tuple API, finalize 1.1.0 changelog - #14

Merged
krkarma777 merged 1 commit into
masterfrom
feature/diff-ranges
Aug 31, 2026
Merged

Add diffRanges offset-tuple API, finalize 1.1.0 changelog#14
krkarma777 merged 1 commit into
masterfrom
feature/diff-ranges

Conversation

@krkarma777

Copy link
Copy Markdown
Owner

Summary

  • New diffRanges(a, b, options?): returns changed regions as [aStart, aEnd, bStart, bEnd] UTF-16 code-unit offset tuples — the projection of diff() entries onto string offsets, for editors/highlighters that slice the originals themselves; composes with mode/refine/heuristic
  • CHANGELOG: [Unreleased] finalized as [1.1.0] including the hosted demo and heuristic/refine entries
  • README API section documents diffRanges and the diffTokens options argument

Test Plan

  • 4 new tests incl. 2,400-case fuzz: ranges ascending/non-overlapping, no empty-empty tuples, and splice-rebuild of b from a across all modes × refine on/off
  • Full suite 43/43, typecheck clean

@krkarma777
krkarma777 merged commit e9deafc into master Aug 31, 2026
5 checks passed
@krkarma777
krkarma777 deleted the feature/diff-ranges branch August 31, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant