All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
destroy()method to cleanly tear down a picker instance and its listeners.onLocationChangeoption — callback fired whenever the selected location changes.useAdvancedMarkeroption for opting into Google Maps' Advanced Markers (AdvancedMarkerElement).- Named export:
import { LocationPicker } from 'location-picker'.
- BREAKING:
setCurrentPosition()now returns aPromisethat resolves once the browser geolocation lookup completes (or rejects on error / denial). Previously it was fire-and-forget. - Replaced the deprecated
@types/googlemapswith the official@types/google.maps. - Toolchain modernized: TypeScript 5, ESLint 9 (flat config), Rollup 4, Vitest for tests.
- BREAKING: Dropped the UMD bundle. The package now ships ESM (
dist/index.mjs) and CJS (dist/index.cjs) only.
Earlier 1.x releases — see the git history for details.