diff --git a/docs/changelog.md b/docs/changelog.md index d8bcf514..a5b545e1 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,9 @@ # Changelog +## `4.5.0` + +- b144dd5/b57c212 return nice error messages & error codes + ## `4.4.0` - e46d6cd `parseLocation`: expose `stop.isMeta` diff --git a/p/db/products.js b/p/db/products.js index fbe9f1e5..521f1e26 100644 --- a/p/db/products.js +++ b/p/db/products.js @@ -19,7 +19,7 @@ module.exports = [ default: true }, { - id: 'regionalExp', + id: 'regionalExp', // todo: rename mode: 'train', bitmasks: [4], name: 'RegionalExpress & InterRegio', diff --git a/package.json b/package.json index 672621d0..2c2bdfe3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hafas-client", "description": "Client for HAFAS public transport APIs.", - "version": "4.4.0", + "version": "4.5.0", "main": "index.js", "files": [ "index.js", @@ -17,7 +17,7 @@ "contributors": [ "Julius Tens " ], - "homepage": "https://github.com/public-transport/hafas-client/tree/4.3.0", + "homepage": "https://github.com/public-transport/hafas-client/tree/4.5.0", "repository": "public-transport/hafas-client", "bugs": "https://github.com/public-transport/hafas-client/issues", "license": "ISC", diff --git a/parse/warning.js b/parse/warning.js index a5fdfe4f..625985d1 100644 --- a/parse/warning.js +++ b/parse/warning.js @@ -38,7 +38,6 @@ const parseWarning = (profile, w, icons) => { } if ('prod' in w) res.products = profile.parseProducts(61442) - // todo: pass tzOffset to `parseDateTime` if (w.sDate && w.sTime) res.validFrom = parseDateTime(profile, w.sDate, w.sTime, null) if (w.eDate && w.eTime) res.validUntil = parseDateTime(profile, w.eDate, w.eTime, null) if (w.lModDate && w.lModTime) res.modified = parseDateTime(profile, w.lModDate, w.lModTime, null) diff --git a/readme.md b/readme.md index ce89096d..3c58d105 100644 --- a/readme.md +++ b/readme.md @@ -24,7 +24,6 @@ HAFAS endpoint | library [![npm version](https://img.shields.io/npm/v/hafas-client.svg)](https://www.npmjs.com/package/hafas-client) [![build status](https://img.shields.io/travis/public-transport/hafas-client.svg?branch=3)](https://travis-ci.org/public-transport/hafas-client) -[![Windows build status](https://img.shields.io/appveyor/ci/public-transport/hafas-client.svg?branch=3)](https://ci.appveyor.com/project/public-transport/hafas-client) ![ISC-licensed](https://img.shields.io/github/license/public-transport/hafas-client.svg) [![chat on gitter](https://badges.gitter.im/public-transport/Lobby.svg)](https://gitter.im/public-transport/Lobby) [![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst) @@ -198,6 +197,7 @@ The returned [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript - [List of european long-distance transport operators, available API endpoints, GTFS feeds and client modules.](https://github.com/public-transport/european-transport-operators) - [Collection of european transport JavaScript modules.](https://github.com/public-transport/european-transport-modules) - [`hafas-collect-departures-at`](https://github.com/derhuerst/hafas-collect-departures-at#hafas-collect-departures-at) – Utility to collect departures, using any HAFAS client. +- [`hafas-monitor-trips`](https://github.com/derhuerst/hafas-monitor-trips#hafas-monitor-trips) – Using a HAFAS client, watch all trips in a bounding box. - [`hafas-monitor-departures`](https://github.com/derhuerst/hafas-monitor-departures#hafas-monitor-departures) – Pass in a HAFAS client, fetch all departures at any set of stations. - [`hafas-record-delays`](https://github.com/derhuerst/hafas-record-delays#hafas-record-delays) – Record delays from `hafas-monitor-departures` into a LevelDB. - [`hafas-monitor-journeys`](https://github.com/derhuerst/hafas-monitor-journeys) – Use `hafas-client` to monitor journeys from A to B.