minotor 2.0.0 → 2.0.1

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
@@ -1,12 +1,6 @@
1
- # [2.0.0](https://github.com/aubryio/minotor/compare/v1.0.7...v2.0.0) (2025-05-26)
1
+ ## [2.0.1](https://github.com/aubryio/minotor/compare/v2.0.0...v2.0.1) (2025-05-26)
2
2
 
3
3
 
4
- ### Performance Improvements
4
+ ### Bug Fixes
5
5
 
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
6
+ * fix StopId export ([c53db0a](https://github.com/aubryio/minotor/commit/c53db0ad6d3751dc0b0cc38d60016b570c041bab))
package/dist/router.d.ts CHANGED
@@ -3,9 +3,9 @@ import { Query } from './routing/query.js';
3
3
  import { Result } from './routing/result.js';
4
4
  import { Leg, Route, Transfer, VehicleLeg } from './routing/route.js';
5
5
  import { ReachingTime, Router } from './routing/router.js';
6
- import { LocationType, SourceStopId, Stop } from './stops/stops.js';
6
+ import { LocationType, SourceStopId, Stop, StopId } from './stops/stops.js';
7
7
  import { StopsIndex } from './stops/stopsIndex.js';
8
8
  import { Duration } from './timetable/duration.js';
9
9
  import { Time } from './timetable/time.js';
10
10
  import { RouteType, ServiceRoute, Timetable, TransferType } from './timetable/timetable.js';
11
- export { Duration, Leg, LocationType, Plotter, Query, ReachingTime, Result, Route, Router, RouteType, ServiceRoute, Stop, SourceStopId as StopId, StopsIndex, Time, Timetable, Transfer, TransferType, VehicleLeg, };
11
+ export { Duration, Leg, LocationType, Plotter, Query, ReachingTime, Result, Route, Router, RouteType, ServiceRoute, SourceStopId, Stop, StopId, StopsIndex, Time, Timetable, Transfer, TransferType, VehicleLeg, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minotor",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "A lightweight client-side transit routing library.",
5
5
  "keywords": [
6
6
  "minotor",
package/src/router.ts CHANGED
@@ -3,7 +3,7 @@ import { Query } from './routing/query.js';
3
3
  import { Result } from './routing/result.js';
4
4
  import { Leg, Route, Transfer, VehicleLeg } from './routing/route.js';
5
5
  import { ReachingTime, Router } from './routing/router.js';
6
- import { LocationType, SourceStopId, Stop } from './stops/stops.js';
6
+ import { LocationType, SourceStopId, Stop, StopId } from './stops/stops.js';
7
7
  import { StopsIndex } from './stops/stopsIndex.js';
8
8
  import { Duration } from './timetable/duration.js';
9
9
  import { Time } from './timetable/time.js';
@@ -26,8 +26,9 @@ export {
26
26
  Router,
27
27
  RouteType,
28
28
  ServiceRoute,
29
+ SourceStopId,
29
30
  Stop,
30
- SourceStopId as StopId,
31
+ StopId,
31
32
  StopsIndex,
32
33
  Time,
33
34
  Timetable,