2018-03-18 13:39:50 +01:00
# Changelog
2018-09-20 19:01:59 +02:00
2019-02-08 13:16:52 +01:00
## `3.9.0`
- b0f786c support for retrying failed requests ✨ – [docs ](readme.md#retrying-failed-requests )
## `3.8.1`
- 3f58d84 handle `stop` objects as input 🐛
2018-12-31 18:26:07 +01:00
## `3.8.0`
- 5d0096c `departures()` : profile flag for `getPasslist` & `stbFilterEquiv`
- #99 [Saarfahrplan profile ](p/saarfahrplan ) – Thanks @ialokim & @juliuste !
2018-12-28 22:46:21 +01:00
## `3.7.0`
- e867dac/f097022 `opt.stopovers` , `departure.nextStopovers` /`arrival.previousStopovers`
2018-12-28 22:14:28 +01:00
## `3.6.3`
- cb2d298 `stop` s/`station` s: default `id` of `null` 🐛
2018-12-16 17:07:43 +01:00
## `3.6.2`
- 5beff47 `radar()` : fix `polylines` option 🐛
- 48424cf `p-throttle` as normal dependency 🐛
2018-12-10 14:41:17 +01:00
## `3.6.1`
- b809281 fix error parsing 🐛
- bcbc366/ae2007c/e1f1d0d ÖBB `radar()` : fix filtering of `movement.nextStops` 🐛
2018-12-03 11:49:55 +01:00
## `3.6.0`
- 4b56f66 parse `journey.cycle` if returned by HAFAS
- 17b8f14 `journeyLeg.cycle` : parse `nr` field if returned by HAFAS
- 8fac5fc `journeyLeg.alternatives` : parse `direction` , `delay` , `tripId`
2018-11-13 19:40:44 +01:00
## `3.5.0`
2018-12-03 11:49:55 +01:00
- 9d96902 `readableFrom()` : make `opt.maxDuration` optional
2018-11-13 19:40:44 +01:00
- 02e0e51 parse scheduled days of a `journey`
2018-10-24 22:13:37 +02:00
## `3.4.3`
- 9936466 `p-throttle@2` , `tape-promise@4`
## `3.4.2`
- 2a6b0dc speed up date+time formatting ⚡️
2018-09-22 19:24:50 +02:00
## `3.4.1`
2018-09-24 15:40:27 +02:00
- ed3ecd7 speed up date+time formatting ⚡️
## `3.4.1`
2018-09-22 19:24:50 +02:00
- 582c9de speed up date+time parsing ⚡️
2018-09-20 19:01:59 +02:00
## `3.4.0`
- #81 [S-Bahn München profile ](p/sbahn-muenchen ) – Thanks @flori -uni!
2018-03-18 13:39:50 +01:00
2018-09-03 20:46:40 +02:00
## `3.3.1`
- 035877c `reachableFrom()` retry 🐛
2018-09-03 18:37:04 +02:00
## `3.3.0`
- #80/b36ccda `reachableFrom()` method – [docs ](reachable-from.md )
2018-09-03 15:35:52 +02:00
## `3.2.1`
- 044a5ee `arrivals()` : return a `direction` of `null` :bug:
- b37bedb parse `line.id` if possible
2018-08-26 18:44:39 +02:00
## `3.2.0`
2018-08-27 13:18:24 +02:00
- #79 [CapMetro/CMTA profile ](p/cmta ) – Thanks @nickturskyi !
2018-08-26 18:44:39 +02:00
2018-08-24 20:17:12 +02:00
## `3.1.2`
- f796337 handle warnings without schedule `sDate` /`eDate` /`lModDate` 🐛
2018-08-23 21:02:59 +02:00
## `3.1.1`
- 39cc2f3 fix install on Windows 🐛
2018-08-22 19:36:14 +02:00
## `3.1.0`
- 9257d3a parse `line.fahrtNr`
2018-06-19 09:11:26 +02:00
## `3.0.0`
2018-06-27 11:13:55 +02:00
This version is not fully backwords-compatible. Check out [the migration guide ](migrating-to-3.md ).
2018-06-19 09:11:26 +02:00
2018-06-27 11:13:55 +02:00
### new features ✨
2018-07-28 13:54:44 +02:00
- 2d3796a BVG profile
2018-06-27 11:13:55 +02:00
- 0db84ce #61 parse remarks for stopovers and journey legs
- ac9819b `arrivals()` method – [docs ](arrivals.md )
2018-07-25 11:17:44 +02:00
- 5b754aa `refreshJourney()` method – [docs ](refresh-journey.md )
2018-06-29 14:58:43 +02:00
- 21c273c `journeys()` /`trip()` : leg stopovers: parse & expose delays
- 021ae45 `journeys()` /`trip()` : leg stopovers: parse & expose platforms
2018-06-27 17:17:04 +02:00
- 84bce0c `arrivals()` /`departures()` : parse & expose platforms
2018-06-27 11:13:55 +02:00
- 85e0bdf `journeys()` : `startWithWalking` option with default `true`
2018-06-28 14:11:41 +02:00
- f6ae29c journey legs with `type: 'walking'` now have a `distance` in meters
2018-07-16 11:35:47 +02:00
- 0d5a8fa departures, arrivals, stopovers: former scheduled platform(s)
- 0199749 `language` option with default `en`
2018-07-10 19:01:40 +02:00
- 1551943 `arrivals()` /`departures()` : `includeRelatedStations` option with default `true`
2018-06-27 11:13:55 +02:00
### breaking changes 💥
2018-07-19 21:55:03 +02:00
- c4935bc new mandatory `User-Agent` parameter
2018-06-27 11:13:55 +02:00
- b7c1ee3 profiles: new products markup ([guide ](https://github.com/public-transport/hafas-client/blob/ebe4fa64d871f711ced99d528c0171b180edc135/docs/writing-a-profile.md#3-products ))
- 40b559f change `radar(n, w, s, e)` signature to `radar({north, west, south, east})`
- 005f3f8 remove `journey.departure` , `journey.arrival` , …
- 0ef0301 validate `opt.when`
- 431574b parse polylines using `profile.parsePolyLine` – [docs for the output format ](https://github.com/public-transport/hafas-client/blob/ebe4fa64d871f711ced99d528c0171b180edc135/docs/journey-leg.md#polyline-option )
- a356a26 throw if 0 products enabled
- c82ad23 `journeys()` : `opt.when` → `opt.departure` /`opt.arrival`
- 665bed9 rename `location(id)` to `station(id)`
2018-06-29 14:58:43 +02:00
- 6611f26 `journeys()` /`trip()` : `leg.passed` → `leg.stopovers`
- ebe4fa6 `journeys()` /`trip()` : `opt.passedStations` → `opt.stopovers`
- 3e672ee `journeys()` /`trip()` : `stopover.station` → `stopover.stop`
2018-06-27 11:13:55 +02:00
- 2e6aefe journey leg, departure, movement: `journeyId` -> `tripId`
- 8881d8a & b6fbaa5: change parsers signature to `parse…(profile, opt, data)`
2018-06-28 13:00:33 +02:00
- cabe5fa: option to parse & expose `station.lines` , default off
2018-06-29 14:58:43 +02:00
- c8ff217 rename `journeyLeg()` to `trip()`
2018-06-29 15:14:26 +02:00
- 8de4447 rename `profile.journeyLeg` to `profile.trip`
2018-06-19 09:11:26 +02:00
2018-06-28 16:34:49 +02:00
### bugfixes
- dd0a9b2 `parseStopover` : fix first/last canceled stopovers 🐛
2018-08-08 18:47:00 +02:00
## `2.10.3`
- 50bd440 better `User-Agent` randomization
2018-07-25 11:38:07 +02:00
## `2.10.2`
- d54c26d randomize `User-Agent`
2018-07-02 16:54:21 +02:00
## `2.10.1`
- 04d550f parse `TRSF` legs as `walking` 🐛
2018-06-30 14:39:21 +02:00
## `2.10.0`
- 4da8689 journey legs with `type: 'walking'` now have a `distance` in meters
- c1bdade `departures()` : parse & expose platforms
- fccd3d0 `journeys()` : `startWithWalking` option
2018-06-30 13:58:13 +02:00
## `2.9.1`
- a952b08 notes on how to use `hafas-client` with react-native 📝
- 38a3749 `parseStopover` : fix first/last canceled stopovers 🐛
## `2.9.0`
- 49186ae journey leg passed stations: add `arrivalDelay` & `departureDelay`
- deb8829 [`journeys()` ](journeys.md ): new `whenRepresents` option
- f3d8304 let the `insa` and `nahsh` profiles use HTTPS
2018-06-07 12:04:48 +02:00
## `2.8.1`
- 769f2e3 send `Accept: application/json`
2018-06-04 19:11:59 +02:00
## `2.8.0`
- 16c3f01 enable [`journeyLeg()` ](journey-leg.md ) for [DB ](../p/db )
## `2.7.5`
- 908d531 [DB ](../p/db ) [`journeys()` ](journeys.md ): fix polylines parsing 🐛
## `2.7.4`
- 709b7b4 update dependencies
## `2.7.3`
- 48f2cef each movement from `radar()` now has a `journeyId` field
## `2.7.2`
- a97e0d3 fix polylines parsing 🐛
## `2.7.1`
- aa480e0 fix polylines parsing 🐛
2018-05-15 23:49:56 +02:00
## `2.7.0`
- `journeys()` : `polylines` option
- `journeyLeg()` : `polyline` option
- `radar()` : `polylines` option
2018-04-29 14:30:05 +02:00
## `2.6.0`
- 5d10d76 journey legs: parse cycle
2018-04-29 14:20:03 +02:00
## `2.5.3`
- d676b84 fix parsing for journey leg alternatives 🐛
## `2.5.2`
- 16e6dd6 departure docs: fix method 📝
- c60213a DB: tram mode should be `train` 🐛
## `2.5.1`
- afc0124 fix stopover parsing 🐛
2018-03-18 13:39:50 +01:00
## `2.5.0`
- new [Schleswig-Holstein (NAH.SH) ](https://de.wikipedia.org/wiki/Nahverkehrsverbund_Schleswig-Holstein ) [profile ](../p/nahsh )
- new [*writing a profile* guide ](./writing-a-profile.md )
2018-03-19 22:19:45 +01:00
## `2.4.2`
- `parseStopover` : expose canceled arrivals & departures 🐛
## `2.4.1`
- new [*writing a profile* guide ](./writing-a-profile.md )
- `parseMovement` : use `parseStopover` 🐛
- `parseStopover` : use `parseStationName` 🐛
## `2.4.0`
- new [Nahverkehr Sachsen-Anhalt (NASA) ](https://de.wikipedia.org/wiki/Nahverkehrsservice_Sachsen-Anhalt )/[INSA ](https://insa.de ) profile
- new `earlierRef` /`laterRef` feature to query earlier/later journeys (pagination)
- former scheduled date & time for canceled departures & journeys