40 KiB
Changelog
6.3.2
- 83772028/d001fcc1/3c8bb905 BVG profile: update auth details in order to fix "invalid client version" error 🐛✅ – Thanks @timvonwerne!
- 329c89c4 KVB profile: fix bitmask for "Regionalverkehr" product 🐛
- d2b490a4 KVB profile: remove hard-coded SSL CA certificate chain 🐛
- 96f97f24/e411a4b6 SNCB/NMBS profile: remove hard-coded SSL CA certificate chain 🐛
- 52f0dd19 SNCB/NMBS profile: un-skip E2E/integration tests ✅
🏷 6.3.2, 2024-09-25
6.3.1
- 6e74b9ab fix typo in
journeys.md📝 – Thanks @1Maxnet1! - 48719b21 DB profile
stop(): remove v1.16 workaround - 1a0b595a use
object-scan@19&tap@19
🏷 6.3.1, 2024-07-16
6.3.0
- 248adb5f DB profile
refreshJourney(): withopt.tickets: true, request ticket details – Thanks @PaulSut! - fd90abde/9365c00a/c4966aec DB profile
journeys()/refreshJourney(): parse & expose ticket details – Thanks @PaulSut! - c4966aec DB profile
journeys()/refreshJourney(): withopt.generateUnreliableTicketUrls: true, try to generate bahn.de URLs to the tickets – Thanks @PaulSut!
🏷 6.3.0, 2024-03-20
6.2.2
- 26c56f8d/c85f083d/8a174016 fix date of next-day DEVI leg in an overnight journey 🐛 – Thanks @soerface!
- 1ee316fa
radar(): relax bounding box checks 🐛 – Thanks @dancesWithCycles! - 228c7253/66d9fb51 add linting rules enforcing code style – Thanks @KristjanESPERANTO!
🏷 6.2.2, 2024-02-22
6.2.1
- 8520eb3d mobil.nrw profile: fix
modeforec-icproduct 🐛 - f29ced5b handle
PROBLEMSHAFAS error code
🏷 6.2.1, 2024-01-18
6.2.0
- 244e88de add attribute
additionalto additional stopovers ✅ - 02c781b1
cross-fetch@4,p-retry@6 - ecc8fccc
tap@18
🏷 6.2.0, 2023-11-27
6.1.1
- 45610fc9 IVB profile: update SSL CA certificate chain 🐛
- 581a4751 profiles' examples: fixes, minor tweaks 📝
- 19cdde06 document testing setup 📝
- 0bc6ba36 DB profile: pass along
opt.ageif defined ✅
🏷 6.1.1, 2023-09-03
6.1.0
- 793cc9ee with
$HTTP(S)_PROXY, keep connections alive for 10s - 5ce0129c DB profile: add
routingModeoption 📝✅
🏷 6.1.0, 2023-07-25
6.0.5
- 9a1ef7c5
journeys()/journeysFromTrip()/refreshJourney()/trip()/tripsByName(): apply leg-wide remarks even ifopt.stopoversisfalse🐛 – Thanks @traines-source!
🏷 6.0.5, 2023-05-15
6.0.4
- 14c9805a
journeys(): letearlierRef/laterReffall back tonull🐛 - 8faf8ba5 DB profile: use ver
1.16forstop()requests 🐛, update integration test fixture ✅
🏷 6.0.4, 2023-04-04
6.0.3
- e7602e6c
createClient(): throw if userAgent is one of the documented ones 💥📝 - 5910d625 docs: make user agent instructions more specific & actionable 📝 (related: #286)
🏷 6.0.3, 2023-03-14
6.0.2
- 26394489 SNCB/NMBS profile: document profile as temporarily broken 📝
- c2a71b08
lib/request.js: importBuffer🐛
🏷 6.0.2, 2023-02-10
6.0.1
- d8805d9e/fc1afe06 docs: fix profile
imports in code examples 📝 – Thanks @KristjanESPERANTO! - 547dd4b2
parseDateTime()/formatDate()/formatTime(): share LuxonIANAZones ⚡️ - 557fc660 upgrade to
luxon@3
🏷 6.0.1, 2022-12-11
6.0.0
Note that this version is not backwords-compatible with 5.*. Check out the migration guide.
breaking changes 💥
- 1e8b5982 remove SBB profile (they have shut off their endpoint)
- 0349ebac remove HVV profile (they have shut off their endpoint)
- 339d64e9 convert all code to ES Modules
- d5969bc0 require Node
>=10 - 30cb1f3d
trip(): removelineNameparameter, update integration test fixtures - a81e550f
departures()/arrivals()departures{GetPasslist,StbFltrEquiv}: default tofalse- return object with
realtimeDataUpdatedAt& results
- 40957d35
reachableFrom(): don't retry failed requests 3 times - 751ae21d/a0a4064b/0cc50a91/2fcaa230/bb70081c/44c8e37e
journeys()/journeysFromTrip()/trip()/tripsByName()/radar()/reachableFrom()/remarks()/lines(): renamerealtimeDataFromtorealtimeDataUpdatedAt - 3cbbc3c4
refreshJourney(): return object withrealtimeDataUpdatedAt& results - 7765f9d7/9b263bb3 rework errors thrown by
hafas-client - e0cdd559 rename
warning.{from,to}Locto{from,to}Location - b7405390 remove
trip.reachable - ef9e3765 don't trim
line.adminCode - b030eec1/7765f9d7 make (almost) all
Promise-based code async functions - BVG/VBB profile:
- 1ae13629/7b037469 don't parse line props using
vbb-parse-line - 1f611595/5ecf03f3 don't convert 7/9 <-> 12 digit IDs
- df4124e3/d2bc1346 don't shorten stop/station names
- 1ae13629/7b037469 don't parse line props using
- DB profile:
- e46514c5 rename
regionalExpproduct toregionalExpress - 3c17678d use
REALTIMErouting mode
- e46514c5 rename
features
- 16671b6d SNCB: re-enable
reachableFrom() - 492fdeb2 add boolean
profile.randomizeUserAgentflag 📝 - 1000e48d handle
METHOD_NA/NO_MATCH/PARAMETERerrors
bugfixes 🐛
- db442bb5
serverInfo(): fixrealtimeDataUpdatedAtparsing - b1c2eb9b
parseWarning(): handle missingcommon.himMsgEventL[].{f,t}Time - cef6dcaf
lib/request.js: pass whole request body intoprofile.transformReqBody()
🏷 6.0.0, 2022-11-19
5.26.2
- a60083f8 parse
trip.scheduledDays✅ - b6900a3d parse
journey.scheduleDaysusingfpB&fpE🐛✅ – Thanks @bergmannjg! - f530a30f mention related libs 📝
- 5ff8527b tweak & restructure docs 📝, explicit defaults
🏷 5.26.2, 2022-10-15
5.26.1
- 0f7382e3
parseArrival&parseDeparture: properly parse.origin&destination🐛 - 7ccffa5e
profile.log{Request,Response}(): pass in random request ID - 66d78767 readme: mention typings & related libs 📝
🏷 5.26.1, 2022-10-15
5.26.0
- 829c9ca4 add
profile.log{Request,Response}()hooks 📝
🏷 5.26.0, 2022-10-06
5.25.0
- 0a636981 parse
CHKI(check-in, check-out) legs ✅ – Thanks @yu-re-ka! - 7c68f962
parse{Stopover,JourneyLeg, Trip}: expose{arrival,departure}PrognosisType✅ – Thanks @HybridFox! - 95af0a01
parseArrival&parseDeparture: exposeprognosisType✅
🏷 5.25.0, 2022-07-30
5.24.1
- 492cb7df KVB: provide CA certificate chain via
Agent🐛
🏷 5.24.1, 2022-06-23
5.24.0
- 2edcd49e
serverInfo(): addopt.versionInfo📝✅ - f3c2ee6f/1236cf63 DB: support age-based tariffs – Thanks @roehrt!
- 7e1f7ed4 BVG/VBB: parse stop DHIDs ✅
- f8ca2d5d BVG: only expand
9*stop IDs to 12 digits 🐛 - 68ecd7c5 readme: fix
strecken.infolink 📝 – Thanks @fhueter!
🏷 5.24.0, 2022-04-26
5.23.0
- 57084262 expose
departure.destination&arrival.origin✅ – Thanks @bddq!
🏷 5.23.0, 2022-02-23
5.22.2
- f6b144f0 BVG: update API endpoint
- e3a02297
lib/request: tweakUser-Agentrandomisation logic - e69d069d/fa9a8d9f update integration tests ✅
- 2ec079ad TPG: add integration test ✅
- 4cd0e9d9 minor tweaks 📝
🏷 5.22.2, 2022-01-13
5.22.1
- 2fd06941 use HTTP Keep-Alive ⚡️
- 9c10a176 fix request debug-logging 🐛
🏷 5.22.1, 2021-12-28
5.22.0
- ed86ad0b add KVB profile
- f6733d93 ÖBB: enable
lines()
🏷 5.22.0, 2021-12-08
5.21.1
- f41b8ac4 BVG: update API endpoint 🐛, add new integration test fixtures ✅
🏷 5.21.1, 2021-11-18
5.21.0
- 97b6a76e
parseTrip(): exposerealtimeDataUpdatedAt✅ - 3453cbe1
parseArrival()/parseDeparture(): exposestbStop.{rem,msg}Lasremarks[]as well - 69ddf5fb/6941e7a4 BVG: parse occupancy ✅
- c270eed9
nationalExp->nationalExpress🐛 - 4492b3a3 use correct
HttpsAgentoption forLOCAL_ADDRESSenvironment variable 🐛
🏷 5.21.0, 2021-11-01
5.20.2
- 84c7582a
journeys(): fix emptyviaLocL[]🐛 (#247) - dd5e4368 fix
departures()/arrivals()withoutopt.direction🐛 - 3f75e075 BVG: update API endpoint
- 1f6e6810 DB: update
.ext - 39d3807c minor tweaks 📝
- 8d4f8a83 E2E/integration tests: update fixtures ✅
🏷 5.20.2, 2021-10-26
5.20.1
- 46fb44d0 SNCB: update CA chain 🐛
- f0d33564
parseTrip(): handle missingstopL[](on-demand trips) 🐛✅ - fd6a349b
tripsByName(): more options, add to debug CLI, skipped E2E test ✅📝 - 39ca7ede
tripsByName(): support some journey filters - 22a7f16e remove SBB integration/E2E test ✅
- 102c4bf2 BVG/VBB: fix
nearby()integration/E2E test ✅ - 959e894d E2E/integration tests: un-skip tests, update mocked
when, update fixtures ✅
🏷 5.20.1, 2021-10-24
5.20.0
- 0a096a13
parseJourneyLeg()/parseTrip(): exposecurrentLocation✅📝 - b10c1ce6 Rejseplanen
trip()test: update fixtures ✅ - 6507d5a7 VBB
departures()test: update fixtures ✅ - c1ee557c
parseArrivalOrDeparture(): exposecurrentTripLocation✅📝
🏷 5.20.0, 2021-10-18
5.19.1
- 042668ff add DART profile
- ca75c440 adapt VBB profile to server changes
🏷 5.19.1, 2021-09-21
5.19.0
- c10f3181
refreshJourney(): exposerealtimeDataFrom - c3bdcc88 expose
prodCtx.catOutasline.productName - 21610276 first/last walking leg: handle
dTZOffset/aTZOffsetof0🐛 - 6de2dc7b/dd52c4ad DB: fix price parsing 🐛
- 0114f587 adapt E2E tests to latest data ✅
🏷 5.19.0, 2021-08-24
5.18.0
- e293223c add VVV profile
- f20466c2 add IVB profile
- 0ae13b09 add STV profile
- 649a7ec0 add OÖVV profile
- db2cbfdc add VOR profile
- 56bd16b5 add Salzburg profile
- ce828176/aab7babb/0995696c DB profile: add
journeysFromTrip()
🏷 5.18.0, 2021-08-05
5.17.0
- 24c2cc6e add BLS profile
- 33dab455 add TPG profile
🏷 5.17.0, 2021-07-28
5.16.0
- 7cb62108
lib/request: validate responsecontent-type🐛 - 96b4d55f (re-)upgrade profiles, adapt feature flags
- 62843f79 update profiles' examples 📝
- e9701648 add Rejseplanen profile to the list 📝
- 4557e336 update the "writing a profile" guide 📝
96b4d55f might break your code. Eventually I would have been forced to upgrade the HAFAS protocol version anyways though, so I included this change in the 5.16 minor release.
🏷 5.16.0, 2021-05-01
5.15.2
- 7025d3bc ÖBB: fix profile by using
https:🐛 - ebe7c595
lib/request: fixDEBUGenv var switch 🐛 - 6f56f152 DB: enable usage of 1st class BahnCard 🐛
- 68d8bf9f/9bfd4566/15be4a0b/b6ad9ba0/d9de0e00 fix readme/docs 📝
🏷 5.15.2, 2021-03-26
5.15.1
- 7025d3bc ÖBB: enable
remarks() - cb8d92be use
LOCAL_ADDRESSenvironment variable to pick network interface address - 92f1831c
departures()/arrivals(): documentopt.products📝 - 7025d3bc/c6fb9661 ÖBB: change
verto1.33🐛 - 78bbf9b6 VKG, VVT
departures(): disablegetPasslist&stbFltrEquiv🐛
🏷 5.15.1, 2021-02-12
5.15.0
- 7106d24a add VOS profile
- 2ae6a9a4 add AVV profile
- f47343df add BART profile
- 2853fb04 add VVT profile
- 0690724d add VKG profile
- d69d2530 add
profile.remarksGetPolylineflag - 51af991e
lib/request: addprofile.(auth|client|ext|ver)to request - 4ee062a1
lib/request: allow stringprofile.salt - c260e34f DB: parse
gridL[].itemL[].remL[]🐛 - 33f398bd
parseWarning: usefromLocations[0]
🏷 5.15.0, 2021-01-26
5.14.0
- ad6cfd22/3407ad6b/d017e627/02af67e2 add mobil.nrw profile
- 174ed807
remarks(): support missingres.msgL[]🐛 - 4efff792
parseJourney: usej.recon.ctxasrefreshTokentoo 🐛 - 86bf3b46 docs: remove "migrating to 4" guide, fix profile examples, minor tweaks 📝
🏷 5.14.0, 2021-01-19
5.13.0
- 7444e08/bbf024d/6815c9e add SBB (Switzerland) profile
- 17e08ac
parseJourneyLeg→parseAlternative: handle missingstopL[]🐛, add tests ✅ - 850ec94 mobiliteit.lu: fix endpoint, upgrade to version
1.25 - 54b7d28 mobiliteit.lu: fix
national-trainproduct bitmasks 🐛
🏷 5.13.0, 2020-12-27
5.12.0
- 3e6d6d9 add
serverInfo()method - ed48971/731d9b8 add
remarks()method - 9d8260b/53e10f7/1a0d97d add
lines()method - e6bc8c6
departures()/arrivals(): addlineoption
🏷 5.12.0, 2020-12-09
5.11.0
- 259fcd7 add VRN (south-west Germany) profile
🏷 5.11.0, 2020-11-26
5.10.1
- 6d4f29a
nearby(): supportopt.products - 66ff661
parseJourneyLeg→applyRemarks: handle legs withoutstopovers[]🐛
🏷 5.10.1, 2020-11-15
5.10.0
- 013ab2d add mobiliteit.lu (Luxembourg) profile
- 11ca3b1 add
tripsByName()method - 92fb29d
parseTrip: handlestopL[]items withoutidx🐛
🏷 5.10.0, 2020-11-01
5.9.0
- 8ed218f add Irish Rail profile
- de86391 support HTTP proxies via
HTTPS_PROXY&HTTP_PROXYenvironment variables
🏷 5.9.0, 2020-09-24
5.8.0
- 4d06057/82de740/c17bd5a add Rejseplanen profile
- 9848dfa RMV: fix product bitmasks 🐛 (by Adwirawien)
- 25fb25c
parseLeg: use remarks withoutfIdx/tIdx🐛 - 68aaad1 S-Bahn München: switch to
1.21protocol - a621fd6 minor tweaks
- 2d139c8/c9f8cc6/b2a3ce4/e6f25a6/c17bd5a improve/update E2E & integration tests ✅
🏷 5.8.0, 2020-09-15
5.7.1
- 2612494 fix platform parsing with some profiles 🐛 (by em0lar)
🏷 5.7.1, 2020-09-09
5.7.0
- b2b1b75/3f4c05d/097557c add ZVV profile
- 4fc4c3b fix
H9360error message 🐛
🏷 5.7.0, 2020-08-01
5.6.3
- 71db75d
journeys(): expose realtime data timestamp - d2314e0
journeys(): don't sendoutDate/outTime&ctxScr - f9bfd69
parseJourneyLeg: parsejny.poly🐛 - 51f4a66/2c04e2f
journeys(): remove collection of results - 6b27517
parseMovement: skip invalidstopL[]items 🐛
🏷 5.6.3, 2020-07-26
5.6.2
- de896b1
parseCommon: respectopt.polyline🐛 - fc2e214 ÖBB: add
trip()test ✅ - dce42bf move trip parsing into
parse/trip
🏷 5.6.2, 2020-06-13
5.6.1
- 542aa8c parse
DEVIjourney legs (#175) - 3ca4a0c/57fc610
arrivals(): addprovenancefield (#180) - ee94c65 ÖBB: improve
onCallproduct name - a8a9303
nearby(): return at mostopt.resultsresults
🏷 5.6.1, 2020-06-10
5.6.0
- 07c77f8/76e3102/1abafb5/d92eb15/0251e31 parse stop/station entrances & sub-stops (#153)
- 9e75f42/0251e31/322004b DB: parse Reisezentrum opening hours & station facilities (#153)
🏷 5.6.0, 2020-05-21
5.5.1
- 3c888a0
refreshJourney(): actually throw the error 🐛, add error code - e02a20b readme: update links 📝
- b302ba7 minor readme/documentation tweaks 📝
🏷 5.5.1, 2020-05-21
5.5.0
- fa3146d/9c4189a add SVV profile
- e032ec1 "invalid response" error: add
isHafasError: trueflag - 0699d4d
departures()/arrivals(): letresultsoption default tonull - 1b01331 use
object-scan@13⚡️
🏷 5.5.0, 2020-04-09
5.4.0
- 01b3693/17031f3/7d3107e add SNCB/NMBS profile
- ae74bb4
departures()/arrivals(): addresultsoption
🏷 5.4.0, 2020-03-29
5.3.1
- 916ac30 PKP: trim
-from stop names - a939090 INSA:
ver1.21->1.18🐛 - 2cb6a0c
parseIcon(),parseHint(),parseLocation(): handle more edge cases 🐛 - 0dceb41
parseJourneyLeg(): parse isRchbl correctly 🐛 - 78487d9
journeys(): defaultearlierRef&laterReftonull🐛 - cda96b6 improve docs 📝
🏷 5.3.1, 2020-03-18
5.3.0
- 1c790e1/299b5ac add INVG profile
- d5116c2/c2b15fa add PKP profile
- 682f9f9/8540f5f add VBN profile
- 3a9e548/0ea2c01 add RMV profile
- 84637b2/522248b add RSAG profile
- 86ddf2c add VMT profile
🏷 5.3.0, 2020-03-12
5.2.0
- 1b03b2e INSA: protocol version
1.21, enablereachableFrom() - 2a24137/3ea9380
parseLocation(): parse foreign stop IDs - 3ea9380
parseLocation(): parse fare zone, transit authority - 8c7f164
parseLine(): expose admin code - b9d5c85 add DB & INSA
stop()tests
🏷 5.2.0, 2020-03-08
5.1.2
- e5abe3d DB: fix journey leg loadFactor parsing 🐛
- bc30309 fix undefined variables 🐛
- db94a62/c072a70/df010fc/9874292 add linting
🏷 5.1.2, 2020-03-02
5.1.1
- 8cb7d80 improve
findInTreeperformance (#152) ⚡️ - 940519b make readme more helpful 📝
- 9522e92
object-scan@11
🏷 5.1.1, 2020-02-22
5.1.0
- 542a9ee/1c67350/738354d add VSN profile
- dfff999
request(): add resonse ID to error objects - c1beb28
Error->TypeError
🏷 5.1.0, 2020-02-08
5.0.4
- db9287f
@mapbox/polyline->google-polyline - 9b0e55c VBB: accept station IDs with an unknown length 🐛
- ea4912a debug CLI: accept JS objects
🏷 5.0.4, 2020-02-03
5.0.3
- 8c6a8d8
findInTree: improved performance ⚡️ - c080f32
vbb-translate-ids@4🐛
🏷 5.0.3, 2020-01-29
5.0.2
- e049aa3
parseWarning(): fixparseMsgEvent()🐛
🏷 5.0.2, 2020-01-15
5.0.1
- 51b1e68
throttle.js,retry.js: use default profile 🐛
🏷 5.0.1, 2020-01-15
5.0.0
Note that this version is not backwords-compatible with 4.*. Check out the migration guide.
breaking changes 💥
- 2f8f82f require Node
>=10 - 29a2cf3/2b9280e add
plannedArrival/plannedDeparture/plannedWhen,scheduled*->planned*/prognosed* - 938a6f2/2d1d482 add
plannedArrivalPlatform/plannedDeparturePlatform/plannedPlatform,scheduled*->planned*/prognosed* - 35e44d4
parseWarning()/parseHint(): change signature to(profile, raw, data) => … - 4162328
createClient(): change signature to(profile, userAgent, opt = {}) => … - fb7a565/252ce5b/9fc6664/2cfee22/e2567ef change parse fns signature to
({profile, opt, res, common}) => (rawData) => … - baff692
journeys(): don't request nr of results by default - b8496be DB
journeys(): letjourney.pricedefault tonull - 6d5c608 call
request()viaprofile
features
- f8210c5/9c47a39/0c145d3/9a89cd0
journeys(): addwalkingSpeedoption - a40006f/1afe4ca BVG: support BerlKönig, add E2E test
- 352fa2e parse more warning fields
- 8b2a5a8
parseIcon(): use.txt&.txtSas text fallback - 39a6267 request formatters (e.g.
formatTripReq()) viaprofile
bugfixes 🐛
- 5ea22f7
parseHint(): parse.code&.textproperly - 29d7bd4
parseJourney(): fixjourney.scheduledDaysyear - 9a6bc2d
parseWarning(): callparseDateTime()viaprofile - 7b7293e
request(): use transformedreq
🏷 5.0.0, 2020-01-05
4.8.0
- 56dee66/46eadcf/1611635 add DB Busradar NRW profile
🏷 4.8.0, 2019-12-29
4.7.0
- fceaf86 parse
Qhints - c883d96 documentation for
mgate.exeendpoints
🏷 4.7.0, 2019-12-26
4.6.2
- 105c18b DB: always use
rtMode: HYBRID
🏷 4.6.2, 2019-11-18
4.6.1
- 43b4a6e handle
H_UNKNOWNerror - 1cc453b parseArrOrDep, parseLocation: bugfixes 🐛
🏷 4.6.1, 2019-10-28
3.10.3
- c9ceeca put deprecation note
🏷 3.10.3, 2019-10-28
2.10.4
- 096f8a0 put deprecation note
🏷 2.10.4, 2019-10-28
4.6.0
- 73ca349/19c3ee6 NVV profile
🏷 4.6.0, 2019-08-16
4.5.2
- 2e88e96 install-unique client ID via
postinstallstep -> generate process-unique ID
🏷 4.5.2, 2019-08-16
3.10.2
- 1babfbf
parseWarning: handle missing summary/text 🐛
🏷 3.10.2, 2019-08-12
4.5.1
- bd7d5bb
parseWarning: handle missingsummary/text🐛 - 92c842b DB: enable
radar()
🏷 4.5.1, 2019-07-20
4.5.0
- b144dd5/b57c212 return nice error messages & error codes
🏷 4.5.0, 2019-07-08
4.4.0
- e46d6cd
parseLocation: exposestop.isMeta
🏷 4.4.0, 2019-06-30
4.3.0
- 1e0182f
parseLint: useaddName - d0f7ca1 follow HTTP redirects, accept
brencoding
🏷 4.3.0, 2019-06-25
4.2.2
- 64f797e
parseProductsBitmask: fix bitmask handling 🐛 - 707fd29
p-retry@4,p-throttle@3
🏷 4.2.2, 2019-06-25
4.2.1
- 9078d2d fix
leg.reachable, which was breaking all walking legs 🐛
🏷 4.2.1, 2019-06-08
4.2.0
- 6da1e80 add
leg.reachable
🏷 4.2.0, 2019-06-07
4.1.1
- 875ea18 parse scheduled/actual platform information on legs, fixes #116 🐛
- f92e933 DB departures/arrivals: parse load factor #112
🏷 4.1.1, 2019-05-29
4.1.0
- 831bcaf ISO date+time: suppress milliseconds if 0
- 3e01303/75432fc CFG profile
- 820f2ab
parseWarning: parse products - 3ab099b/57c7186 HVV profile
🏷 4.1.0, 2019-05-27
4.0.3
- 6aa57d4
parseJourneyLeg/parseMovement/parseArrival/parseDeparture: handle missingdirTxt🐛
🏷 4.0.3, 2019-04-01
4.0.2
- 133cee9
parseWarning: exposewarning.id🐛
🏷 4.0.2, 2019-03-27
4.0.1
- 5d49fd0
parseDateTime: fixtzOffset&daysOffset🐛
🏷 4.0.1, 2019-03-19
4.0.0
This version is not fully backwords-compatible. Check out the migration guide.
breaking changes 💥
- 1e13cf1/b99ceb2
parseLocation: strip leading zeros from IDs - a9fd9ff
parseDateTime: return ISO string/timestamp - ca1105f
parseDateTime: parse timezone offset if given - bf3c4c5 require Node
>=8.3.0 - bbff1f4
movement.nextStops->movement.nextStopovers - bad0af8/8b87868/2e12206 rename
station(id)->stop(id) - 96ff59d/0daa1c5/88c78c2
leg.id->leg.tripId - 3bc2eff
locations(): defaultopt.resultsto5 - a1ffad3/cb535cd
parseLine: removeline.class&line.productCode - fcc53b5/b2b2d11/a1c40ad
journeys(): return object withjourneys,earlierRef,laterRef - 61e7d14
journeys(): defaultopt.transfersto-1 - d7e439b debugging:
NODE_DEBUG->DEBUG - 8f9b22e
locations(),nearby():opt.stations->opt.stops - a972dad
departures()/arrivals(),locations(),nearby(),stop():opt.stationLines->opt.linesOfStops - 0e1fcb0/0e1fcb0
leg.mode: 'walking'->leg.walking: true - 567cc98 DB, INSA, Nah.SH, ÖBB:
nationalExp->nationalExpress - 9c44995 remove
arrival.trip/departure.trip&movement.trip - eb3ffba/eab850e mark POIs objects with
poi: true - 748f8ce
createThrottledClient->withThrottling - fbde6a1
createClientWithRetry->withRetrying - 1646173 throw
Errors ->TypeErrors - 7e39a2f/3b0740d
formerScheduled…->scheduled…
bugfixes 🐛
- fcc2a23 ÖBB
journeys(): fixopt.results
🏷 4.0.0, 2019-02-28
3.10.1
- dafc96a update CMTA credentials
- 46e7729 remove
console.errorcall 🐛
🏷 3.10.1, 2019-02-28
3.10.0
- d797333/1e16a10 DB: parse additional line names
🏷 3.10.0, 2019-02-13
3.9.1
- a145fea extend default retrying options 🐛
🏷 3.9.1, 2019-02-08
3.9.0
- b0f786c support for retrying failed requests ✨ – docs
🏷 3.9.0, 2019-02-08
3.8.1
- 3f58d84 handle
stopobjects as input 🐛
🏷 3.8.1, 2019-02-06
3.8.0
- 5d0096c
departures(): profile flag forgetPasslist&stbFilterEquiv - #99 Saarfahrplan profile – Thanks @ialokim & @juliuste!
🏷 3.8.0, 2018-12-31
3.7.0
- e867dac/f097022
opt.stopovers,departure.nextStopovers/arrival.previousStopovers
🏷 3.7.0, 2018-12-28
3.6.3
- cb2d298
stops/stations: defaultidofnull🐛
🏷 3.6.3, 2018-12-28
3.6.2
- 5beff47
radar(): fixpolylinesoption 🐛 - 48424cf
p-throttleas normal dependency 🐛
🏷 3.6.2, 2018-12-16
3.6.1
- b809281 fix error parsing 🐛
- bcbc366/ae2007c/e1f1d0d ÖBB
radar(): fix filtering ofmovement.nextStops🐛
🏷 3.6.1, 2018-12-10
3.6.0
- 4b56f66 parse
journey.cycleif returned by HAFAS - 17b8f14
journeyLeg.cycle: parsenrfield if returned by HAFAS - 8fac5fc
journeyLeg.alternatives: parsedirection,delay,tripId
🏷 3.6.0, 2018-12-03
3.5.0
- 9d96902
readableFrom(): makeopt.maxDurationoptional - 02e0e51 parse scheduled days of a
journey
🏷 3.5.0, 2018-11-13
3.4.3
- 9936466
p-throttle@2,tape-promise@4
🏷 3.4.3, 2018-10-24
3.4.2
- 2a6b0dc speed up date+time formatting ⚡️
🏷 3.4.2, 2018-09-24
3.4.1
- 582c9de speed up date+time parsing ⚡️
🏷 3.4.1, 2018-09-22
3.4.0
- #81 S-Bahn München profile – Thanks @flori-uni!
🏷 3.4.0, 2018-09-20
3.3.1
- 035877c
reachableFrom()retry 🐛
🏷 3.3.1, 2018-09-03
3.3.0
- #80/b36ccda
reachableFrom()method – docs
🏷 3.3.0, 2018-09-03
3.2.1
- 044a5ee
arrivals(): return adirectionofnull🐛 - b37bedb parse
line.idif possible
🏷 3.2.1, 2018-09-03
3.2.0
- #79 CapMetro/CMTA profile – Thanks @nickturskyi!
🏷 3.2.0, 2018-08-26
3.1.2
- f796337 handle warnings without schedule
sDate/eDate/lModDate🐛
🏷 3.1.2, 2018-08-24
3.1.1
- 39cc2f3 fix install on Windows 🐛
🏷 3.1.1, 2018-08-23
3.1.0
- 9257d3a parse
line.fahrtNr
🏷 3.1.0, 2018-08-22
3.0.0
This version is not fully backwords-compatible. Check out the migration guide.
new features ✨
- 2d3796a BVG profile
- 0db84ce #61 parse remarks for stopovers and journey legs
- ac9819b
arrivals()method – docs - 5b754aa
refreshJourney()method – docs - 21c273c
journeys()/trip(): leg stopovers: parse & expose delays - 021ae45
journeys()/trip(): leg stopovers: parse & expose platforms - 84bce0c
arrivals()/departures(): parse & expose platforms - 85e0bdf
journeys():startWithWalkingoption with defaulttrue - f6ae29c journey legs with
type: 'walking'now have adistancein meters - 0d5a8fa departures, arrivals, stopovers: former scheduled platform(s)
- 0199749
languageoption with defaulten - 1551943
arrivals()/departures():includeRelatedStationsoption with defaulttrue
breaking changes 💥
- c4935bc new mandatory
User-Agentparameter - b7c1ee3 profiles: new products markup (guide)
- 40b559f change
radar(n, w, s, e)signature toradar({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 - a356a26 throw if 0 products enabled
- c82ad23
journeys():opt.when→opt.departure/opt.arrival - 665bed9 rename
location(id)tostation(id) - 6611f26
journeys()/trip():leg.passed→leg.stopovers - ebe4fa6
journeys()/trip():opt.passedStations→opt.stopovers - 3e672ee
journeys()/trip():stopover.station→stopover.stop - 2e6aefe journey leg, departure, movement:
journeyId->tripId - 8881d8a & b6fbaa5: change parsers signature to
parse…(profile, opt, data) - cabe5fa: option to parse & expose
station.lines, default off - c8ff217 rename
journeyLeg()totrip() - 8de4447 rename
profile.journeyLegtoprofile.trip
bugfixes
- dd0a9b2
parseStopover: fix first/last canceled stopovers 🐛
🏷 3.0.0, 2018-08-17
2.10.3
- 50bd440 better
User-Agentrandomization
🏷 2.10.3, 2018-08-08
2.10.2
- d54c26d randomize
User-Agent
🏷 2.10.2, 2018-07-25
2.10.1
- 04d550f parse
TRSFlegs aswalking🐛
🏷 2.10.1, 2018-07-02
2.10.0
- 4da8689 journey legs with
type: 'walking'now have adistancein meters - c1bdade
departures(): parse & expose platforms - fccd3d0
journeys():startWithWalkingoption
🏷 2.10.0, 2018-06-30
2.9.1
- a952b08 notes on how to use
hafas-clientwith react-native 📝 - 38a3749
parseStopover: fix first/last canceled stopovers 🐛
2.9.0
- 49186ae journey leg passed stations: add
arrivalDelay&departureDelay - deb8829
journeys(): newwhenRepresentsoption - f3d8304 let the
insaandnahshprofiles use HTTPS
🏷 2.9.0, 2018-06-20
2.8.1
- 769f2e3 send
Accept: application/json
🏷 2.8.1, 2018-06-07
2.8.0
- 16c3f01 enable
journeyLeg()for DB
🏷 2.8.0, 2018-05-24
2.7.5
- 908d531 DB
journeys(): fix polylines parsing 🐛
🏷 2.7.5, 2018-05-24
2.7.4
- 709b7b4 update dependencies
🏷 2.7.4, 2018-05-24
2.7.3
- 48f2cef each movement from
radar()now has ajourneyIdfield
🏷 2.7.3, 2018-05-21
2.7.2
- a97e0d3 fix polylines parsing 🐛
🏷 2.7.2, 2018-05-16
2.7.1
- aa480e0 fix polylines parsing 🐛
🏷 2.7.1, 2018-05-16
2.7.0
journeys():polylinesoptionjourneyLeg():polylineoptionradar():polylinesoption
🏷 2.7.0, 2018-05-15
2.6.0
- 5d10d76 journey legs: parse cycle
🏷 2.6.0, 2018-04-29
2.5.3
- d676b84 fix parsing for journey leg alternatives 🐛
🏷 2.5.3, 2018-04-29
2.5.2
- 16e6dd6 departure docs: fix method 📝
- c60213a DB: tram mode should be
train🐛
🏷 2.5.2, 2018-04-24
2.5.1
- afc0124 fix stopover parsing 🐛
🏷 2.5.1, 2018-04-05
2.5.0
🏷 2.5.0, 2018-03-18
2.4.2
parseStopover: expose canceled arrivals & departures 🐛
🏷 2.4.2, 2018-03-17
2.4.1
- new writing a profile guide
parseMovement: useparseStopover🐛parseStopover: useparseStationName🐛
🏷 2.4.1, 2018-03-17
2.4.0
- new Nahverkehr Sachsen-Anhalt (NASA)/INSA profile
- new
earlierRef/laterReffeature to query earlier/later journeys (pagination) - former scheduled date & time for canceled departures & journeys
🏷 2.4.0, 2018-03-14