Skip to content

v2.0.0

Choose a tag to compare

@noclat noclat released this 15 Aug 05:04
· 31 commits to main since this release
90e8bb4

What's Changed

🎉 You can now search in the whole world!

⚠️ BREAKING CHANGES

Component properties

  • Renamed useGeolocation to geolocation.
  • Added onCountryMode handler.
  • Added onCountryChange handler.
  • Updated options.

Options

  • countries is no longer required!
  • Changed countryAutoFill default to true.
  • Added countrySelect (default: true) to disable country selection mode when countries is not set.
  • Moved className, offset, strategy, flip under panel object.
  • Moved noResults to format.noResults.
  • Moved and renamed formatValue to format.value.
  • Removed template.
  • Added format.sub to replace template–it can only control the sub text of a suggestion.
  • Added format.icon and format.flag to help customize icons/flags.
  • Added format.applySuggestion and format.cancel to help customize text labels/ARIA-labels.

👉 Read PlaceKit Autocomplete v2 release notes for all changes.

Full Changelog: v1.6.1...v2.0.0