react-instantsearch-core 7.28.0 → 7.29.0

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.
@@ -17,7 +17,7 @@ var _type_of = require("@swc/helpers/_/_type_of");
17
17
  * It adds a 3rd argument `compare(a, b)` that lets execute custom logic to
18
18
  * compare values.
19
19
  * We use it to skip comparing function references.
20
- */ // eslint-disable-next-line @typescript-eslint/unbound-method
20
+ */ // eslint-disable-next-line typescript/unbound-method
21
21
  var has = Object.prototype.hasOwnProperty;
22
22
  function dequal(foo, bar, compare) {
23
23
  // start of custom implementation
@@ -39,7 +39,7 @@ function dequal(foo, bar, compare) {
39
39
  }
40
40
  if (!ctor || (typeof foo === "undefined" ? "undefined" : _type_of._(foo)) === 'object') {
41
41
  len = 0;
42
- // eslint-disable-next-line guard-for-in, no-restricted-syntax
42
+ // eslint-disable-next-line guard-for-in, instantsearch/no-for-in
43
43
  for(ctor in foo){
44
44
  if (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;
45
45
  if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor], compare)) return false;
@@ -9,4 +9,4 @@ Object.defineProperty(exports, "default", {
9
9
  return _default;
10
10
  }
11
11
  });
12
- var _default = '7.28.0';
12
+ var _default = '7.29.0';
@@ -1,4 +1,4 @@
1
- import { _ } from '@swc/helpers/cjs/_object_spread.cjs';
1
+ import { _ } from '@swc/helpers/esm/_object_spread.js';
2
2
  import { useConfigure } from '../connectors/useConfigure.js';
3
3
 
