gtfs 4.18.1 → 4.18.2

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/README.md CHANGED
@@ -91,7 +91,7 @@ try {
91
91
  <td><a href="https://github.com/blinktaginc/gtfs-to-geojson">GTFS-to-geojson</a> creates geoJSON files for transit routes for use in mapping. It uses `node-gtfs` for downloading, importing and querying GTFS data. It provides a good example of how to use this library.</td>
92
92
  </tr>
93
93
  <tr>
94
- <td><img src="https://github.com/BlinkTagInc/gtfs-to-chart/raw/master/docs/images/gtfs-to-chart-logo.svg" alt="GTFS-to-Chart" width="200"></td>
94
+ <td><img src="https://github.com/BlinkTagInc/gtfs-to-chart/raw/main/docs/images/gtfs-to-chart-logo.svg" alt="GTFS-to-Chart" width="200"></td>
95
95
  <td><a href="https://github.com/blinktaginc/gtfs-to-chart">GTFS-to-chart</a> generates a stringline chart in D3 for all trips for a specific route using data from an agency's GTFS. It uses `node-gtfs` for downloading, importing and querying GTFS data.</td>
96
96
  </tr>
97
97
  <tr>
@@ -106,6 +106,10 @@ try {
106
106
  <td><img src="https://raw.githubusercontent.com/BlinkTagInc/transit-departures-widget/main/docs/images/transit-departures-widget-logo.svg" alt="Transit Departures Widget" width="200"></td>
107
107
  <td><a href="https://github.com/BlinkTagInc/transit-departures-widget">Transit Departures Widget</a> creates a realtime transit departures widget from GTFS and GTFS-Realtime data.</td>
108
108
  </tr>
109
+ <tr>
110
+ <td><img src="https://github.com/BlinkTagInc/gtfs-to-blocks/blob/main/docs/images/gtfs-to-blocks-logo.svg" alt="GTFS-to-Blocks" width="200"></td>
111
+ <td><a href="https://github.com/BlinkTagInc/gtfs-to-blocks">GTFS-to-Blocks</a> reads transit data from GTFS and exports all trip segments sorted by block_id and their departure times in CSV format.</td>
112
+ </tr>
109
113
  </table>
110
114
 
111
115
  ## Command-Line Usage
package/dist/index.d.ts CHANGED
@@ -549,11 +549,17 @@ interface RunPiece {
549
549
  end_trip_position: number | null;
550
550
  }
551
551
  interface ServiceAlert {
552
- cause: number;
552
+ id: string;
553
+ cause: string | null;
554
+ effect: string | null;
555
+ url: string | null;
553
556
  start_time: string;
554
557
  end_time: string;
555
- headline: string;
556
- description: string;
558
+ header_text: string;
559
+ description_text: string;
560
+ tts_header_text: string | null;
561
+ tts_description_text: string | null;
562
+ severity_level: string | null;
557
563
  created_timestamp: UnixTimestamp;
558
564
  expiration_timestamp: UnixTimestamp;
559
565
  }
@@ -573,7 +579,7 @@ interface StopTimeUpdate {
573
579
  expiration_timestamp: UnixTimestamp;
574
580
  }
575
581
  interface TripUpdate {
576
- update_id: string;
582
+ id: string;
577
583
  vehicle_id: string | null;
578
584
  trip_id: string | null;
579
585
  trip_start_time: string | null;
@@ -586,7 +592,7 @@ interface TripUpdate {
586
592
  expiration_timestamp: UnixTimestamp;
587
593
  }
588
594
  interface VehiclePosition {
589
- update_id: string;
595
+ id: string;
590
596
  bearing: number | null;
591
597
  latitude: number | null;
592
598
  longitude: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtfs",
3
- "version": "4.18.1",
3
+ "version": "4.18.2",
4
4
  "description": "Import GTFS transit data into SQLite and query routes, stops, times, fares and more",
5
5
  "keywords": [
6
6
  "transit",
@@ -100,8 +100,8 @@
100
100
  }
101
101
  },
102
102
  "dependencies": {
103
- "@turf/helpers": "7.2.0",
104
- "better-sqlite3": "12.4.1",
103
+ "@turf/helpers": "7.3.1",
104
+ "better-sqlite3": "12.5.0",
105
105
  "csv-parse": "6.1.0",
106
106
  "csv-stringify": "6.6.0",
107
107
  "gtfs-realtime-bindings": "1.1.1",
@@ -118,22 +118,21 @@
118
118
  "yoctocolors": "2.1.2"
119
119
  },
120
120
  "devDependencies": {
121
- "@eslint/config-helpers": "0.4.0",
122
- "@eslint/eslintrc": "3.3.1",
123
- "@eslint/js": "9.37.0",
121
+ "@eslint/eslintrc": "3.3.3",
122
+ "@eslint/js": "9.39.1",
124
123
  "@types/better-sqlite3": "7.6.13",
125
124
  "@types/geojson": "7946.0.16",
126
125
  "@types/lodash-es": "4.17.12",
127
126
  "@types/node": "24",
128
- "@types/yargs": "17.0.33",
129
- "eslint": "9.37.0",
130
- "globals": "16.4.0",
127
+ "@types/yargs": "17.0.35",
128
+ "eslint": "9.39.1",
129
+ "globals": "16.5.0",
131
130
  "husky": "9.1.7",
132
- "lint-staged": "16.2.4",
133
- "prettier": "3.6.2",
134
- "tsup": "8.5.0",
131
+ "lint-staged": "16.2.7",
132
+ "prettier": "3.7.4",
133
+ "tsup": "8.5.1",
135
134
  "typescript": "5.9.3",
136
- "typescript-eslint": "8.46.1"
135
+ "typescript-eslint": "8.48.1"
137
136
  },
138
137
  "engines": {
139
138
  "node": ">= 20.11.0"