gtfs 4.0.1 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [4.0.3] - 2023-02-04
9
+
10
+ ### Changed
11
+
12
+ - Updates to sqlite journal mode
13
+
14
+ ### Updated
15
+
16
+ - Dependency updates
17
+
18
+ ## [4.0.2] - 2023-01-15
19
+
20
+ ### Changed
21
+
22
+ - In getStopsAsGeoJSON only return stops that are part of a route.
23
+
24
+ ### Updated
25
+
26
+ - Dependency updates
27
+
8
28
  ## [4.0.1] - 2022-12-31
9
29
 
10
30
  ### Updated
package/lib/db.js CHANGED
@@ -37,9 +37,8 @@ export function openDb(config) {
37
37
  }
38
38
 
39
39
  export function setupDb(db) {
40
- db.pragma('journal_mode = WAL');
40
+ db.pragma('journal_mode = OFF');
41
41
  db.pragma('synchronous = OFF');
42
- db.pragma('locking_mode = EXCLUSIVE');
43
42
  db.pragma('temp_store = MEMORY');
44
43
  }
45
44
 
package/lib/gtfs/stops.js CHANGED
@@ -97,5 +97,8 @@ export function getStopsAsGeoJSON(query = {}, options = {}) {
97
97
  return stop;
98
98
  });
99
99
 
100
- return stopsToGeoJSON(preparedStops);
100
+ // Exclude stops not part of any route
101
+ const filteredStops = preparedStops.filter((stop) => stop.routes.length > 0);
102
+
103
+ return stopsToGeoJSON(filteredStops);
101
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtfs",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "Import GTFS transit data into SQLite and query routes, stops, times, fares and more",
5
5
  "keywords": [
6
6
  "transit",
@@ -75,9 +75,9 @@
75
75
  "dependencies": {
76
76
  "@turf/helpers": "^6.5.0",
77
77
  "better-sqlite3": "^8.0.1",
78
- "csv-parse": "^5.3.3",
78
+ "csv-parse": "^5.3.4",
79
79
  "csv-stringify": "^6.2.3",
80
- "gtfs-realtime-bindings": "^0.0.6",
80
+ "gtfs-realtime-bindings": "^1.1.1",
81
81
  "lodash-es": "^4.17.21",
82
82
  "long": "^5.2.1",
83
83
  "node-fetch": "^3.3.0",
@@ -97,12 +97,12 @@
97
97
  "devDependencies": {
98
98
  "@types/better-sqlite3": "^7.6.3",
99
99
  "dtslint": "^4.2.1",
100
- "eslint": "^8.31.0",
101
- "eslint-config-prettier": "^8.5.0",
100
+ "eslint": "^8.33.0",
101
+ "eslint-config-prettier": "^8.6.0",
102
102
  "eslint-config-xo": "^0.43.1",
103
- "husky": "^8.0.2",
103
+ "husky": "^8.0.3",
104
104
  "mocha": "^10.2.0",
105
- "prettier": "^2.8.1",
105
+ "prettier": "^2.8.3",
106
106
  "pretty-quick": "^3.1.3",
107
107
  "should": "^13.2.3"
108
108
  },