instantsearch.js 4.74.0 → 4.74.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  InstantSearch.js is a vanilla JavaScript library that lets you create an instant-search result experience using [Algolia][algolia-website]’s search API. It is part of the InstantSearch family:
14
14
 
15
- **InstantSearch.js** | [React InstantSearch][instantsearch-github] | [Vue InstantSearch][instantsearch-github] | [Angular InstantSearch][instantsearch-angular-github] | [React InstantSearch Native][instantsearch-github] | [InstantSearch Android][instantsearch-android-github] | [InstantSearch iOS][instantsearch-ios-github]
15
+ **InstantSearch.js** | [React InstantSearch][instantsearch-github] | [Vue InstantSearch][instantsearch-github] | [React InstantSearch Native][instantsearch-github] | [InstantSearch Android][instantsearch-android-github] | [InstantSearch iOS][instantsearch-ios-github]
16
16
 
17
17
  <details>
18
18
  <summary><strong>Table of contents</strong></summary>
@@ -181,7 +181,6 @@ InstantSearch.js is [MIT licensed][license-url].
181
181
  [instantsearch-github]: https://github.com/algolia/instantsearch/
182
182
  [instantsearch-android-github]: https://github.com/algolia/instantsearch-android
183
183
  [instantsearch-ios-github]: https://github.com/algolia/instantsearch-ios
184
- [instantsearch-angular-github]: https://github.com/algolia/angular-instantsearch
185
184
  [contributing-bugreport]: https://github.com/algolia/instantsearch/issues/new?template=BUG_REPORT.yml&labels=triage,Library%3A%20InstantSearch.js
186
185
  [contributing-featurerequest]: https://github.com/algolia/instantsearch/discussions/new?category=ideas&labels=triage,Library%3A%20InstantSearch.js&title=Feature%20request%3A%20
187
186
  [contributing-newissue]: https://github.com/algolia/instantsearch/issues/new?labels=triage,Library%3A%20InstantSearch.js
