Releases: perliedman/leaflet-control-geocoder
Releases · perliedman/leaflet-control-geocoder
3.1.0
3.1.0 (2024-12-21)
- Implement Azure Maps Geocoder (#351) (bf04a88), closes #351
- azure: add to README (8e1da50)
- azure: add types, add unit test (d1183f4)
- azure: update to leaflet-control-geocoder 3.0.0 (0951831)
- build: fix tsc --target ES2020 (51ed3ea)
- CHANGELOG: clarify "Migrate from callbacks to async-await" (6e869c8)
- demo: modernize code (756dc27)
- GitHub Actions: Node.js 22 (9ba93ff)
- nominatim: use shorthand property for htmlTemplate (04031ac)
- tsc: --skipLibCheck (4edf909)
3.0.1
3.0.0
3.0.0 (2024-12-15)
- GitHub Actions: Node.js 20.x (89bb618)
- Migrate from callbacks to async-await (6f7ccf5)
- Migrate from XMLHttpRequest to fetch API (fe751be)
- Migrate to URLSearchParams (fa13fcb)
- package: Migrate build to vite (0e6ed14)
- package: build types using tsc (2211a73)
- Add response types to geocoders (2232046)
- npm i --lockfile-version 3 --frozen-lockfile (471932c)
- Run Prettier on codebase (fbcdad6)
- Use a more precise input type (#331) (44cd093), closes #331
- bing: deprecated notice (ce88eab)
- bing: fix serviceUrl (053e5a2)
- bing: replace jsonp with AJAX (09f6a4e)
- ESLint: prefer-arrow-callback (b41a7fb)
- build: remove bower.json file (6259608)
- package: npm audit fix (5032da9)
- package: update devDependencies (dee11f3)
- tests: Migrate unit tests to Vitest (d997740)
- fix: bingMaps uri (#342) (be056ab), closes #342
Migrate from callbacks to Promise
-geocoder.geocode(query, callback);
+geocoder.geocode(query).then(callback);
-geocoder.reverse(latlng, scale, callback);
+geocoder.reverse(latlng, scale).then(callback);
Migrate from callbacks to async-await
-geocoder.geocode(query, callback);
+const results = await geocoder.geocode(query);
-geocoder.reverse(latlng, scale, callback);
+const results = await geocoder.reverse(latlng, scale);
2.4.0
2.3.0
2.2.0
2.1.0
2.0.1
2.0.0
2.0.0 (2020-11-28)
- Migrate to TypeScript
- Generate API documentation using TypeDoc (756ae93)
- Harmonize options constructor for all geocoders (e4659b5)
- Use geocodingQueryParams in all geocoders (84d764a)
- Use reverseQueryParams in all geocoders (9240331)
- Replace PNG and GIF files with SVG URIs (#298) (1ec9ab5), closes #298
- photon: update to photon.komoot.io (e4b3082)
- mapbox: add location properties to reverse geocode (#286) (3398c8c), closes #286
- demos: add unpkg.com demo (2418679)
- demos: add esbuild demo (2e0553f)
- demos: upgrade to webpack 5 (b600cad)
- tests: Migrate unit tests to Jest (5b64c34)
- package: Enable compressed-size-action for PRs (fdf6df0), closes #283
- package: Enable GitHub Actions (c98745e)
- package: Migrate build to microbundle (fc0eff9)
BREAKING CHANGE
- All geocoders accept a single
options
object as constructor parameter. Theoptions
objects extends the interfaceGeocoderOptions
. TheapiKey
string constructors of some geocoders have been removed. reverse
now returns bbox in field calledbbox
(previouslybounds
)