dart_mapbox_search 2.0.0
dart_mapbox_search: ^2.0.0 copied to clipboard
A production-ready Dart SDK for the Mapbox Search Box, Geocoding, and Places APIs.
2.0.0 #
This release is a complete, intentionally breaking redesign. No 1.x compatibility layer is included.
- Replace the global initializer and
MapboxSearchClienthierarchy with one reusable, instance-basedMapboxSearchclient and explicitclose()lifecycle. - Replace
MapboxSearchResultcallbacks and legacy errors withMapboxResponse<T>and typed API, network, timeout, and decode exceptions. - Add dependency-injected HTTP transport with configurable timeout, headers, base URI, client ownership, token redaction, request IDs, and parsed rate-limit metadata.
- Add immutable typed request and response models with local validation, complete raw JSON retention, and forward-compatible response strings.
- Add Search Box v1 suggestions, retrieval, managed sessions, forward search, category search and category catalogs, reverse search, current POI filters, response attribute sets, search along route, long-route POST delivery, and Matrix-backed distance and ETA enrichment.
- Add Geocoding v6 text and structured forward requests, reverse requests, mixed batches of up to 1,000 queries, permanent-result mode, worldview selection, match metadata, secondary addresses, and public-preview building entrances.
- Add the public-preview Places Details v1 API with single and batch retrieval, partial-result reporting, typed Place data, and retained category-specific attributes.
- Remove legacy Geocoding v5 formats, retired endpoint models, duplicate clients, assertion-only validation, and package-internal imports from the supported public API.
- Add complete feature-focused examples and a migration guide.
- Add a test workflow and enforce 100% code coverage.
- Raise the minimum Dart SDK version to 3.8.0.
1.0.1 #
- Update documentation.
1.0.0 #
- Initial release.