Skip to content

Commit 42b2a8a

Browse files
committed
changelog 📝, 5.0.0
[ci skip]
1 parent e2567ef commit 42b2a8a

File tree

4 files changed

+37
-4
lines changed

4 files changed

+37
-4
lines changed

docs/changelog.md

+33
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# Changelog
22

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+
336
## `4.8.0`
437

538
- 56dee66/46eadcf/1611635 add [*DB Busradar NRW* profile](../p/db-busradar-nrw)

docs/migrating-to-5.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## If you use Node `8` ("Carbon")…
44

5-
…migrate to Node `10` ("Dubnium"), sorry. [Node `8` is out of maintenance now](https://nodejs.org/en/about/releases/).
5+
…migrate to Node `10` ("Dubnium"), sorry. [Node `8` is out of maintenance now](https://nodejs.org/en/about/releases/). 83f43c6
66

77
## new fields for departure/arrival time & delays
88

license.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2017, Jannis R
1+
Copyright (c) 2020, Jannis R
22

33
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
44

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hafas-client",
33
"description": "Client for HAFAS public transport APIs.",
4-
"version": "4.8.0",
4+
"version": "5.0.0",
55
"main": "index.js",
66
"files": [
77
"index.js",
@@ -17,7 +17,7 @@
1717
"contributors": [
1818
"Julius Tens <[email protected]>"
1919
],
20-
"homepage": "https://github.com/public-transport/hafas-client/tree/4.8.0",
20+
"homepage": "https://github.com/public-transport/hafas-client/tree/5.0.0",
2121
"repository": "public-transport/hafas-client",
2222
"bugs": "https://github.com/public-transport/hafas-client/issues",
2323
"license": "ISC",

0 commit comments

Comments
 (0)