Skip to content

Version Packages - #4

Merged
theyoungwolf-dev merged 1 commit into
mainfrom
changeset-release/main
Aug 12, 2026
Merged

Version Packages#4
theyoungwolf-dev merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@theyoungwolf/lexorank@0.1.3

Patch Changes

  • 649fc48: Fix rankBetween producing a rank outside its bounds when the two majors are
    adjacent and the upper bound carries a minor.

    minorSpaceRanks only substituted an absolute ceiling when high.minor was
    exactly ":". Otherwise it compared the lower bound's fraction against a
    fraction belonging to a different major, which can run descending and yields a
    value below prev. assertWithinBounds caught it, so the symptom was a
    RankInvariantError rather than silent corruption, but the call still failed.

    The shape is reachable from ranks this library produced: grow a fraction at the
    top of one major and another at the bottom of the next, then delete the item
    between them. Their neighbours are now the failing pair.

    The minor's ceiling is now treated as open whenever the bounds do not share a
    major, when the upper bound is absent, or when a bucket boundary was spoofed —
    and the low-side pivot marks it open too, since borrowing the lower bound's
    character puts every extension below the original ceiling.

    Ranks already written are unaffected: 40,000 random insertions driven entirely
    by library calls produce byte-identical output to the previous release, as do
    rebalance, rankAfter and rankBefore. Only inputs that previously threw
    change.

@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lexorank Ready Ready Preview Aug 12, 2026 12:32pm

@theyoungwolf-dev theyoungwolf-dev self-assigned this Aug 12, 2026
@theyoungwolf-dev
theyoungwolf-dev merged commit 660abc4 into main Aug 12, 2026
3 checks passed
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