Releases: yext/search-headless-react
Releases · yext/search-headless-react
v2.4.1
v2.4.0
v2.3.2
v2.3.0
v2.2.0
Version 2.2.0
Changes
Support the EU Cloud region
- We introduced two new configuration options: cloudRegion and environment. The search endpoints are hosted in both the US and in Europe, and the cloudRegion config option determines which endpoints are used. The environment config option supports both Prod and Sandbox. The SandboxEndpoints object is now deprecated, and the environment config option should be used instead to specify the sandbox environment.
v2.1.0
v2.0.1
v2.0.0
Version 2.0.0
Breaking Changes
- Upgraded search-headless dependency to V2. This means re-exported interfaces related to static filters and direct answers stems from search-headless V1 have been changed or removed in headless-react V2.
- for more details, see the breaking changes listed in V2 release notes and documentation of search-headless
SearchHeadlessProvider
now takes in aSearchHeadless
instance instead of aSearchConfig
object.SearchHeadlessProvider
will also no longer set vertical key, session tracking, and session id for theSearchHeadless
instance. Users will need to create and initialize a Headless instance themselves. For more context, this change is made to prevent potential memory leaks, per Redux's recommendation that redux store (i.e.SearchHeadless
instance) should not be instantiated within a render function. (#156)- All exports marked as
@deprecated
in previous publish as part of the rebranding process, as well assubscribeToStateUpdates
, is now removed in V2 (#153 )- for more details, the deprecated identifiers are listed in v1.3 release notes
v1.4.0
Version 1.4.0
Changes
- Updated to the latest version of
search-headless
(v1.4.0) to introduce new features insearch-core
.
v1.3.0
Version 1.3.0
@yext/answers-headless-react
is now @yext/search-headless-react
! This means that much of the answers
terminology is now deprecated and have been replaced by new search
terms.
Changes
- The following identifiers were renamed in (#143):
AnswersHeadlessContext
→SearchHeadlessContext
AnswersActions
→SearchActions
AnswersUtilities
→SearchUtilities
useAnswersActions
→useSearchActions
useAnswersState
→useSearchState
useAnswersUtilities
→useSearchUtilities
AnswersHeadlessProvider
→SearchHeadlessProvider
- Additionally, direct exports from what was previously
@yext/answers-headless
have been replaced by their@yext/search-headless
counterparts:answersUtilities
→searchUtilities
provideAnswersHeadless
→provideHeadless
AnswersHeadless
→SearchHeadless
AnswersConfig
→SearchConfig
AnswersConfigWithToken
→SearchConfigWithToken
AnswersConfigWithApiKey
→SearchConfigWithApiKey
AnswersCore
→SearchCore
AnswersError
→SearchError
AnswersRequest
→SearchRequest
BaseAnswersConfig
→BaseSearchConfig
- Finally,
subscribeToStateUpdates
was deprecated in (#142)