Releases: algolia/algoliasearch-client-swift
Releases · algolia/algoliasearch-client-swift
4.8.1
Miscellaneous changes
- [offline] Better error reporting when building offline indices
4.8
New features
- Compatibility with Swift 3.1. (#294) Note: Swift 3.1 being source-compatible with Swift 3.0, version 4.7 was already compatible out of the box, but this one eliminates a few compile-time warnings.
- Support new search parameters in the
Queryclass: - Properties of the query classes (
AbstractQueryand its derivates) are now KVO-observable (#339) - Add an option to choose a custom queue for completion handlers (#334). By default, the main queue is used.
Other changes
- The
userAgentsproperty (managing theUser-AgentHTTP header) is now a static property of theClientclass. This should ease its use by other libraries, most notably InstantSearch Core. - [offline] Unify
IndexandOfflineIndexunder a newSearchableprotocol. This makes possible generic algorithms that work with any kind of index (MirroredIndexbeing a subclass ofIndexalready). - Shorter README. The complete reference is now only on https://www.algolia.com/doc/api-client/swift/.
4.7
New features
- Support
facetingAfterDistinctquery parameter - Support
maxFacetHitsparameter when searching for facet values - [offline] Support offline search for facet values
Bug fixes
- (#285) Fix race condition when searching while activating mirrored mode
Other changes
- Update URL of generated reference documentation
4.6.1
Bug fixes
- [offline] Fix reachability handling in
onlineOnlyrequest strategy
4.6
New features
- [offline] Support manual building of local indices (
MirroredIndexandOfflineIndex) - [offline] Support fallback logic when getting individual objects
Bug fixes
- (#168) Use network reachability to decide whether to perform online requests
- [offline] Fix race condition in instantiation of local index
4.5
Note: This new version brings a major improvement in the request retry logic (fallback mechanism used when one or more API hosts are down or unreachable). For that reason, an upgrade to this or a later version is strongly recommended for all users of this API Client.
New features
- (#158) Support the
responseFieldsquery parameter
Bug fixes
- (#157) New retry logic: stateful host statuses. This should help largely minimize the impact of DNS resolution failures or other long-lasting network problems. Note that the timeout for statuses can be controlled via the
AbstractClient.hostStatusTimeoutproperty.
Other changes
- Support more than one polygon in the
insidePolygonquery parameter. Warning: This breaks backward-compatibility for this specific parameter.
4.4
New features
- (#140) Support searching for facet values (
Index.searchForFacetValues(...)) - New method
AbstractQuery.clear()to remove all parameters
Other changes
- Open the
Queryclass (along with some of its methods) to allow subclassing in other libraries - Make available as a static utility the method to build a query string from a dictionary of parameters (
AbstractQuery.build(build(parameters:))
4.3
New features
- (#152) Add support for Algolia Places
4.2
New features
- Add support for a list of languages in the
ignorePluralsquery parameter. Warning: This breaks backward-compatibility for this specific parameter.
Bug fixes
- (#144) Fix compilation warning with Xcode 8.1
Other changes
- (Objective-C bridging) Switch back to only one
Queryclass. Note: This change is backward-compatible at the source level, provided that:- Objective-C code did not reference the
BaseQuerytype explicitly - Swift code did not reference the
_objc_Querytype explicitly
- Objective-C code did not reference the
4.1
New features
- Support the
createIfNotExistsparameter in partial updates - [offline] Offline-only indices
Bug fixes
- (#134) Use new format version when retrieving index settings
- Fix asynchronous dispatch of some completion handlers (were called outside the main thread)
Other changes
- Rename
attributesToIndextosearchableAttributes