Version Packages - #4
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
rankBetweenproducing a rank outside its bounds when the two majors areadjacent and the upper bound carries a minor.
minorSpaceRanksonly substituted an absolute ceiling whenhigh.minorwasexactly
":". Otherwise it compared the lower bound's fraction against afraction belonging to a different major, which can run descending and yields a
value below
prev.assertWithinBoundscaught it, so the symptom was aRankInvariantErrorrather 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,rankAfterandrankBefore. Only inputs that previously threwchange.