minotor 11.5.1 → 12.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.
- package/CHANGELOG.md +9 -3
- package/README.md +1 -1
- package/dist/cli.mjs +5607 -5062
- package/dist/cli.mjs.map +1 -1
- package/dist/parser.cjs.js +1481 -772
- package/dist/parser.cjs.js.map +1 -1
- package/dist/parser.esm.js +1481 -772
- package/dist/parser.esm.js.map +1 -1
- package/dist/router.cjs.js +1 -1
- package/dist/router.cjs.js.map +1 -1
- package/dist/router.d.ts +6 -5
- package/dist/router.esm.js +1 -1
- package/dist/router.esm.js.map +1 -1
- package/dist/router.umd.js +1 -1
- package/dist/router.umd.js.map +1 -1
- package/dist/routing/route.d.ts +6 -9
- package/dist/stops/proto/v1/stops.d.ts +1 -0
- package/dist/timetable/proto/v1/timetable.d.ts +1 -0
- package/dist/timetable/route.d.ts +5 -4
- package/package.json +31 -31
- package/src/__e2e__/router.test.ts +55 -56
- package/src/cli/repl.ts +9 -5
- package/src/router.ts +21 -8
- package/src/routing/__tests__/plainRouter.test.ts +2 -2
- package/src/routing/__tests__/result.test.ts +1 -1
- package/src/routing/__tests__/route.test.ts +8 -7
- package/src/routing/__tests__/router.test.ts +21 -1
- package/src/routing/raptor.ts +2 -2
- package/src/routing/result.ts +11 -45
- package/src/routing/route.ts +12 -17
- package/src/stops/proto/v1/stops.ts +122 -88
- package/src/stops/stopsIndex.ts +1 -1
- package/src/timetable/proto/v1/timetable.ts +335 -230
- package/src/timetable/route.ts +21 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
# [12.0.0](https://github.com/aubryio/minotor/compare/v11.5.2...v12.0.0) (2026-10-20)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Code Refactoring
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* use numeric types rather than strings across the api ([#79](https://github.com/aubryio/minotor/issues/79)) ([80c395b](https://github.com/aubryio/minotor/commit/80c395bcc7db1523e7f267ef1803591fca181386))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* Route types, pick-up and drop-off types and transfer types are now numerical rather
|
|
12
|
+
than strings in the API.
|
package/README.md
CHANGED
|
@@ -136,7 +136,7 @@ Query options:
|
|
|
136
136
|
| `minTransferTime` | `2 min` | Fallback minimum transfer time |
|
|
137
137
|
| `maxDuration` | unlimited | Maximum total journey duration from the query departure time |
|
|
138
138
|
| `maxInitialWaitingTime` | unlimited | Maximum wait for the first vehicle after arriving at the boarding stop |
|
|
139
|
-
| `transportModes` | all | Restrict to a subset of
|
|
139
|
+
| `transportModes` | all | Restrict to a subset of `RouteTypes` values |
|
|
140
140
|
|
|
141
141
|
#### Range query (browser or Node.js)
|
|
142
142
|
|