@autobusal/providers 1.41.4 → 1.41.5

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,3 +1,7 @@
1
+ ## 1.41.5 - 2026-08-30
2
+
3
+ - PriceData gains `base`/`base_display` - what this party would have paid before a dynamic reduction, present only on a reduction.
4
+
1
5
  ## 1.41.4 - 2026-08-29
2
6
 
3
7
  - useGetMenu SUBSCRIBES to the language rather than only keying on it (audit A6-73). `i18next.language` was read during render and nothing re-rendered on a switch, so the i18n strings changed instantly while the admin-managed menu labels stayed in the previous language until a full reload.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.41.4",
3
+ "version": "1.41.5",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/routes.ts CHANGED
@@ -217,6 +217,22 @@ export interface PriceData {
217
217
  display: string
218
218
  offer?: boolean
219
219
  value: number
220
+
221
+ /**
222
+ * What this party would have paid before a dynamic price rule reduced it.
223
+ *
224
+ * Claude - 2026-08-30 (roadmap P5, ruled by Ferjolt). Present ONLY on a
225
+ * reduction: "for a price rise, just the price; if the price drops, the
226
+ * standard fare cut through, and the actual price discounted". A surcharge
227
+ * deliberately publishes nothing here, so there is no "was" figure lying
228
+ * around for a card to render as a discount that never happened.
229
+ *
230
+ * It is a real total for the passengers being quoted - the same arithmetic
231
+ * as `value`, run against the pre-modifier fares - not a list price nobody
232
+ * was offered.
233
+ */
234
+ base?: number
235
+ base_display?: string
220
236
  from: LocationData
221
237
  to: LocationData
222
238
  adult: number