instantsearch.js 4.56.1 → 4.56.2

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.
@@ -165,7 +165,7 @@ var connectInfiniteHits = function connectInfiniteHits(renderFn) {
165
165
  });
166
166
  isFirstPage = state.page === undefined || getFirstReceivedPage(state, cachedHits) === 0;
167
167
  } else {
168
- var _results$disjunctiveF, _results$facets, _results$hierarchical;
168
+ var _state$disjunctiveFac, _state$hierarchicalFa;
169
169
  var _state$page3 = state.page,
170
170
  _page = _state$page3 === void 0 ? 0 : _state$page3;
171
171
  if (escapeHTML && results.hits.length > 0) {
@@ -189,7 +189,9 @@ var connectInfiniteHits = function connectInfiniteHits(renderFn) {
189
189
  hasDynamicWidgets = true;
190
190
  }
191
191
  });
192
- var hasNoFacets = !((_results$disjunctiveF = results.disjunctiveFacets) !== null && _results$disjunctiveF !== void 0 && _results$disjunctiveF.length) && !((_results$facets = results.facets) !== null && _results$facets !== void 0 && _results$facets.length) && !((_results$hierarchical = results.hierarchicalFacets) !== null && _results$hierarchical !== void 0 && _results$hierarchical.length);
192
+ var hasNoFacets = !((_state$disjunctiveFac = state.disjunctiveFacets) !== null && _state$disjunctiveFac !== void 0 && _state$disjunctiveFac.length) && !(state.facets || []).filter(function (f) {
193
+ return f !== '*';
194
+ }).length && !((_state$hierarchicalFa = state.hierarchicalFacets) !== null && _state$hierarchicalFa !== void 0 && _state$hierarchicalFa.length);
193
195
  if (cachedHits[_page] === undefined && !results.__isArtificial && instantSearchInstance.status === 'idle' && !(hasDynamicWidgets && hasNoFacets)) {
194
196
  cachedHits[_page] = transformedHits;
195
197
  cache.write({
@@ -1,2 +1,2 @@
1
- declare const _default: "4.56.1";
1
+ declare const _default: "4.56.2";
2
2
  export default _default;
package/es/lib/version.js CHANGED
@@ -1 +1 @@
1
- export default '4.56.1';
1
+ export default '4.56.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instantsearch.js",
3
- "version": "4.56.1",
3
+ "version": "4.56.2",
4
4
  "description": "InstantSearch.js is a JavaScript library for building performant and instant search experiences with Algolia.",
5
5
  "homepage": "https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/",
6
6
  "types": "es/index.d.ts",
@@ -55,9 +55,9 @@
55
55
  "version": "./scripts/version/update-version.js"
56
56
  },
57
57
  "devDependencies": {
58
- "@instantsearch/mocks": "1.14.0",
59
- "@instantsearch/tests": "1.14.0",
60
- "@instantsearch/testutils": "1.3.0",
58
+ "@instantsearch/mocks": "1.15.0",
59
+ "@instantsearch/tests": "1.15.0",
60
+ "@instantsearch/testutils": "1.4.0",
61
61
  "@storybook/html": "5.3.9",
62
62
  "@types/scriptjs": "0.0.2",
63
63
  "algoliasearch": "4.14.3",
@@ -65,5 +65,5 @@
65
65
  "scriptjs": "2.5.9",
66
66
  "webpack": "4.41.5"
67
67
  },
68
- "gitHead": "f224d502edb8cf119213cb9cd6e557dc03180521"
68
+ "gitHead": "aa19955aae2c79b93d5f952832d366e8abff9886"
69
69
  }