Skip to content

Commit d9dc937

Browse files
authored
Merge pull request #45 from sysdevrun/claude/progressinfo-export-p6e36l
Export ProgressInfo and ProgressCallback from package entry point
2 parents 9e10c6e + 223c3f0 commit d9dc937

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Upcoming release
44

5+
- Fix: `ProgressInfo` and `ProgressCallback` types are now exported from the package entry point, as documented in the README (`import { type ProgressInfo } from 'gtfs-sqljs'` previously failed).
6+
57
## 0.8.0
68

79
- **Add `getTripSchedules(filters)`** — display-ready trip schedules with everything pre-computed: seconds since the start of the service day (past-midnight times > 86400 supported), unix epochs computed in the agency's timezone (DST-safe "noon minus 12h" rule, zero-dependency via `Intl`), realtime delays resolved per the GTFS-RT spec (delay ↔ absolute time cross-computed, arrival ↔ departure borrowed, delay propagated to subsequent stops until the next update, trip-level delay fallback, `stop_id`-only matching), `SKIPPED`/`NO_DATA`/canceled flags, `display_epoch` (departure, or arrival at the terminus; `displayMode: 'arrival'` flips it), and stop names joined in. Filters: `tripId` and/or `routeId` (+ `directionId`), required service `date`, optional `now`, `displayMode`, `timezone`. Batched internally — one trip or a whole route's day costs the same five indexed queries.

package-lock.json

Lines changed: 6 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export {
88
GtfsSqlJs,
99
type GtfsSqlJsOptions,
1010
type GtfsSqlJsAttachOptions,
11+
type ProgressInfo,
12+
type ProgressCallback,
1113
type AgencyFilters,
1214
type StopFilters,
1315
type RouteFilters,

0 commit comments

Comments
 (0)