|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## `5.0.0` |
| 4 | + |
| 5 | +Note that this version is not backwords-compatible with `4.*`. Check out [the migration guide](migrating-to-5.md). |
| 6 | + |
| 7 | +### breaking changes 💥 |
| 8 | + |
| 9 | +- 2f8f82f require Node `>=10` |
| 10 | +- 29a2cf3/2b9280e add `plannedArrival`/`plannedDeparture`/`plannedWhen`, `scheduled*` -> `planned*`/`prognosed*` |
| 11 | +- 938a6f2/2d1d482 add `plannedArrivalPlatform`/`plannedDeparturePlatform`/`plannedPlatform`, `scheduled*` -> `planned*`/`prognosed*` |
| 12 | +- 35e44d4 `parseWarning()`/`parseHint()`: change signature to `(profile, raw, data) => …` |
| 13 | +- 4162328 `createClient()`: change signature to `(profile, userAgent, opt = {}) => …` |
| 14 | +- fb7a565/252ce5b/9fc6664/2cfee22/e2567ef change parse fns signature to `({profile, opt, res, common}) => (rawData) => …` |
| 15 | +- baff692 `journeys()`: don't request nr of results by default |
| 16 | +- b8496be DB `journeys()`: let `journey.price` default to `null` |
| 17 | +- 6d5c608 call `request()` via `profile` |
| 18 | + |
| 19 | +### features |
| 20 | + |
| 21 | +- f8210c5/9c47a39/0c145d3/9a89cd0 `journeys()`: add `walkingSpeed` option |
| 22 | +- a40006f/1afe4ca BVG: support *BerlKönig*, add E2E test |
| 23 | +- 352fa2e parse more warning fields |
| 24 | +- 8b2a5a8 `parseIcon()`: use `.txt` & `.txtS` as text fallback |
| 25 | +- 39a6267 request formatters (e.g. `formatTripReq()`) via `profile` |
| 26 | + |
| 27 | +### bugfixes 🐛 |
| 28 | + |
| 29 | +- 5ea22f7 `parseHint()`: parse `.code` & `.text` properly |
| 30 | +- 29d7bd4 `parseJourney()`: fix `journey.scheduledDays` year |
| 31 | +- 9a6bc2d `parseWarning()`: call `parseDateTime()` via `profile` |
| 32 | +- 7b7293e `request()`: use *transformed* `req` |
| 33 | + |
| 34 | +[🏷 `5.0.0`](https://github.com/public-transport/hafas-client/releases/tag/5.0.0), 2020-01-05 |
| 35 | + |
3 | 36 | ## `4.8.0`
|
4 | 37 |
|
5 | 38 | - 56dee66/46eadcf/1611635 add [*DB Busradar NRW* profile](../p/db-busradar-nrw)
|
|
0 commit comments