instantsearch.js 4.34.0 → 4.35.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.
@@ -1,6 +1,5 @@
1
- /// <reference types="node" />
2
1
  import type { AlgoliaSearchHelper } from 'algoliasearch-helper';
3
- import EventEmitter from 'events';
2
+ import EventEmitter from '@algolia/events';
4
3
  import type { IndexWidget } from '../widgets/index/index';
5
4
  import type { InsightsClient as AlgoliaInsightsClient, SearchClient, Widget, UiState, CreateURL, Middleware, MiddlewareDefinition, RenderState, InitialResults } from '../types';
6
5
  import type { RouterProps } from '../middlewares/createRouterMiddleware';
@@ -27,7 +27,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
27
27
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
28
28
 
29
29
  import algoliasearchHelper from 'algoliasearch-helper';
30
- import EventEmitter from 'events';
30
+ import EventEmitter from '@algolia/events';
31
31
  import index, { isIndexWidget } from '../widgets/index/index';
32
32
  import version from './version';
33
33
  import createHelpers from './createHelpers';
@@ -1,2 +1,2 @@
1
- declare const _default: "4.34.0";
1
+ declare const _default: "4.35.0";
2
2
  export default _default;
package/es/lib/version.js CHANGED
@@ -1 +1 @@
1
- export default '4.34.0';
1
+ export default '4.35.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instantsearch.js",
3
- "version": "4.34.0",
3
+ "version": "4.35.0",
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
  "@types/google.maps": "^3.45.3",
56
56
  "@types/hogan.js": "^3.0.0",
57
57
  "@types/qs": "^6.5.3",
58
- "algoliasearch-helper": "^3.6.2",
58
+ "algoliasearch-helper": "^3.7.0",
59
59
  "classnames": "^2.2.5",
60
- "events": "^1.1.0",
60
+ "@algolia/events": "^4.0.1",
61
61
  "hogan.js": "^3.0.2",
62
62
  "preact": "^10.0.0",
63
63
  "qs": "^6.5.1 < 6.10",
@@ -144,6 +144,9 @@
144
144
  "typescript": "4.3.5",
145
145
  "webpack": "4.41.5"
146
146
  },
147
+ "peerDependencies": {
148
+ "algoliasearch": ">= 3.1 < 5"
149
+ },
147
150
  "resolutions": {
148
151
  "places.js/algoliasearch": "3.35.0"
149
152
  },