@tomtom-org/maps-sdk 0.51.3 → 0.51.5

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tomtom-org/maps-sdk",
3
3
  "author": "TomTom International B.V.",
4
4
  "license": "See in LICENSE.txt",
5
- "version": "0.51.3",
5
+ "version": "0.51.5",
6
6
  "description": "TomTom Maps for JavaScript",
7
7
  "keywords": [
8
8
  "tomtom",
@@ -102,7 +102,7 @@
102
102
  "sync-examples-package-version": "bash examples/scripts/sync-examples-package-version.sh",
103
103
  "test:agent-eval": "pnpm -F agent-eval test",
104
104
  "test:sdk": "pnpm -F core test && pnpm -F services test && pnpm -F map test",
105
- "test:sdk:coverage": "pnpm -F core test:coverage && pnpm -F services test:coverage && pnpm -F map test:coverage",
105
+ "test:sdk:coverage": "pnpm -F core test:coverage && pnpm -F services test:coverage && pnpm -F map test:coverage && pnpm -F plugins test:coverage",
106
106
  "test:plugins": "pnpm --filter './plugins/*' run --if-present test",
107
107
  "test:examples": "pnpm -F @tomtom-org/maps-sdk-examples test",
108
108
  "type-check:examples": "pnpm -F @tomtom-org/maps-sdk-examples type-check",
@@ -7524,19 +7524,17 @@ declare const customize: {
7524
7524
  *
7525
7525
  * @example
7526
7526
  * ```typescript
7527
- * // Access request builder for custom processing
7528
- * import { customizeService } from '@tomtom-international/web-sdk-services';
7527
+ * import { mergeFromGlobal } from '@tomtom-org/maps-sdk/core';
7528
+ * import { customizeService } from '@tomtom-org/maps-sdk/services';
7529
7529
  *
7530
- * const { buildRequest } = customizeService.geocode;
7531
- * const request = buildRequest({
7532
- * key: 'your-api-key',
7533
- * query: 'Amsterdam'
7534
- * });
7530
+ * const { buildGeocodingRequest, parseGeocodingResponse } = customizeService.geocode;
7531
+ *
7532
+ * // Request builders expect the global configuration to be merged in already
7533
+ * const url = buildGeocodingRequest(mergeFromGlobal({ query: 'Amsterdam' }));
7535
7534
  *
7536
- * // Access response parser for custom handling
7537
- * const { parseResponse } = customizeService.geocode;
7538
- * const rawApiResponse = await fetch(request.url);
7539
- * const parsedData = parseResponse(await rawApiResponse.json());
7535
+ * // Send the request yourself, then parse the raw API payload
7536
+ * const apiResponse = await fetch(url);
7537
+ * const places = parseGeocodingResponse(await apiResponse.json());
7540
7538
  * ```
7541
7539
  *
7542
7540
  * @group Advanced