Skip to content

v0.9.0

Latest

Choose a tag to compare

@chtitux chtitux released this 26 Aug 18:54
  • Breaking: drop Node.js 18 supportengines.node is now >=20.0.0. The await import('node:crypto') fallback for Node 18's missing globalThis.crypto is removed, which also fixes vite emitting Module "crypto" has been externalized for browser compatibility for the core gtfs-sqljs entry when bundling for the browser. Node 18 has been EOL since April 2025.
  • Add getCalendars(filters?) — bulk read of the calendar table (filters: serviceId single value or array, limit). getCalendarByServiceId() remains as a convenience wrapper. (#46)
  • getCalendarDates() no longer requires a service id — it now accepts an optional filters object (serviceId, date, limit) and returns the whole calendar_dates table when called without arguments. The legacy getCalendarDates('SERVICE_ID') string form is still accepted. (#46)
  • Add getFeedInfo() — returns the feed_info rows (an array, since the spec allows multiple rows). (#46)
  • Add getFrequencies(filters?) — read the frequencies table (filters: tripId single value or array, limit). exact_times: 0 is preserved. (#46)
  • Fix: ProgressInfo and ProgressCallback types are now exported from the package entry point. (#45)
  • README: document that vite fs/path/crypto warnings pointing at sql.js/dist/sql-wasm.js come from sql.js's UMD build, are harmless in the browser, and cannot be fixed from gtfs-sqljs.
  • CI: test matrix is now Node 20.x / 22.x / 24.x; GitHub Actions bumped across workflows.