@googlemaps/routing 0.6.0 → 1.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.0](https://github.com/googleapis/google-cloud-node/compare/routing-v0.6.0...routing-v1.0.0) (2023-08-06)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * migrate to Node 14 ([#4443](https://github.com/googleapis/google-cloud-node/issues/4443))
9
+
10
+ ### Bug Fixes
11
+
12
+ * [Many APIs] fix typings for IAM methods ([#4466](https://github.com/googleapis/google-cloud-node/issues/4466)) ([fa1520c](https://github.com/googleapis/google-cloud-node/commit/fa1520c3eb526efd3523d9cea349ed31683d5889))
13
+
14
+
15
+ ### Miscellaneous Chores
16
+
17
+ * Migrate to Node 14 ([#4443](https://github.com/googleapis/google-cloud-node/issues/4443)) ([2260f12](https://github.com/googleapis/google-cloud-node/commit/2260f12543d171bda95345e53475f5f0fdc45770))
18
+
3
19
  ## [0.6.0](https://github.com/googleapis/google-cloud-node/compare/routing-v0.5.1...routing-v0.6.0) (2023-07-04)
4
20
 
5
21
 
@@ -165,12 +165,12 @@ export declare class RoutesClient {
165
165
  * Optional. The departure time. If you don't set this value, then this value
166
166
  * defaults to the time that you made the request.
167
167
  * NOTE: You can only specify a `departure_time` in the past when
168
- * {@link google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
168
+ * {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
169
169
  * `TRANSIT`.
170
170
  * @param {google.protobuf.Timestamp} [request.arrivalTime]
171
171
  * Optional. The arrival time.
172
172
  * NOTE: Can only be set when
173
- * {@link google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
173
+ * {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
174
174
  * `TRANSIT`. You can specify either departure_time or arrival_time, but not
175
175
  * both.
176
176
  * @param {boolean} [request.computeAlternativeRoutes]
@@ -194,7 +194,7 @@ export declare class RoutesClient {
194
194
  * @param {google.maps.routing.v2.Units} [request.units]
195
195
  * Optional. Specifies the units of measure for the display fields. These
196
196
  * fields include the `instruction` field in
197
- * {@link google.maps.routing.v2.NavigationInstruction|NavigationInstruction}. The
197
+ * {@link protos.google.maps.routing.v2.NavigationInstruction|NavigationInstruction}. The
198
198
  * units of measure used for the route, leg, step distance, and duration are
199
199
  * not affected by this value. If you don't provide this value, then the
200
200
  * display units are inferred from the location of the first origin.
@@ -223,26 +223,25 @@ export declare class RoutesClient {
223
223
  * @param {google.maps.routing.v2.TrafficModel} [request.trafficModel]
224
224
  * Optional. Specifies the assumptions to use when calculating time in
225
225
  * traffic. This setting affects the value returned in the duration field in
226
- * the {@link google.maps.routing.v2.Route|Route} and
227
- * {@link google.maps.routing.v2.RouteLeg|RouteLeg} which contains the predicted
226
+ * the {@link protos.google.maps.routing.v2.Route|Route} and
227
+ * {@link protos.google.maps.routing.v2.RouteLeg|RouteLeg} which contains the predicted
228
228
  * time in traffic based on historical averages.
229
229
  * `TrafficModel` is only available for requests that have set
230
- * {@link google.maps.routing.v2.RoutingPreference|RoutingPreference} to
230
+ * {@link protos.google.maps.routing.v2.RoutingPreference|RoutingPreference} to
231
231
  * `TRAFFIC_AWARE_OPTIMAL` and
232
- * {@link google.maps.routing.v2.RouteTravelMode|RouteTravelMode} to `DRIVE`.
232
+ * {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} to `DRIVE`.
233
233
  * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
234
234
  * specified.
235
235
  * @param {google.maps.routing.v2.TransitPreferences} [request.transitPreferences]
236
236
  * Optional. Specifies preferences that influence the route returned for
237
237
  * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
238
- * {@link google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
238
+ * {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
239
239
  * `TRANSIT`.
240
240
  * @param {object} [options]
241
241
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
242
242
  * @returns {Promise} - The promise which resolves to an array.
243
- * The first element of the array is an object representing {@link google.maps.routing.v2.ComputeRoutesResponse | ComputeRoutesResponse}.
244
- * Please see the
245
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
243
+ * The first element of the array is an object representing {@link protos.google.maps.routing.v2.ComputeRoutesResponse|ComputeRoutesResponse}.
244
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
246
245
  * for more details and examples.
247
246
  * @example <caption>include:samples/generated/v2/routes.compute_routes.js</caption>
248
247
  * region_tag:routes_v2_generated_Routes_ComputeRoutes_async
@@ -319,12 +318,12 @@ export declare class RoutesClient {
319
318
  * Optional. The departure time. If you don't set this value, then this value
320
319
  * defaults to the time that you made the request.
321
320
  * NOTE: You can only specify a `departure_time` in the past when
322
- * {@link google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
321
+ * {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
323
322
  * `TRANSIT`.
324
323
  * @param {google.protobuf.Timestamp} [request.arrivalTime]
325
324
  * Optional. The arrival time.
326
325
  * NOTE: Can only be set when
327
- * {@link google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
326
+ * {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
328
327
  * `TRANSIT`. You can specify either departure_time or arrival_time, but not
329
328
  * both.
330
329
  * @param {string} [request.languageCode]
@@ -346,24 +345,23 @@ export declare class RoutesClient {
346
345
  * @param {google.maps.routing.v2.TrafficModel} [request.trafficModel]
347
346
  * Optional. Specifies the assumptions to use when calculating time in
348
347
  * traffic. This setting affects the value returned in the duration field in
349
- * the {@link google.maps.routing.v2.RouteMatrixElement|RouteMatrixElement} which
348
+ * the {@link protos.google.maps.routing.v2.RouteMatrixElement|RouteMatrixElement} which
350
349
  * contains the predicted time in traffic based on historical averages.
351
- * {@link google.maps.routing.v2.RoutingPreference|RoutingPreference} to
350
+ * {@link protos.google.maps.routing.v2.RoutingPreference|RoutingPreference} to
352
351
  * `TRAFFIC_AWARE_OPTIMAL` and
353
- * {@link google.maps.routing.v2.RouteTravelMode|RouteTravelMode} to `DRIVE`.
352
+ * {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} to `DRIVE`.
354
353
  * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
355
354
  * specified.
356
355
  * @param {google.maps.routing.v2.TransitPreferences} [request.transitPreferences]
357
356
  * Optional. Specifies preferences that influence the route returned for
358
357
  * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
359
- * {@link google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
358
+ * {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
360
359
  * `TRANSIT`.
361
360
  * @param {object} [options]
362
361
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
363
362
  * @returns {Stream}
364
- * An object stream which emits {@link google.maps.routing.v2.RouteMatrixElement | RouteMatrixElement} on 'data' event.
365
- * Please see the
366
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#server-streaming)
363
+ * An object stream which emits {@link protos.google.maps.routing.v2.RouteMatrixElement|RouteMatrixElement} on 'data' event.
364
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#server-streaming | documentation }
367
365
  * for more details and examples.
368
366
  * @example <caption>include:samples/generated/v2/routes.compute_route_matrix.js</caption>
369
367
  * region_tag:routes_v2_generated_Routes_ComputeRouteMatrix_async
@@ -319,12 +319,12 @@ class RoutesClient {
319
319
  * Optional. The departure time. If you don't set this value, then this value
320
320
  * defaults to the time that you made the request.
321
321
  * NOTE: You can only specify a `departure_time` in the past when
322
- * {@link google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
322
+ * {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
323
323
  * `TRANSIT`.
324
324
  * @param {google.protobuf.Timestamp} [request.arrivalTime]
325
325
  * Optional. The arrival time.
326
326
  * NOTE: Can only be set when
327
- * {@link google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
327
+ * {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
328
328
  * `TRANSIT`. You can specify either departure_time or arrival_time, but not
329
329
  * both.
330
330
  * @param {string} [request.languageCode]
@@ -346,24 +346,23 @@ class RoutesClient {
346
346
  * @param {google.maps.routing.v2.TrafficModel} [request.trafficModel]
347
347
  * Optional. Specifies the assumptions to use when calculating time in
348
348
  * traffic. This setting affects the value returned in the duration field in
349
- * the {@link google.maps.routing.v2.RouteMatrixElement|RouteMatrixElement} which
349
+ * the {@link protos.google.maps.routing.v2.RouteMatrixElement|RouteMatrixElement} which
350
350
  * contains the predicted time in traffic based on historical averages.
351
- * {@link google.maps.routing.v2.RoutingPreference|RoutingPreference} to
351
+ * {@link protos.google.maps.routing.v2.RoutingPreference|RoutingPreference} to
352
352
  * `TRAFFIC_AWARE_OPTIMAL` and
353
- * {@link google.maps.routing.v2.RouteTravelMode|RouteTravelMode} to `DRIVE`.
353
+ * {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} to `DRIVE`.
354
354
  * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
355
355
  * specified.
356
356
  * @param {google.maps.routing.v2.TransitPreferences} [request.transitPreferences]
357
357
  * Optional. Specifies preferences that influence the route returned for
358
358
  * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
359
- * {@link google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
359
+ * {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} is set to
360
360
  * `TRANSIT`.
361
361
  * @param {object} [options]
362
362
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
363
363
  * @returns {Stream}
364
- * An object stream which emits {@link google.maps.routing.v2.RouteMatrixElement | RouteMatrixElement} on 'data' event.
365
- * Please see the
366
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#server-streaming)
364
+ * An object stream which emits {@link protos.google.maps.routing.v2.RouteMatrixElement|RouteMatrixElement} on 'data' event.
365
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#server-streaming | documentation }
367
366
  * for more details and examples.
368
367
  * @example <caption>include:samples/generated/v2/routes.compute_route_matrix.js</caption>
369
368
  * region_tag:routes_v2_generated_Routes_ComputeRouteMatrix_async
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googlemaps/routing",
3
- "version": "0.6.0",
3
+ "version": "1.0.0",
4
4
  "description": " client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,29 +46,26 @@
46
46
  "test": "c8 mocha build/test"
47
47
  },
48
48
  "dependencies": {
49
- "google-gax": "^3.5.8"
49
+ "google-gax": "^4.0.3"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/mocha": "^9.0.0",
53
- "@types/node": "^18.0.0",
53
+ "@types/node": "^20.4.5",
54
54
  "@types/sinon": "^10.0.0",
55
- "c8": "^7.3.5",
56
- "gts": "^3.1.0",
55
+ "c8": "^8.0.1",
56
+ "gapic-tools": "^0.1.8",
57
+ "gts": "^5.0.0",
57
58
  "jsdoc": "^4.0.0",
58
59
  "jsdoc-fresh": "^2.0.0",
59
60
  "jsdoc-region-tag": "^2.0.0",
60
61
  "linkinator": "4.1.2",
61
62
  "long": "^5.2.3",
62
63
  "mocha": "^9.2.2",
63
- "null-loader": "^4.0.1",
64
64
  "pack-n-play": "^1.0.0-2",
65
65
  "sinon": "^15.0.0",
66
- "ts-loader": "^9.0.0",
67
- "typescript": "^4.6.4",
68
- "webpack": "^5.9.0",
69
- "webpack-cli": "^5.0.0"
66
+ "typescript": "^5.1.6"
70
67
  },
71
68
  "engines": {
72
- "node": ">=12.0.0"
69
+ "node": ">=14.0.0"
73
70
  }
74
71
  }