18 KiB
Changelog
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 defaultb8496be
DBjourneys()
: letjourney.price
default tonull
6d5c608
callrequest()
viaprofile
features
- f8210c5/9c47a39/0c145d3/9a89cd0
journeys()
: addwalkingSpeed
option - a40006f/1afe4ca BVG: support BerlKönig, add E2E test
352fa2e
parse more warning fields8b2a5a8
parseIcon()
: use.txt
&.txtS
as text fallback39a6267
request formatters (e.g.formatTripReq()
) viaprofile
bugfixes 🐛
5ea22f7
parseHint()
: parse.code
&.text
properly29d7bd4
parseJourney()
: fixjourney.scheduledDays
year9a6bc2d
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
🏷 4.7.0
, 2019-12-26
4.6.2
105c18b
DB: always usertMode: HYBRID
🏷 4.6.2
, 2019-11-18
4.6.1
🏷 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 viapostinstall
step -> 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
🏷 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
fixleg.reachable
, which was breaking all walking legs 🐛
🏷 4.2.1
, 2019-06-08
4.2.0
6da1e80
addleg.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/timestampca1105f
parseDateTime
: parse timezone offset if givenbf3c4c5
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.results
to5
- a1ffad3/cb535cd
parseLine
: removeline.class
&line.productCode
- fcc53b5/b2b2d11/a1c40ad
journeys()
: return object withjourneys
,earlierRef
,laterRef
61e7d14
journeys()
: defaultopt.transfers
to-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
removearrival.trip
/departure.trip
&movement.trip
- eb3ffba/eab850e mark POIs objects with
poi: true
748f8ce
createThrottledClient
->withThrottling
fbde6a1
createClientWithRetry
->withRetrying
1646173
throwError
s ->TypeError
s- 7e39a2f/3b0740d
formerScheduled…
->scheduled…
bugfixes 🐛
fcc2a23
ÖBBjourneys()
: fixopt.results
🏷 4.0.0
, 2019-02-28
3.10.1
🏷 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
🏷 3.9.0
, 2019-02-08
3.8.1
3f58d84
handlestop
objects 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
stop
s/station
s: defaultid
ofnull
🐛
🏷 3.6.3
, 2018-12-28
3.6.2
🏷 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
parsejourney.cycle
if returned by HAFAS17b8f14
journeyLeg.cycle
: parsenr
field if returned by HAFAS8fac5fc
journeyLeg.alternatives
: parsedirection
,delay
,tripId
🏷 3.6.0
, 2018-12-03
3.5.0
🏷 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
🏷 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 schedulesDate
/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
parseline.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 legsac9819b
arrivals()
method – docs5b754aa
refreshJourney()
method – docs21c273c
journeys()
/trip()
: leg stopovers: parse & expose delays- 021ae45
journeys()
/trip()
: leg stopovers: parse & expose platforms - 84bce0c
arrivals()
/departures()
: parse & expose platforms - 85e0bdf
journeys()
:startWithWalking
option with defaulttrue
- f6ae29c journey legs with
type: 'walking'
now have adistance
in meters 0d5a8fa
departures, arrivals, stopovers: former scheduled platform(s)0199749
language
option with defaulten
1551943
arrivals()
/departures()
:includeRelatedStations
option with defaulttrue
breaking changes 💥
- c4935bc new mandatory
User-Agent
parameter b7c1ee3
profiles: new products markup (guide)40b559f
changeradar(n, w, s, e)
signature toradar({north, west, south, east})
005f3f8
removejourney.departure
,journey.arrival
, …0ef0301
validateopt.when
431574b
parse polylines usingprofile.parsePolyLine
– docs for the output formata356a26
throw if 0 products enabledc82ad23
journeys()
:opt.when
→opt.departure
/opt.arrival
665bed9
renamelocation(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 toparse…(profile, opt, data)
- cabe5fa: option to parse & expose
station.lines
, default off - c8ff217 rename
journeyLeg()
totrip()
- 8de4447 rename
profile.journeyLeg
toprofile.trip
bugfixes
- dd0a9b2
parseStopover
: fix first/last canceled stopovers 🐛
🏷 3.0.0
, 2018-08-17
2.10.3
50bd440
betterUser-Agent
randomization
🏷 2.10.3
, 2018-08-08
2.10.2
d54c26d
randomizeUser-Agent
🏷 2.10.2
, 2018-07-25
2.10.1
04d550f
parseTRSF
legs aswalking
🐛
🏷 2.10.1
, 2018-07-02
2.10.0
4da8689
journey legs withtype: 'walking'
now have adistance
in metersc1bdade
departures()
: parse & expose platformsfccd3d0
journeys()
:startWithWalking
option
🏷 2.10.0
, 2018-06-30
2.9.1
a952b08
notes on how to usehafas-client
with react-native 📝- 38a3749
parseStopover
: fix first/last canceled stopovers 🐛
2.9.0
49186ae
journey leg passed stations: addarrivalDelay
&departureDelay
deb8829
journeys()
: newwhenRepresents
optionf3d8304
let theinsa
andnahsh
profiles use HTTPS
🏷 2.9.0
, 2018-06-20
2.8.1
769f2e3
sendAccept: application/json
🏷 2.8.1
, 2018-06-07
2.8.0
16c3f01
enablejourneyLeg()
for DB
🏷 2.8.0
, 2018-05-24
2.7.5
908d531
DBjourneys()
: 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 fromradar()
now has ajourneyId
field
🏷 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()
:polylines
optionjourneyLeg()
:polyline
optionradar()
:polylines
option
🏷 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
🏷 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
/laterRef
feature to query earlier/later journeys (pagination) - former scheduled date & time for canceled departures & journeys
🏷 2.4.0
, 2018-03-14