minotor 11.2.1 → 11.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [11.2.1](https://github.com/aubryio/minotor/compare/v11.2.0...v11.2.1) (2026-04-27)
1
+ ## [11.2.2](https://github.com/aubryio/minotor/compare/v11.2.1...v11.2.2) (2026-04-27)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * range raptor with no destination should cover the full network ([#68](https://github.com/aubryio/minotor/issues/68)) ([8a47577](https://github.com/aubryio/minotor/commit/8a4757739a84db478443ea2dd77bb6867e4b6851))
6
+ * prevent higher-round rRAPTOR labels from overwriting equal or better aggregate arrivals ([#69](https://github.com/aubryio/minotor/issues/69)) ([a35c4e2](https://github.com/aubryio/minotor/commit/a35c4e23caab026972fbab78e54c0de2a905feda))
package/dist/cli.mjs CHANGED
@@ -22815,9 +22815,16 @@ class RangeRaptorState {
22815
22815
  isDestination(stop) {
22816
22816
  return this.currentRun.isDestination(stop);
22817
22817
  }
22818
- /** Updates both the per-run state and the cross-run shared labels. */
22818
+ /** Updates the per-run aggregate best when improved, and always considers the cross-run shared label. */
22819
22819
  updateArrival(stop, time, round) {
22820
- this.currentRun.updateArrival(stop, time, round);
22820
+ const currentRunArrival = this.currentRun.getArrival(stop);
22821
+ const improvesCurrentRunAggregate = currentRunArrival === undefined ||
22822
+ time < currentRunArrival.arrival ||
22823
+ (time === currentRunArrival.arrival &&
22824
+ round < currentRunArrival.legNumber);
22825
+ if (improvesCurrentRunAggregate) {
22826
+ this.currentRun.updateArrival(stop, time, round);
22827
+ }
22821
22828
  if (time < this.roundLabels[round][stop]) {
22822
22829
  this.roundLabels[round][stop] = time;
22823
22830
  this.changedInRound[round].push(stop);