changelog 📝, minor changes, 4.5.0

[ci skip]
This commit is contained in:
Jannis R 2019-07-08 21:12:38 +02:00
parent b57c212bb5
commit f5121f1bf6
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
5 changed files with 8 additions and 5 deletions

View file

@ -1,5 +1,9 @@
# Changelog
## `4.5.0`
- b144dd5/b57c212 return nice error messages & error codes
## `4.4.0`
- e46d6cd `parseLocation`: expose `stop.isMeta`

View file

@ -19,7 +19,7 @@ module.exports = [
default: true
},
{
id: 'regionalExp',
id: 'regionalExp', // todo: rename
mode: 'train',
bitmasks: [4],
name: 'RegionalExpress & InterRegio',

View file

@ -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 <mail@juliustens.eu>"
],
"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",

View file

@ -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)

View file

@ -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.