@autobusal/providers 1.19.0 → 1.20.0

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
@@ -7,6 +7,11 @@ adheres to [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
7
7
  > Note: 1.8.0 through 1.11.0 were published without changelog entries. The
8
8
  > gap is left as-is rather than reconstructed after the fact.
9
9
 
10
+ ## 1.20.0
11
+
12
+ `FoundData.departs_in` — minutes until departure, for same-day searches only,
13
+ null on every other date.
14
+
10
15
  ## 1.19.0
11
16
 
12
17
  `types/reviews.ts` — `RatingData`, `ReviewData`, `ReviewSummaryData`. `rating`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/routes.ts CHANGED
@@ -113,6 +113,13 @@ export interface FoundData extends Omit<RouteData, 'locations' | 'id'> {
113
113
  // must read "missing" as unknown, never as direct.
114
114
  stops_count?: number
115
115
  // Edited: Ferjolt Ozuni - Date: 2026-08-01
116
+ // Edited: Ferjolt Ozuni - Date: 2026-08-03
117
+ // Minutes until this coach leaves, for TODAY's searches only - null on
118
+ // every other date. Computed server-side, because a countdown built from
119
+ // the visitor's own clock is wrong for anybody whose device is off or in
120
+ // another timezone, and "leaves in 20 minutes" must not be wrong.
121
+ departs_in?: number | null
122
+
116
123
  // The operator's subscription priority, as obtapi already sends it.
117
124
  // Used only as a tiebreak in the "recommended" ordering - see
118
125
  // routes-order's Found/refine.ts. Absent on external-provider offers.