Skip to content

v0.2.0

Choose a tag to compare

@chtitux chtitux released this 26 Aug 18:54
· 21 commits to main since this release
  • Reusable analyzer: createCalendarAnalyzer(gtfs, options) loads the feed once; analyze(hints) is pure in-memory computation, so trying several hint sets costs milliseconds. findCalendarPeriods delegates to it (identical results).
  • Optional raw-SQL fast path (fastPath option, default true): when the source exposes a gtfs-sqljs adapter database on db, read-only SQL queries replace the row-by-row getXXXX calls with identical results — ~×6 on Astuce (Rouen). Falls back to the portable path on any failure.
  • Custom hint attributes: findCalendarPeriods and CalendarAnalyzer.analyze are now generic (H extends Hint) — hints may carry arbitrary extra attributes, preserved by reference in the results (no copies) and typed all the way through. MatchedGroup gains hint (the originating hint object) and Period gains hints (distinct contributing hints, in hint order, synthetic leftover hint excluded). Backward compatible.

Full details in CHANGELOG.md.