Skip to content

Releases: cyphercodes/location-picker

v2.0.0

12 Apr 02:03

Choose a tag to compare

location-picker v2.0.0

Modernized release: new toolchain, new API surface, first test suite.

✨ Added

  • useAdvancedMarker option — use Google Maps AdvancedMarkerElement when available (falls back to CSS-pin overlay)
  • onLocationChange(pos) option — callback fired on map idle
  • destroy() method — removes listeners and overlay DOM
  • Named export: import { LocationPicker } from 'location-picker'
  • Exported types: LocationPickerOptions, LatLng
  • Vitest suite with Google Maps mocks (7 tests)
  • GitHub Actions CI (Node 18/20/22)
  • Modernized demo page (example/index.html) with responsive UI, presets, geolocation button

💥 Breaking changes

  • setCurrentPosition() now returns Promise<LatLng> instead of fire-and-forget
  • Dropped UMD bundle — ESM (dist/index.mjs) + CJS (dist/index.cjs) only
  • Requires Node >=18 for development

🔧 Changed

  • TypeScript 2.6 → 5.6 (strict, noUncheckedIndexedAccess, target ES2020)
  • TSLint → ESLint 9 (flat config) + Prettier
  • Rollup 0.x → Rollup 4 with modern plugins
  • @types/googlemaps@types/google.maps
  • Travis CI → GitHub Actions
  • Added package.json exports map, sideEffects, engines

🛠 Migration from v1

- lp.setCurrentPosition();
+ await lp.setCurrentPosition();

See CHANGELOG.md and README migration guide for full details.

v1.1.1

08 Apr 09:49

Choose a tag to compare

1.1.1 (2018-04-08)

Bug Fixes

v1.1.0

22 Mar 11:08

Choose a tag to compare

1.1.0 (2018-03-22)

Features

  • add method to set location (ee55a95)

v1.0.4

18 Mar 15:56

Choose a tag to compare

1.0.4 (2018-03-18)

Bug Fixes

  • Fixed README - added badges (f62d081)

v1.0.3

18 Mar 13:38

Choose a tag to compare

1.0.3 (2018-03-18)

Bug Fixes

v1.0.2

18 Mar 13:31

Choose a tag to compare

1.0.2 (2018-03-18)

Bug Fixes

  • Fix lat,lng for Montreal in example (650c2f1)

v1.0.1

18 Mar 13:25

Choose a tag to compare

1.0.1 (2018-03-18)

Bug Fixes

  • setCurrentPos.. only if no initial position (79fd662)

v1.0.0

18 Mar 13:18

Choose a tag to compare

1.0.0 (2018-03-18)

Bug Fixes

  • set example initial location to Montreal (20ea717)

BREAKING CHANGES

  • bump version to v1

v0.6.0

18 Mar 12:54

Choose a tag to compare

0.6.0 (2018-03-18)

Features

  • Allow setting initial location (5fb15f4)

v0.5.3

17 Mar 12:42

Choose a tag to compare

0.5.3 (2018-03-17)

Bug Fixes