Skip to content

v0.3.0

Choose a tag to compare

@chtitux chtitux released this 08 Mar 15:15
· 40 commits to main since this release

Breaking changes

  • fromZip() now only accepts string (path or URL). If you were passing ArrayBuffer or Uint8Array, use the new fromZipData() method instead
  • skipFiles behavior change: files listed in skipFiles are now skipped during ZIP extraction entirely (not just excluded from DB loading), improving performance for large feeds

New features

  • Add GtfsSqlJs.fromZipData(zipData, options?, source?) static method for loading from pre-loaded ZIP data (ArrayBuffer or Uint8Array)
  • Extract only known GTFS files from ZIP, skipping unrecognized files for faster extraction

Internal improvements

  • Simplify checksum to use global crypto.subtle directly (drop dynamic import('crypto') fallback)
  • Extract shared isNodeEnvironment() helper into utils/env.ts
  • Replace unknown[], widening casts, and non-null assertions with proper types across query files and loaders