Skip to content

Version Packages - #117

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

Version Packages#117
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 6, 2026

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 publish to npm yourself or setup this action to publish 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

votes@4.0.0

Major Changes

  • af1be8f: Refactor everything. New API. Main changes:

    • Remove external dependency javascript-lp-solver.
    • Implement tie-breaking mechanism.
    • New Election class to chain rankers together.
    • New unrankedLast option on ballot methods: by default unranked candidates
      join a ballot as one tied bottom tier; pass false to score only expressed
      preferences.
    • Round-based methods report per-round details: scores, tie-break steps, and
      method-specific info (CoombsInfo, NansonInfo).
    • Round-method ranking() now includes the winners tier.
    • New Schulze#strengths() exposing the beatpath strength matrix.
    • New iteratedRanking() on all methods and Election: fill each place by
      re-running the full method without the already-placed candidates, instead of
      using the method's own full ranking. restrict() is now public, and the
      iterateRanking helper is exported under utils.
    • Ranked pairs: fix infinite recursion on raw win-count matrices with wide
      ties.

Patch Changes

  • 6eed0be: Performance and packaging improvements:

    • matrixFromBallots now indexes candidates with a Map and tracks unranked
      candidates with a Set (was O(ballots × candidates²)).
    • New pairwiseMatrix utility; Copeland and Schulze share it.
    • Simplify Ranked pairs winner detection (removes dead score bookkeeping).
    • package.json exports now declares explicit types conditions and
      exposes ./package.json.
    • Remove the utils.Edge re-export; use RankedPairsEdge from the package
      root instead.

@github-actions
github-actions Bot force-pushed the changeset-release/main branch 2 times, most recently from 9feab28 to 26f07c8 Compare June 23, 2026 19:11
@github-actions
github-actions Bot force-pushed the changeset-release/main branch 3 times, most recently from e9c7bda to 6efeaab Compare July 12, 2026 16:51
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 6efeaab to 4df7439 Compare July 19, 2026 20:56
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 4df7439 to e492a32 Compare August 4, 2026 21:31
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from e492a32 to 0e83f9f Compare August 8, 2026 10:54
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 0e83f9f to dce8416 Compare August 23, 2026 13:55
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.

0 participants