react-instantsearch 7.15.5 → 7.15.6

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.
@@ -7,7 +7,7 @@
7
7
 
8
8
  var React__default = 'default' in React ? React['default'] : React;
9
9
 
10
- var version = '7.15.5';
10
+ var version = '7.15.6';
11
11
 
12
12
  // Copyright Joyent, Inc. and other Node contributors.
13
13
  //
@@ -4598,11 +4598,13 @@
4598
4598
  });
4599
4599
  }
4600
4600
 
4601
- function sortAndMergeRecommendations(results) {
4601
+ function sortAndMergeRecommendations(objectIDs, results) {
4602
4602
  var indexTracker = {};
4603
4603
 
4604
4604
  results.forEach(function (hits) {
4605
4605
  hits.forEach(function (hit, index) {
4606
+ if (objectIDs.includes(hit.objectID)) return;
4607
+
4606
4608
  if (!indexTracker[hit.objectID]) {
4607
4609
  indexTracker[hit.objectID] = { indexSum: index, count: 1 };
4608
4610
  } else {
@@ -4632,7 +4634,7 @@
4632
4634
 
4633
4635
  var sortAndMergeRecommendations_1 = sortAndMergeRecommendations;
4634
4636
 
4635
- var version$1 = '3.24.3';
4637
+ var version$1 = '3.25.0';
4636
4638
 
4637
4639
  var escapeFacetValue$3 = escapeFacetValue_1.escapeFacetValue;
4638
4640
 
@@ -6553,6 +6555,7 @@
6553
6555
  }
6554
6556
  cache[id] = Object.assign({}, firstResult, {
6555
6557
  hits: sortAndMergeRecommendations_1(
6558
+ ids,
6556
6559
  indices.map(function (idx) {
6557
6560
  return content.results[idx].hits;
6558
6561
  })
@@ -13430,7 +13433,7 @@
13430
13433
  };
13431
13434
  }
13432
13435
 
13433
- var version$3 = '4.78.1';
13436
+ var version$3 = '4.78.2';
13434
13437
 
13435
13438
  function _typeof$q(o) {
13436
13439
  "@babel/helpers - typeof";