minotor 1.0.7 → 2.0.0

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +9 -3
  2. package/README.md +3 -2
  3. package/dist/cli.mjs +604 -531
  4. package/dist/cli.mjs.map +1 -1
  5. package/dist/gtfs/stops.d.ts +19 -5
  6. package/dist/gtfs/transfers.d.ts +5 -4
  7. package/dist/gtfs/trips.d.ts +7 -5
  8. package/dist/gtfs/utils.d.ts +7 -8
  9. package/dist/parser.cjs.js +569 -501
  10. package/dist/parser.cjs.js.map +1 -1
  11. package/dist/parser.esm.js +569 -501
  12. package/dist/parser.esm.js.map +1 -1
  13. package/dist/router.cjs.js +1 -1
  14. package/dist/router.cjs.js.map +1 -1
  15. package/dist/router.d.ts +3 -3
  16. package/dist/router.esm.js +1 -1
  17. package/dist/router.esm.js.map +1 -1
  18. package/dist/router.umd.js +1 -1
  19. package/dist/router.umd.js.map +1 -1
  20. package/dist/routing/__tests__/route.test.d.ts +1 -0
  21. package/dist/routing/query.d.ts +7 -7
  22. package/dist/routing/result.d.ts +3 -3
  23. package/dist/routing/route.d.ts +1 -0
  24. package/dist/stops/proto/stops.d.ts +5 -4
  25. package/dist/stops/stops.d.ts +10 -1
  26. package/dist/stops/stopsIndex.d.ts +21 -4
  27. package/dist/timetable/proto/timetable.d.ts +21 -18
  28. package/dist/timetable/timetable.d.ts +38 -14
  29. package/package.json +4 -3
  30. package/src/cli/repl.ts +13 -10
  31. package/src/gtfs/__tests__/parser.test.ts +50 -579
  32. package/src/gtfs/__tests__/stops.test.ts +181 -112
  33. package/src/gtfs/__tests__/transfers.test.ts +170 -12
  34. package/src/gtfs/__tests__/trips.test.ts +212 -141
  35. package/src/gtfs/__tests__/utils.test.ts +4 -4
  36. package/src/gtfs/parser.ts +22 -13
  37. package/src/gtfs/stops.ts +63 -28
  38. package/src/gtfs/transfers.ts +14 -6
  39. package/src/gtfs/trips.ts +110 -47
  40. package/src/gtfs/utils.ts +11 -11
  41. package/src/router.ts +2 -4
  42. package/src/routing/__tests__/route.test.ts +112 -0
  43. package/src/routing/__tests__/router.test.ts +234 -244
  44. package/src/routing/query.ts +7 -7
  45. package/src/routing/result.ts +9 -6
  46. package/src/routing/route.ts +11 -0
  47. package/src/routing/router.ts +26 -24
  48. package/src/stops/__tests__/io.test.ts +9 -8
  49. package/src/stops/__tests__/stopFinder.test.ts +45 -36
  50. package/src/stops/io.ts +8 -5
  51. package/src/stops/proto/stops.proto +8 -7
  52. package/src/stops/proto/stops.ts +68 -38
  53. package/src/stops/stops.ts +13 -1
  54. package/src/stops/stopsIndex.ts +50 -7
  55. package/src/timetable/__tests__/io.test.ts +40 -49
  56. package/src/timetable/__tests__/timetable.test.ts +50 -58
  57. package/src/timetable/io.ts +69 -56
  58. package/src/timetable/proto/timetable.proto +22 -17
  59. package/src/timetable/proto/timetable.ts +94 -184
  60. package/src/timetable/timetable.ts +62 -29
package/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
- ## [1.0.7](https://github.com/aubryio/minotor/compare/v1.0.6...v1.0.7) (2025-03-12)
1
+ # [2.0.0](https://github.com/aubryio/minotor/compare/v1.0.7...v2.0.0) (2025-05-26)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Performance Improvements
5
5
 
6
- * include time lower bound when looking for earliest trip ([#13](https://github.com/aubryio/minotor/issues/13)) ([aaabe2e](https://github.com/aubryio/minotor/commit/aaabe2e93795248c4d2038ff82ead15c9b5a24a7))
6
+ * reduce memory usage using typed arrays and numerical stopIds ([#15](https://github.com/aubryio/minotor/issues/15)) ([fc47060](https://github.com/aubryio/minotor/commit/fc47060f8f5d21a9f6574f610cf7d54149bf3b5f))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * The serialization format of both the timetable and the stops index was updated to
12
+ version 0.0.2. Version 0.0.1 can't be read nor produced anymore by this version of the library
package/README.md CHANGED
@@ -155,7 +155,6 @@ Releases are automatically published to npm when merging to the `main` or `beta`
155
155
 
156
156
  The project is under active development. Here are some of the features that are planned:
157
157
 
158
- - Documentation website and examples
159
158
  - Load multiple GTFS archives at once
160
159
  - Range queries
161
160
  - Transfer preferences
@@ -163,4 +162,6 @@ The project is under active development. Here are some of the features that are
163
162
  - Support for GTFS `frequencies.txt`
164
163
  - Support for more types of transfers
165
164
  - NeTEx support
166
- - RT-GTFS Support
165
+ - Higher level timetable API for cleaner router code
166
+ - RT-GTFS Support (adding tripId support)
167
+ - More extensive testing