> For the complete documentation index, see [llms.txt](https://docs.mapbox.com/mapbox-search-js/ja/llms.txt)

# Changelog

## 1.6.0

### 🐞 Bug fixes

-   Abstracts Map usage to an interface to remove the hard dependency on `mapbox-gl`

## 1.5.0

### ✨ Features

-   Improved support and testing for React 16-19

### 🐞 Bug fixes

-   Fixes a bug in which clicking on a suggestion did not register if the mouse key was held down too long
-   Fixes type generation for React components across React versions
-   Fixes a bug to allow handling custom element attributes without an explicit value

## 1.4.0

### ✨ Features

-   Bubbles up a "blur" event to the user when focus is removed from the SearchBox or Geocoder components

### 🐞 Bug fixes

-   Fixes an issue with browser autofill behavior that had caused web components to hang indefinitely

## 1.3.0

### 🐞 Bug fixes

-   Accessibility updates to remove selection behavior on Tab key press and persist listbox visibility while changing focus to Clear button
-   Remove global-scope CSS selector

## 1.2.0

### ✨ Features

-   Adds `flyTo` component option to control the map `flyTo` behavior when selecting a suggestion
-   Adds `customSearch` component option to supplement Mapbox results with client-provided results

## 1.1.0

### ✨ Features

-   Enables reverse searches as part of interactive Search Box sessions with a new `allowReverse` option
-   Adds a `flipCoordinates` option for use with either Geocoder or SearchBox components

## 1.0.0

### ✨ Features

-   First general availability release (!) 🚀
-   Included frameworks:
    -   Search JS Core - high-level API wrappers to call the [Mapbox Search Service](https://docs.mapbox.com/api/search/)
    -   Search JS Web - UI components on top of the Core library
    -   Search JS React - React hooks and wrappers for Search JS Web components
-   Included Search services:
    -   [Search Box](https://www.mapbox.com/search-box)
    -   [Address Autofill](https://www.mapbox.com/address-autofill)
    -   [Geocoding](https://www.mapbox.com/geocoding)
-   Documentation is available at [https://docs.mapbox.com/mapbox-search-js/guides/](https://docs.mapbox.com/mapbox-search-js/guides/)

## 1.0.0-beta.25

### 🐞 Bug fixes

-   Fixes a bug in which a custom language option in `SearchBoxCore` was not getting passed through the `retrieve` method

## 1.0.0-beta.24

### ✨ Features

-   Adds event manager and improves session token handling

## 1.0.0-beta.22

### ✨ Features

-   Bubbles up a "clear" event to the user when the SearchBox or Geocoder components have had text cleared

### 🐞 Bug fixes

-   Fixes a bug in which the React components (Geocoder, SearchBox) without a value prop would show the string "undefined" in the input element
-   Fixes a bug to prevent the "Clear" icon button from submitting a form
-   Enables listbox visibility while in fullscreen mode

## 1.0.0-beta.21

### ✨ Features

-   Enables secondary addresses (units) for Address Autofill

## 1.0.0-beta.20

### ✨ Features

-   Adds core, web, and React packages for the Geocoding v6 API

## 1.0.0-beta.19

### 🐞 Bug fixes

-   Allows having a placeholder `<option>` in a country `<select>` when autofilling an HTML form with Address Autofill

## 1.0.0-beta.18

### ✨ Features

-   Adds option property to allow disabling of street suggestions in Address Autofill

## 1.0.0-beta.17

### ✨ Features

-   New instance properties `placeholder`, `marker`, and `mapboxgl` for SearchBox component (web and React versions) enabling improved map interactions and customization
-   New `search` instance method for SearchBox to programmatically use the component

-   General SearchBox UI improvements, including icons, clear button

### 🐞 Bug fixes

-   Fixes a bug affecting screen readers when multiple listbox controllers were active
-   Fixes the rendered second line text for SearchBox suggestions to include the street address for POIs

## 1.0.0-beta.16

### ✨ Features

-   Adds `useSearchBoxCore` hook to react library
-   Enables Search Box web and react components for public preview via the Search Box API
-   Adds `/reverse` and `/category` endpoints to `SearchBoxCore`

### ⚠️ Breaking changes

-   Removes `MapboxSearch` and `useMapboxSearch` from the core and react libraries, respectively
-   Migrates Search Box web and react components to `SearchBoxCore` and the Search Box API
-   Renames several classes and types while maintaining aliases for backward compatibility

## 1.0.0-beta.15

### ✨ Features

-   Adds `SearchBoxCore` class working with Search Box API
-   Provides a way to set buttons text for minimap component

### 🐞 Bug fixes

-   Suppress password managers extensions popups in autofill

## 1.0.0-beta.14

### ✨ Features

-   Improved WAI-ARIA compliance to enable better screen reader compatibility and accessibility features within Autofill and Search Box
-   Adds new `interceptSearch` callback option to conditionally override or augment input text
-   Enables street-first searches in Autofill for better compatibility with international address formats
-   Adds feature type icons to the Autofill listbox UI
-   Adds new `browserAutofillEnabled` option for the Autofill component, plus adds behavior to attempt to suppress browser autocomplete popups while Mapbox suggestions are shown (works in Chrome browsers)

### ⚠️ Breaking changes

-   The Autofill web component will begin suggesting results when the search string is at least three characters in length

### 🐞 Bug fixes

-   Fixes a bug causing `onchange` exceptions in the React `SearchBox` component
-   Fixes a bug that resulted in duplicate DOM node `id` attribute values when using the Autofill or SearchBox components, which caused unstable behavior in some development application frameworks such as Phoenix
-   Fixes an issue in Autofill where hitting the `enter` key while no suggestions are available would throw an error

## 1.0.0-beta.13

### ✨ Features

-   Enables custom text and visibility of the footer for confirmation and minimap components

## 1.0.0-beta.12

### ⚠️ Breaking changes

-   Removes automatic fetch polyfilling from the Core library when run in a Node.js environment

### 🐞 Bug fixes

-   Fixes an issue with build warnings in webpack and create-react-app applications

## 1.0.0-beta.11

### ⚠️ Breaking changes

-   Renames `AutofillMatchCode` and `AutofillMatchCodeConfidence` types to `MatchCode` and `MatchCodeConfidence` respectively
-   Removes string type for the `searchText` argument for the `MapboxAutofill.retrieve` method

### ✨ Features

-   Exposes popover configuration options for the results list positioning and behavior

### 🐞 Bug fixes

-   Exposes missing documentation for `AutofillCollectionOptions` and `skipConfirmModal`
-   Exposes missing documentation for `AutofillValueMap` type

## 1.0.0-beta.10

### ✨ Features

-   Enables detection of browser autofill events within an Autofill and confirmation flow

### 🐞 Bug fixes

-   Fixes Minimap image and marker positioning issues on resizing events

## 1.0.0-beta.9

### ✨ Features

-   Enables customizing the map style and theme for a Minimap displayed within a confirmation dialog

### 🐞 Bug fixes

-   Fixes the suggestion display text for international addresses
-   Fixes a CSS bug which caused an unintentional page margin and horizontal scrollbar
-   Fixes display issue for the confirmation modal on mobile devices

## 1.0.0-beta.7

### ⚠️ Breaking changes

-   Update API for using "Confirm Address" feature; see `confirmAddress`
-   Update API for using "Autofill" function, including additional event hooks

### ✨ Features

-   Expose utility functions for accessing address values from form fields
-   Enable global state to manage access token

### 🐞 Bug fixes

-   Bug fixes to improve API consistency and component stability

## 1.0.0-beta.6

-   Add `@mapbox/search-js-react` 🚀
-   Expose more interfaces within `index.d.ts`