4
4
  function Configure(props) {
@@ -1,5 +1,5 @@
1
- import { _ } from '@swc/helpers/cjs/_object_without_properties.cjs';
2
- import { _ as _$1 } from '@swc/helpers/cjs/_type_of.cjs';
1
+ import { _ } from '@swc/helpers/esm/_object_without_properties.js';
2
+ import { _ as _$1 } from '@swc/helpers/esm/_type_of.js';
3
3
  import React__default, { Fragment } from 'react';
4
4
  import { useDynamicWidgets } from '../connectors/useDynamicWidgets.js';
5
5
  import { invariant } from '../lib/invariant.js';
@@ -1,4 +1,4 @@
1
- import { _ } from '@swc/helpers/cjs/_object_without_properties.cjs';
1
+ import { _ } from '@swc/helpers/esm/_object_without_properties.js';
2
2
  import React__default from 'react';
3
3
  import { IndexContext } from '../lib/IndexContext.js';
4
4
  import { useIndex } from '../lib/useIndex.js';
@@ -1,4 +1,4 @@
1
- import { _ } from '@swc/helpers/cjs/_object_without_properties.cjs';
1
+ import { _ } from '@swc/helpers/esm/_object_without_properties.js';
2
2
  import React__default, { useEffect } from 'react';
3
3
  import { IndexContext } from '../lib/IndexContext.js';
4
4
  import { InstantSearchContext } from '../lib/InstantSearchContext.js';
@@ -1,6 +1,6 @@
1
- import { _ as _$2 } from '@swc/helpers/cjs/_object_spread.cjs';
2
- import { _ as _$1 } from '@swc/helpers/cjs/_object_spread_props.cjs';
3
- import { _ } from '@swc/helpers/cjs/_object_without_properties.cjs';
1
+ import { _ as _$2 } from '@swc/helpers/esm/_object_spread.js';
2
+ import { _ as _$1 } from '@swc/helpers/esm/_object_spread_props.js';
3
+ import { _ } from '@swc/helpers/esm/_object_without_properties.js';
4
4
  import React__default from 'react';
5
5
  import { InstantSearchSSRContext } from '../lib/InstantSearchSSRContext.js';
6
6
 
@@ -1,5 +1,5 @@
1
- import { _ as _$1 } from '@swc/helpers/cjs/_object_spread.cjs';
2
- import { _ } from '@swc/helpers/cjs/_object_spread_props.cjs';
1
+ import { _ as _$1 } from '@swc/helpers/esm/_object_spread.js';
2
+ import { _ } from '@swc/helpers/esm/_object_spread_props.js';
3
3
  import connectDynamicWidgets from 'instantsearch.js/es/connectors/dynamic-widgets/connectDynamicWidgets.js';
4
4
  import { useConnector } from '../hooks/useConnector.js';
5
5
 
@@ -1,7 +1,7 @@
1
- import { _ as _$3 } from '@swc/helpers/cjs/_object_spread.cjs';
2
- import { _ as _$2 } from '@swc/helpers/cjs/_object_without_properties.cjs';
3
- import { _ as _$1 } from '@swc/helpers/cjs/_sliced_to_array.cjs';
4
- import { _ } from '@swc/helpers/cjs/_to_array.cjs';
1
+ import { _ as _$3 } from '@swc/helpers/esm/_object_spread.js';
2
+ import { _ as _$2 } from '@swc/helpers/esm/_object_without_properties.js';
3
+ import { _ as _$1 } from '@swc/helpers/esm/_sliced_to_array.js';
4
+ import { _ } from '@swc/helpers/esm/_to_array.js';
5
5
  import { useRef, useMemo, useState } from 'react';
6
6
  import { dequal } from '../lib/dequal.js';
7
7
  import { getIndexSearchResults } from '../lib/getIndexSearchResults.js';
@@ -1,4 +1,4 @@
1
- import { _ } from '@swc/helpers/cjs/_to_consumable_array.cjs';
1
+ import { _ } from '@swc/helpers/esm/_to_consumable_array.js';
2
2
  import { useCallback } from 'react';
3
3
  import { useInstantSearchContext } from '../lib/useInstantSearchContext.js';
4
4
  import { useIsomorphicLayoutEffect } from '../lib/useIsomorphicLayoutEffect.js';
@@ -1,4 +1,4 @@
1
- import { _ } from '@swc/helpers/cjs/_type_of.cjs';
1
+ import { _ } from '@swc/helpers/esm/_type_of.js';
2
2
 
3
3
  /* eslint-disable complexity */ /*
4
4
  * Code taken from dequal/lite v2.0.0
@@ -7,7 +7,7 @@ import { _ } from '@swc/helpers/cjs/_type_of.cjs';
7
7
  * It adds a 3rd argument `compare(a, b)` that lets execute custom logic to
8
8
  * compare values.
9
9
  * We use it to skip comparing function references.
10
- */ // eslint-disable-next-line @typescript-eslint/unbound-method
10
+ */ // eslint-disable-next-line typescript/unbound-method
11
11
  var has = Object.prototype.hasOwnProperty;
12
12
  function dequal(foo, bar, compare) {
13
13
  // start of custom implementation
@@ -29,7 +29,7 @@ function dequal(foo, bar, compare) {
29
29
  }
30
30
  if (!ctor || (typeof foo === "undefined" ? "undefined" : _(foo)) === 'object') {
31
31
  len = 0;
32
- // eslint-disable-next-line guard-for-in, no-restricted-syntax
32
+ // eslint-disable-next-line guard-for-in, instantsearch/no-for-in
33
33
  for(ctor in foo){
34
34
  if (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;
35
35
  if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor], compare)) return false;
@@ -1,5 +1,5 @@
1
- import { _ as _$1 } from '@swc/helpers/cjs/_object_spread.cjs';
2
- import { _ } from '@swc/helpers/cjs/_object_spread_props.cjs';
1
+ import { _ as _$1 } from '@swc/helpers/esm/_object_spread.js';
2
+ import { _ } from '@swc/helpers/esm/_object_spread_props.js';
3
3
  import { createSearchResults } from './createSearchResults.js';
4
4
 
5
5
  function getIndexSearchResults(indexWidget) {
@@ -1,4 +1,4 @@
1
- import { _ } from '@swc/helpers/cjs/_sliced_to_array.cjs';
1
+ import { _ } from '@swc/helpers/esm/_sliced_to_array.js';
2
2
  import { useReducer } from 'react';
3
3
 
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { _ as _$1 } from '@swc/helpers/cjs/_object_spread.cjs';
2
- import { _ } from '@swc/helpers/cjs/_to_consumable_array.cjs';
1
+ import { _ as _$1 } from '@swc/helpers/esm/_object_spread.js';
2
+ import { _ } from '@swc/helpers/esm/_to_consumable_array.js';
3
3
  import InstantSearch, { INSTANTSEARCH_FUTURE_DEFAULTS } from 'instantsearch.js/es/lib/InstantSearch.js';
4
4
  import { useRef, useCallback, version } from 'react';
5
5
  import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js';
@@ -1,4 +1,4 @@
1
- import { _ } from '@swc/helpers/cjs/_sliced_to_array.cjs';
1
+ import { _ } from '@swc/helpers/esm/_sliced_to_array.js';
2
2
  import { isIndexWidget } from 'instantsearch.js/es/lib/utils/index.js';
3
3
  import { useState, useEffect } from 'react';
4
4
  import { getIndexSearchResults } from './getIndexSearchResults.js';
@@ -1,4 +1,4 @@
1
- import { _ } from '@swc/helpers/cjs/_sliced_to_array.cjs';
1
+ import { _ } from '@swc/helpers/esm/_sliced_to_array.js';
2
2
  import { useState, useCallback, useEffect } from 'react';
3
3
  import { useIndexContext } from './useIndexContext.js';
4
4
  import { useInstantSearchContext } from './useInstantSearchContext.js';
@@ -1,4 +1,4 @@
1
- import { _ } from '@swc/helpers/cjs/_sliced_to_array.cjs';
1
+ import { _ } from '@swc/helpers/esm/_sliced_to_array.js';
2
2
  import { useState } from 'react';
3
3
  import { dequal } from './dequal.js';
4
4
 
@@ -1,2 +1,2 @@
1
- declare const _default: "7.28.0";
1
+ declare const _default: "7.29.0";
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
- var version = '7.28.0';
1
+ var version = '7.29.0';
2
2
 
3
3
  export { version as default };