Skip to content

Latest commit

 

History

History
194 lines (153 loc) · 4.49 KB

CHANGELOG.md

File metadata and controls

194 lines (153 loc) · 4.49 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[2.2.0 - 2020-12-05

Updated

  • Use unzipper library to handle poorly formed zip files
  • Dependency updates

[2.1.1 - 2020-11-27

Fixed

  • Don't log missing non-standard GTFS files
  • Support for multiple agencies in one config file
  • Dependency updates

[2.1.0 - 2020-11-10

Added

  • Support for timetable_notes.txt and timetable_notes_references.txt

[2.0.9 - 2020-11-10

Changed

  • Expand model character limit
  • Don't require stop_name in stops.txt
  • Dependency updates

[2.0.8 - 2020-10-14

Changed

  • Improved validation on import

[2.0.7 - 2020-10-13

Added

  • Support for extended GTFS route types

[2.0.6 - 2020-10-13

Changed

  • Dependency updates

Added

  • Better error formatting
  • GTFS import validation and better errors

[2.0.5 - 2020-09-24

Fixed

  • Fix for selecting a single field.

[2.0.4 - 2020-09-20

Added

  • Support for non-standard directions.txt file.
  • Added getFareAttributes to README

[2.0.3 - 2020-09-14

Fixed

  • Fix for querying for null

[2.0.2 - 2020-09-06

Changed

  • Dependency updates

Fixed

  • Fix geojson property formatting

[2.0.1 - 2020-08-23

Added

  • Updated model fields to latest GTFS spec
  • Test for gtfs.getDb()
  • Improved geoJSON generation

[2.0.0 - 2020-08-20

Changed

  • Switched to SQLite
  • Breaking changes for all queries
  • Updated documentation

[1.10.4] - 2020-07-28

Added

  • start_time and end_time fields in timetables.txt

[1.10.3] - 2020-07-15

Added

  • Improved mongo connection documentation

Fixed

  • Dependency updates

[1.10.2] - 2020-06-08

Added

  • Config option csvOptions to pass options to csv-parse.

[1.10.1] - 2020-05-10

Fixed

  • Support for zipped GTFS files with subdirectories

[1.10.0] - 2020-04-20

Added

  • Support for exporting GTFS zip files

[1.9.1] - 2019-08-09

Changed

  • Better projections on all queries

[1.9.0] - 2019-08-06

Added

  • dataExpireAfterSeconds config option
  • created_at field on each document

Fixed

  • Removed invalid required fields from models
  • Removed date_last_updated field from agency

[1.8.9] - 2019-08-06

Changed

  • Logging improvements

[1.8.8] - 2019-08-06

Added

  • Config option for custom logging function

[1.8.7] - 2019-05-20

Changed

  • Use better temp directory for files

[1.8.6] - 2019-05-11

Fixes

  • Remove .git from published npm package

[1.8.5] - 2019-04-09

Changed

  • Prevent timeout on all queries

[1.8.4] - 2019-03-31

Added

  • Index on stop_id

Changed

  • Strip byte-order-markers if present when importing

[1.8.3] - 2019-03-26

Added

  • Support for GET headers

[1.8.2] - 2019-03-11

Changed

  • Renamed config variable to show_trip_continuation

[1.8.1] - 2019-02-28

Added

  • Changelog

Changed

  • Fixed issue with geojson consolidation

[1.8.0] - 2019-02-28

Changed

  • Updated all methods so that query objects remain unchanged
  • Updated dependencies

[1.0.0] - 2017-07-17

Breaking changes in version 1.0.0

As of version 1.0.0, all node-gtfs methods have changed to accept a query object instead of individual arguments. This allows for all fields of all GTFS files to be queried using this library. Most method names have been changed to be more general and more specific methods have been removed. For example, getRoutes now replaces getRoutesByAgency, getRoutesById, getRoutesByDistance and getRoutesByStop.

// Old method with individual arguments, no longer supported in `node-gtfs` 1.0.0
gtfs.getRoutesByStop(agency_key, stop_id)
.then(routes => {
  // do something with the array of `routes`
})

// Query in `node-gtfs` version 1.0.0
gtfs.getRoutes({
  agency_key: 'caltrain',
  stop_id: '123'
})
.then(routes => {
  // do something with the array of `routes`
})

[0.11.0] - 2017-07-04

As of version 0.11.0, node-gtfs methods don't support callbacks. Use promises instead:

gtfs.getAgencies()
.then(agencies => {
  // do something with the array of `agencies`
})
.catch(err => {
  // handle errors here
});

Or, you use async/await:

const myAwesomeFunction = async () => {
  try {
    const agencies = await gtfs.getAgencies();
  } catch (error) {
    // handle errors here
  }
}