diff --git a/docs/changelog.md b/docs/changelog.md index 92e76b6d..ed53a367 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,20 @@ # Changelog +## `5.15.0` + +- 7106d24a add [*VOS* profile](../p/vos) +- 2ae6a9a4 add [*AVV* profile](../p/avv) +- f47343df add [*BART* profile](../p/bart) +- 2853fb04 add [*VVT* profile](../p/vvt) +- 0690724d add [*VKG* profile](../p/vkg) +- d69d2530 add `profile.remarksGetPolyline` flag +- 51af991e `lib/request`: add `profile.(auth|client|ext|ver)` to request +- 4ee062a1 `lib/request`: allow string `profile.salt` +- c260e34f DB: parse `gridL[].itemL[].remL[]` 🐛 +- 33f398bd `parseWarning`: use `fromLocations[0]` + +[🏷 `5.15.0`](https://github.com/public-transport/hafas-client/releases/tag/5.15.0), 2021-01-26 + ## `5.14.0` - ad6cfd22/3407ad6b/d017e627/02af67e2 add [*mobil.nrw* profile](../p/mobil-nrw) diff --git a/package.json b/package.json index 13fe3063..0cce9f2c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hafas-client", "description": "Client for HAFAS public transport APIs.", - "version": "5.14.0", + "version": "5.15.0", "main": "index.js", "files": [ "index.js", @@ -20,7 +20,7 @@ "em0lar ", "Adrian Böhme (https://github.com/Adwirawien)" ], - "homepage": "https://github.com/public-transport/hafas-client/tree/5.14.0", + "homepage": "https://github.com/public-transport/hafas-client/tree/5.15.0", "repository": "public-transport/hafas-client", "bugs": "https://github.com/public-transport/hafas-client/issues", "funding": { diff --git a/parse/common.js b/parse/common.js index 1fef64ec..0d627d7c 100644 --- a/parse/common.js +++ b/parse/common.js @@ -10,6 +10,8 @@ const findInTree = createFindInTree([ '**.msgL', '**.remL', ]) +// there are circular references (e.g. warning -> loc -> warning) +// todo: parse either on-the-fly or in a recursive/iterative process const parseCommonData = (_ctx) => { const {profile, opt, res} = _ctx const c = res.common || {} diff --git a/parse/movement.js b/parse/movement.js index a946e1e3..89a82720 100644 --- a/parse/movement.js +++ b/parse/movement.js @@ -28,6 +28,8 @@ const parseMovement = (ctx, m) => { // m = raw movement } if (m.ani) { + // todo: ani.dirGeo, ani.fLocX, ani.proc, ani.procAbs, ani.state, ani.stcOutputX + if (Array.isArray(m.ani.mSec)) { for (let i = 0; i < m.ani.mSec.length; i++) { res.frames.push({ diff --git a/readme.md b/readme.md index d08a2c33..c0ea5dfb 100644 --- a/readme.md +++ b/readme.md @@ -28,7 +28,7 @@ npm install hafas-client ### with [react-native](https://facebook.github.io/react-native/) -`hafas-client` as well its dependencies use [Node-builtin modules](https://nodejs.org/dist/latest/docs/api/) and [Node globals](https://nodejs.org/api/globals.html). To be able to use it within react-native, follow [the instructions at `node-libs-react-native`](https://github.com/parshap/node-libs-react-native/blob/3/README.md#usage). +`hafas-client` as well its dependencies use [Node-builtin modules](https://nodejs.org/dist/latest/docs/api/) and [Node globals](https://nodejs.org/api/globals.html). To be able to use it within react-native, follow [the instructions at `node-libs-react-native`](https://github.com/parshap/node-libs-react-native/blob/master/README.md#usage). ## API