create-instantsearch-app 6.1.0 → 6.2.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.
package/README.md CHANGED
@@ -162,11 +162,9 @@ Create InstantSearch App is [MIT licensed](LICENSE).
162
162
 
163
163
  [version-svg]: https://img.shields.io/npm/v/create-instantsearch-app.svg?style=flat-square
164
164
  [package-url]: https://npmjs.org/package/create-instantsearch-app
165
- [ci-svg]: https://img.shields.io/travis/algolia/create-instantsearch-app/master.svg?style=flat-square
166
- [ci-url]: https://travis-ci.org/algolia/create-instantsearch-app
167
165
  [ci-svg]: https://img.shields.io/circleci/project/github/algolia/create-instantsearch-app.svg?style=flat-square
168
166
  [ci-url]: https://circleci.com/gh/algolia/create-instantsearch-app
169
- [license-image]: http://img.shields.io/badge/license-MIT-green.svg?style=flat-square
167
+ [license-image]: https://img.shields.io/badge/license-MIT-green.svg?style=flat-square
170
168
  [license-url]: LICENSE
171
169
 
172
170
  <!-- Links -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-instantsearch-app",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "license": "MIT",
5
5
  "description": "⚡️ Build InstantSearch apps at the speed of thought",
6
6
  "keywords": [
@@ -10,8 +10,8 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "algoliasearch": "4",
13
- "react": "16.12.0",
14
- "react-dom": "16.12.0",
13
+ "react": "18.1.0",
14
+ "react-dom": "18.1.0",
15
15
  "react-instantsearch-dom": "{{libraryVersion}}",
16
16
  "react-scripts": "2.1.1"
17
17
  },
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import ReactDOM from 'react-dom';
2
+ import { createRoot } from 'react-dom/client';
3
3
  import './index.css';
4
4
  import App from './App';
5
5
 
6
- ReactDOM.render(<App />, document.getElementById('root'));
6
+ createRoot(document.getElementById('root')).render(<App />);
@@ -8,13 +8,15 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "algoliasearch": "4",
11
- "instantsearch.js": "4.40.5",
12
- "react": "17.0.2",
13
- "react-dom": "17.0.2",
11
+ "instantsearch.js": "4.43.1",
12
+ "react": "18.1.0",
13
+ "react-dom": "18.1.0",
14
14
  "react-instantsearch-hooks-web": "{{libraryVersion}}"
15
15
  },
16
16
  "devDependencies": {
17
- "@types/react": "17.0.45",
18
- "parcel": "2.5.0"
17
+ "@types/react": "18.0.15",
18
+ "@types/react-dom": "18.0.6",
19
+ "parcel": "2.5.0",
20
+ "typescript": "4.7.4"
19
21
  }
20
22
  }
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import algoliasearch from 'algoliasearch/lite';
2
3
  import {
3
4
  Configure,
@@ -1,3 +1,5 @@
1
+ import React from 'react';
2
+
1
3
  type PanelProps = React.PropsWithChildren<{
2
4
  header: string;
3
5
  }>;
@@ -1,5 +1,6 @@
1
- import ReactDOM from 'react-dom';
1
+ import React from 'react';
2
+ import { createRoot } from 'react-dom/client';
2
3
 
3
4
  import { App } from './App';
4
5
 
5
- ReactDOM.render(<App />, document.getElementById('root'));
6
+ createRoot(document.getElementById('root')!).render(<App />);