@@ -27,7 +27,7 @@ function highlight(_ref) {
27
27
  _ref2$value = _ref2.value,
28
28
  attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
29
29
 
30
- // cx is not used, since it would be bundled as a dependency for Vue & Angular
30
+ // cx is not used, since it would be bundled as a dependency for Vue
31
31
  var className = suit({
32
32
  descendantName: 'highlighted'
33
33
  }) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
@@ -27,7 +27,7 @@ function reverseHighlight(_ref) {
27
27
  _ref2$value = _ref2.value,
28
28
  attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
29
29
 
30
- // cx is not used, since it would be bundled as a dependency for Vue & Angular
30
+ // cx is not used, since it would be bundled as a dependency for Vue
31
31
  var className = suit({
32
32
  descendantName: 'highlighted'
33
33
  }) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
@@ -27,7 +27,7 @@ function reverseSnippet(_ref) {
27
27
  _ref2$value = _ref2.value,
28
28
  attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
29
29
 
30
- // cx is not used, since it would be bundled as a dependency for Vue & Angular
30
+ // cx is not used, since it would be bundled as a dependency for Vue
31
31
  var className = suit({
32
32
  descendantName: 'highlighted'
33
33
  }) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
@@ -27,7 +27,7 @@ function snippet(_ref) {
27
27
  _ref2$value = _ref2.value,
28
28
  attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
29
29
 
30
- // cx is not used, since it would be bundled as a dependency for Vue & Angular
30
+ // cx is not used, since it would be bundled as a dependency for Vue
31
31
  var className = suit({
32
32
  descendantName: 'highlighted'
33
33
  }) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
@@ -59,7 +59,7 @@ function hydrateSearchClient(client, results) {
59
59
  // search on it first.
60
60
  if ('transporter' in client && !client._cacheHydrated) {
61
61
  client._cacheHydrated = true;
62
- var baseMethod = client.search;
62
+ var baseMethod = client.search.bind(client);
63
63
  // @ts-ignore wanting type checks for v3 on this would make this too complex
64
64
  client.search = function (requests) {
65
65
  for (var _len = arguments.length, methodArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = '4.74.0';
7
+ var _default = '4.74.1';
8
8
  exports.default = _default;
@@ -1,4 +1,4 @@
1
- /*! InstantSearch.js 4.74.0 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
1
+ /*! InstantSearch.js 4.74.1 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -1474,7 +1474,7 @@
1474
1474
  // search on it first.
1475
1475
  if ('transporter' in client && !client._cacheHydrated) {
1476
1476
  client._cacheHydrated = true;
1477
- var baseMethod = client.search;
1477
+ var baseMethod = client.search.bind(client);
1478
1478
  // @ts-ignore wanting type checks for v3 on this would make this too complex
1479
1479
  client.search = function (requests) {
1480
1480
  for (var _len = arguments.length, methodArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
@@ -6484,7 +6484,7 @@
6484
6484
 
6485
6485
  var sortAndMergeRecommendations_1 = sortAndMergeRecommendations;
6486
6486
 
6487
- var version = '3.22.4';
6487
+ var version = '3.22.5';
6488
6488
 
6489
6489
  var escapeFacetValue$4 = escapeFacetValue_1.escapeFacetValue;
6490
6490
 
@@ -6854,7 +6854,10 @@
6854
6854
  maxFacetHits,
6855
6855
  userState
6856
6856
  ) {
6857
- var clientHasSFFV = typeof this.client.searchForFacetValues === 'function';
6857
+ var clientHasSFFV =
6858
+ typeof this.client.searchForFacetValues === 'function' &&
6859
+ // v5 has a wrong sffv signature
6860
+ typeof this.client.searchForFacets !== 'function';
6858
6861
  var clientHasInitIndex = typeof this.client.initIndex === 'function';
6859
6862
  if (
6860
6863
  !clientHasSFFV &&
@@ -13550,7 +13553,7 @@
13550
13553
  _ref2$value = _ref2.value,
13551
13554
  attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
13552
13555
 
13553
- // cx is not used, since it would be bundled as a dependency for Vue & Angular
13556
+ // cx is not used, since it would be bundled as a dependency for Vue
13554
13557
  var className = suit({
13555
13558
  descendantName: 'highlighted'
13556
13559
  }) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
@@ -13578,7 +13581,7 @@
13578
13581
  _ref2$value = _ref2.value,
13579
13582
  attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
13580
13583
 
13581
- // cx is not used, since it would be bundled as a dependency for Vue & Angular
13584
+ // cx is not used, since it would be bundled as a dependency for Vue
13582
13585
  var className = suit$1({
13583
13586
  descendantName: 'highlighted'
13584
13587
  }) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
@@ -13607,7 +13610,7 @@
13607
13610
  _ref2$value = _ref2.value,
13608
13611
  attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
13609
13612
 
13610
- // cx is not used, since it would be bundled as a dependency for Vue & Angular
13613
+ // cx is not used, since it would be bundled as a dependency for Vue
13611
13614
  var className = suit$2({
13612
13615
  descendantName: 'highlighted'
13613
13616
  }) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
@@ -13635,7 +13638,7 @@
13635
13638
  _ref2$value = _ref2.value,
13636
13639
  attributeValue = _ref2$value === void 0 ? '' : _ref2$value;
13637
13640
 
13638
- // cx is not used, since it would be bundled as a dependency for Vue & Angular
13641
+ // cx is not used, since it would be bundled as a dependency for Vue
13639
13642
  var className = suit$3({
13640
13643
  descendantName: 'highlighted'
13641
13644
  }) + (cssClasses.highlighted ? " ".concat(cssClasses.highlighted) : '');
@@ -16012,7 +16015,7 @@
16012
16015
  };
16013
16016
  }
16014
16017
 
16015
- var version$1 = '4.74.0';
16018
+ var version$1 = '4.74.1';
16016
16019
 
16017
16020
  var withUsage$v = createDocumentationMessageGenerator({
16018
16021
  name: 'instantsearch'