Version packages - #26
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/master
branch
from
September 14, 2026 12:10
5b5466b to
f5dc074
Compare
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 master, this PR will be updated.
Releases
connection-scan-algorithm@3.1.0
Minor Changes
01a7c03: Return each destination's earliest arrival in the fewest legs. The scan kept one label per station,
its earliest arrival, so an arrival a few minutes later in fewer legs was thrown away even when it
made the same onward train, and every journey on from it took the extra legs. A station now keeps a
label for each number of legs, up to
maxLegs(8 unlessScanResultsFactoryis given another, thelast holding that many or more and keeping how many), and a trip is boarded from the fewest legs that
are in time for it. With
maxLegsof 1 the journeys are 3.0.1's.Over the GB rail benchmark queries the arrivals are unchanged and 172 of 5,643 journeys take fewer
legs.
JourneyFactoryno longer rewrites the legs of a journey after the scan.Footpaths out of a station are all taken before any is walked on from, and the labels are allocated
once per
ScanResultsFactoryrather than per scan, so point to point scans are about 25% faster.ConnectionIndexis now the labels:levelsper station, withboardingTimesandconnectionsat
station * levels + legs. It is reused by the next scan from the sameScanResultsFactory.ScanResults.setConnectionreturns the legs a station was reached sooner in, or 0.isTransferBetter,setTransferandisReachedByTransfertake the legs of the station the footpathis walked from.