Skip to content

Commit

Permalink
chore(react): rename react instantsearch packages (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhayab authored Aug 9, 2023
1 parent 5b5d893 commit 906ca37
Show file tree
Hide file tree
Showing 30 changed files with 124 additions and 151 deletions.
2 changes: 1 addition & 1 deletion demos/react/ecommerce/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Algolia React InstantSearch Hooks | E-commerce demo
# Algolia React InstantSearch | E-commerce demo

_This project was generated with [create-instantsearch-app](https://github.com/algolia/instantsearch/tree/master/packages/create-instantsearch-app) by [Algolia](https://algolia.com)._

Expand Down
2 changes: 1 addition & 1 deletion demos/react/ecommerce/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<link rel="stylesheet" href="src/App.css" />

<title>Algolia React InstantSearch Hooks | E-commerce demo</title>
<title>Algolia React InstantSearch | E-commerce demo</title>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion demos/react/ecommerce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"algoliasearch": "4.17.1",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-instantsearch-hooks-web": "6.44.1"
"react-instantsearch": "^7.0.0"
},
"devDependencies": {
"@types/react": "18.2.7",
Expand Down
2 changes: 1 addition & 1 deletion demos/react/ecommerce/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
RefinementList,
SearchBox,
Stats,
} from 'react-instantsearch-hooks-web'
} from 'react-instantsearch'

import { Content } from './Content'
import { Panel } from './Panel'
Expand Down
2 changes: 1 addition & 1 deletion demos/react/ecommerce/src/Content.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Hits, useInstantSearch } from 'react-instantsearch-hooks-web'
import { Hits, useInstantSearch } from 'react-instantsearch'
import { Hit } from './Hit'

export function Content() {
Expand Down
2 changes: 1 addition & 1 deletion demos/react/ecommerce/src/Hit.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Highlight, Snippet } from 'react-instantsearch-hooks-web'
import { Highlight, Snippet } from 'react-instantsearch'
import type { Hit } from 'instantsearch.js'

type HitProps = {
Expand Down
52 changes: 26 additions & 26 deletions demos/react/ecommerce/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -919,14 +919,14 @@
resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.7.tgz#63bb7d067db107cc1e457c303bc25d511febf6cb"
integrity sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==

"@types/react-dom@^18.2.4":
"@types/[email protected]":
version "18.2.4"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.4.tgz#13f25bfbf4e404d26f62ac6e406591451acba9e0"
integrity sha512-G2mHoTMTL4yoydITgOGwWdWMVd8sNgyEP85xVmMKAPUBwQWm9wBPQUmvbeF4V3WBY1P7mmL4BkjQ0SqUpf1snw==
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@^18.2.7":
"@types/react@*", "@types/[email protected]":
version "18.2.7"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.7.tgz#dfb4518042a3117a045b8c222316f83414a783b3"
integrity sha512-ojrXpSH2XFCmHm7Jy3q44nXDyN54+EYKP2lBhJ2bqfyPj6cIUW/FZW/Csdia34NQgq7KYcAlHi5184m4X88+yw==
Expand All @@ -950,10 +950,10 @@ abortcontroller-polyfill@^1.1.9:
resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.5.tgz#6738495f4e901fbb57b6c0611d0c75f76c485bed"
integrity sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ==

algoliasearch-helper@^3.13.0:
version "3.13.0"
resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.13.0.tgz#1ccca7056fd27c2b0b5c92dd5c0abf4314bec3b8"
integrity sha512-kV3c1jMQCvkARtGsSDvAwuht4PAMSsQILqPiH4WFiARoa3jXJ/r1TQoBWAjWyWF48rsNYCv7kzxgB4LTxrvvuw==
algoliasearch-helper@3.14.0:
version "3.14.0"
resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.14.0.tgz#2409c2591952719ab6fba1de77b3bbe5094ab85e"
integrity sha512-gXDXzsSS0YANn5dHr71CUXOo84cN4azhHKUbg71vAWnH+1JBiR4jf7to3t3JHXknXkbV0F7f055vUSBKrltHLQ==
dependencies:
"@algolia/events" "^4.0.1"

Expand Down Expand Up @@ -1275,10 +1275,10 @@ import-fresh@^3.2.1:
parent-module "^1.0.0"
resolve-from "^4.0.0"

[email protected].1:
version "4.56.1"
resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.56.1.tgz#ddff17fea5ed8d8a0e14e66a977f107f7143adef"
integrity sha512-4BQdnMEDWP9IRF12xninO/yR1f7F+mE935X0eVKuhUqitZF7GvUsL93MysXxHyPJnrbC6o0Aofc3kNcTKteKWw==
[email protected].8:
version "4.56.8"
resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.56.8.tgz#c417c68a792a4b7d6cc866cdb059d828799e84da"
integrity sha512-40DJ5l70ZzVzWPK3qrHTKlJLaHGq1PRZpzfL6281P2mz8G19WOHQHKAP4Zh6a4lOZaRtJQUiPjQwqCHSurXZ5g==
dependencies:
"@algolia/events" "^4.0.1"
"@algolia/ui-components-highlight-vdom" "^1.2.1"
Expand All @@ -1287,7 +1287,7 @@ [email protected]:
"@types/google.maps" "^3.45.3"
"@types/hogan.js" "^3.0.0"
"@types/qs" "^6.5.3"
algoliasearch-helper "^3.13.0"
algoliasearch-helper "3.14.0"
hogan.js "^3.0.2"
htm "^3.0.0"
preact "^10.10.0"
Expand Down Expand Up @@ -1618,7 +1618,7 @@ preact@^10.10.0:
resolved "https://registry.yarnpkg.com/preact/-/preact-10.15.1.tgz#a1de60c9fc0c79a522d969c65dcaddc5d994eede"
integrity sha512-qs2ansoQEwzNiV5eAcRT1p1EC/dmEzaATVDJNiB3g2sRDWdA7b7MurXdJjB2+/WQktGWZwxvDrnuRFbWuIr64g==

process@^0.11.10:
[email protected]:
version "0.11.10"
resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
integrity sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==
Expand All @@ -1641,24 +1641,24 @@ [email protected]:
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.9.tgz#3c743010c9359608c375ecd6bc76f35d93995b0a"
integrity sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew==

react-instantsearch-[email protected]:
version "6.44.1"
resolved "https://registry.yarnpkg.com/react-instantsearch-hooks-web/-/react-instantsearch-hooks-web-6.44.1.tgz#79706bf83fd70cef1c5cd534fcafc2eba4e65b3b"
integrity sha512-QZwBakRfBEAhla18YMk2te988p7BN6DA2G6DpXKvOCUSBUR72Lp5+DH8OAO0M7jGtH9xzFcCWVMD50hKhK8yaQ==
react-instantsearch-[email protected]:
version "7.0.0"
resolved "https://registry.yarnpkg.com/react-instantsearch-core/-/react-instantsearch-core-7.0.0.tgz#68037782217eed19f91138e0325a9b171ce5d49a"
integrity sha512-O/ThoTFGMdIWX0EHJ+jjpiB48Bk1DqP9KxpXCGYdk52Gg/UFWB+0f6apJqGULZBgL81qYO7v4YGRz2Caawgngw==
dependencies:
"@babel/runtime" "^7.1.2"
instantsearch.js "4.56.1"
react-instantsearch-hooks "6.44.1"
algoliasearch-helper "3.14.0"
instantsearch.js "4.56.8"
use-sync-external-store "^1.0.0"

react-instantsearch[email protected]:
version "6.44.1"
resolved "https://registry.yarnpkg.com/react-instantsearch-hooks/-/react-instantsearch-hooks-6.44.1.tgz#10483bd27b0c399d3297d055421572914694e653"
integrity sha512-2WZd+Q8iA8J2tSvxNhGg7FOHgng+IE34tfIksoGyxjn6N7AW42VGdL0Wdpm+J98eJemCEiJ3/seTJaOHq3a+YA==
react-instantsearch@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/react-instantsearch/-/react-instantsearch-7.0.0.tgz#93cf4831fd1a7a82b282ec7b1bb93fcb366b36db"
integrity sha512-GulJ8QFj6LELlzwm09Ec0c7NFJdcZl9DCizWevzCss7Dwdkh0Nmo6WQZ99KHIFo5opL+fDQn3OckIUjIP5vGvQ==
dependencies:
"@babel/runtime" "^7.1.2"
algoliasearch-helper "^3.13.0"
instantsearch.js "4.56.1"
use-sync-external-store "^1.0.0"
instantsearch.js "4.56.8"
react-instantsearch-core "7.0.0"

react-refresh@^0.9.0:
version "0.9.0"
Expand Down Expand Up @@ -1770,7 +1770,7 @@ type-fest@^0.20.2:
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4"
integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==

typescript@^5.0.4:
[email protected]:
version "5.0.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b"
integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==
Expand Down
2 changes: 1 addition & 1 deletion demos/react/geo/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Algolia React InstantSearch Hooks | Geo demo
# Algolia React InstantSearch | Geo demo

_This project was generated with [create-instantsearch-app](https://github.com/algolia/instantsearch/tree/master/packages/create-instantsearch-app) by [Algolia](https://algolia.com)._

Expand Down
2 changes: 1 addition & 1 deletion demos/react/geo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<link rel="stylesheet" href="src/App.css" />

<title>Algolia React InstantSearch Hooks | Geo Search demo</title>
<title>Algolia React InstantSearch | Geo Search demo</title>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion demos/react/geo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"leaflet": "1.9.4",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-instantsearch-hooks-web": "6.44.1",
"react-instantsearch": "^7.0.0",
"react-leaflet": "4.2.1"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions demos/react/geo/src/Airports.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, { useState } from 'react'
import { Marker, Popup, useMapEvents } from 'react-leaflet'
import { DivIcon } from 'leaflet'
import { useSearchBox } from 'react-instantsearch-hooks-web'
import { useGeoSearch } from './useGeoSearch'
import { useGeoSearch, useSearchBox } from 'react-instantsearch'

import type { GeoHit } from 'instantsearch.js/es/connectors/geo-search/connectGeoSearch'

Expand Down
7 changes: 1 addition & 6 deletions demos/react/geo/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import React from 'react'
import algoliasearch from 'algoliasearch/lite'
import {
Configure,
InstantSearch,
SearchBox,
Stats,
} from 'react-instantsearch-hooks-web'
import { Configure, InstantSearch, SearchBox, Stats } from 'react-instantsearch'

import { Map } from './Map'
import { Content } from './Content'
Expand Down
2 changes: 1 addition & 1 deletion demos/react/geo/src/Content.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Hits, useInstantSearch } from 'react-instantsearch-hooks-web'
import { Hits, useInstantSearch } from 'react-instantsearch'
import { Hit } from './Hit'

export function Content() {
Expand Down
2 changes: 1 addition & 1 deletion demos/react/geo/src/Hit.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Highlight } from 'react-instantsearch-hooks-web'
import { Highlight } from 'react-instantsearch'
import type { Hit as BaseHit } from 'instantsearch.js'

import { Airport } from './Airports'
Expand Down
21 changes: 0 additions & 21 deletions demos/react/geo/src/useGeoSearch.ts

This file was deleted.

44 changes: 22 additions & 22 deletions demos/react/geo/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -967,10 +967,10 @@ abortcontroller-polyfill@^1.1.9:
resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.5.tgz#6738495f4e901fbb57b6c0611d0c75f76c485bed"
integrity sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ==

algoliasearch-helper@^3.13.0:
version "3.13.0"
resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.13.0.tgz#1ccca7056fd27c2b0b5c92dd5c0abf4314bec3b8"
integrity sha512-kV3c1jMQCvkARtGsSDvAwuht4PAMSsQILqPiH4WFiARoa3jXJ/r1TQoBWAjWyWF48rsNYCv7kzxgB4LTxrvvuw==
algoliasearch-helper@3.14.0:
version "3.14.0"
resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.14.0.tgz#2409c2591952719ab6fba1de77b3bbe5094ab85e"
integrity sha512-gXDXzsSS0YANn5dHr71CUXOo84cN4azhHKUbg71vAWnH+1JBiR4jf7to3t3JHXknXkbV0F7f055vUSBKrltHLQ==
dependencies:
"@algolia/events" "^4.0.1"

Expand Down Expand Up @@ -1292,10 +1292,10 @@ import-fresh@^3.2.1:
parent-module "^1.0.0"
resolve-from "^4.0.0"

[email protected].1:
version "4.56.1"
resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.56.1.tgz#ddff17fea5ed8d8a0e14e66a977f107f7143adef"
integrity sha512-4BQdnMEDWP9IRF12xninO/yR1f7F+mE935X0eVKuhUqitZF7GvUsL93MysXxHyPJnrbC6o0Aofc3kNcTKteKWw==
[email protected].8:
version "4.56.8"
resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.56.8.tgz#c417c68a792a4b7d6cc866cdb059d828799e84da"
integrity sha512-40DJ5l70ZzVzWPK3qrHTKlJLaHGq1PRZpzfL6281P2mz8G19WOHQHKAP4Zh6a4lOZaRtJQUiPjQwqCHSurXZ5g==
dependencies:
"@algolia/events" "^4.0.1"
"@algolia/ui-components-highlight-vdom" "^1.2.1"
Expand All @@ -1304,7 +1304,7 @@ [email protected]:
"@types/google.maps" "^3.45.3"
"@types/hogan.js" "^3.0.0"
"@types/qs" "^6.5.3"
algoliasearch-helper "^3.13.0"
algoliasearch-helper "3.14.0"
hogan.js "^3.0.2"
htm "^3.0.0"
preact "^10.10.0"
Expand Down Expand Up @@ -1663,24 +1663,24 @@ [email protected]:
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.9.tgz#3c743010c9359608c375ecd6bc76f35d93995b0a"
integrity sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew==

react-instantsearch-[email protected]:
version "6.44.1"
resolved "https://registry.yarnpkg.com/react-instantsearch-hooks-web/-/react-instantsearch-hooks-web-6.44.1.tgz#79706bf83fd70cef1c5cd534fcafc2eba4e65b3b"
integrity sha512-QZwBakRfBEAhla18YMk2te988p7BN6DA2G6DpXKvOCUSBUR72Lp5+DH8OAO0M7jGtH9xzFcCWVMD50hKhK8yaQ==
react-instantsearch-[email protected]:
version "7.0.0"
resolved "https://registry.yarnpkg.com/react-instantsearch-core/-/react-instantsearch-core-7.0.0.tgz#68037782217eed19f91138e0325a9b171ce5d49a"
integrity sha512-O/ThoTFGMdIWX0EHJ+jjpiB48Bk1DqP9KxpXCGYdk52Gg/UFWB+0f6apJqGULZBgL81qYO7v4YGRz2Caawgngw==
dependencies:
"@babel/runtime" "^7.1.2"
instantsearch.js "4.56.1"
react-instantsearch-hooks "6.44.1"
algoliasearch-helper "3.14.0"
instantsearch.js "4.56.8"
use-sync-external-store "^1.0.0"

react-instantsearch[email protected]:
version "6.44.1"
resolved "https://registry.yarnpkg.com/react-instantsearch-hooks/-/react-instantsearch-hooks-6.44.1.tgz#10483bd27b0c399d3297d055421572914694e653"
integrity sha512-2WZd+Q8iA8J2tSvxNhGg7FOHgng+IE34tfIksoGyxjn6N7AW42VGdL0Wdpm+J98eJemCEiJ3/seTJaOHq3a+YA==
react-instantsearch@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/react-instantsearch/-/react-instantsearch-7.0.0.tgz#93cf4831fd1a7a82b282ec7b1bb93fcb366b36db"
integrity sha512-GulJ8QFj6LELlzwm09Ec0c7NFJdcZl9DCizWevzCss7Dwdkh0Nmo6WQZ99KHIFo5opL+fDQn3OckIUjIP5vGvQ==
dependencies:
"@babel/runtime" "^7.1.2"
algoliasearch-helper "^3.13.0"
instantsearch.js "4.56.1"
use-sync-external-store "^1.0.0"
instantsearch.js "4.56.8"
react-instantsearch-core "7.0.0"

[email protected]:
version "4.2.1"
Expand Down
2 changes: 1 addition & 1 deletion demos/react/media/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Algolia React InstantSearch Hooks | Media demo
# Algolia React InstantSearch | Media demo

_This project was generated with [create-instantsearch-app](https://github.com/algolia/instantsearch/tree/master/packages/create-instantsearch-app) by [Algolia](https://algolia.com)._

Expand Down
2 changes: 1 addition & 1 deletion demos/react/media/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<link rel="stylesheet" href="src/App.css" />

<title>Algolia React InstantSearch Hooks | Media demo</title>
<title>Algolia React InstantSearch | Media demo</title>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion demos/react/media/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"algoliasearch": "4.17.1",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-instantsearch-hooks-web": "6.44.1"
"react-instantsearch": "^7.0.0"
},
"devDependencies": {
"@types/react": "18.2.7",
Expand Down
2 changes: 1 addition & 1 deletion demos/react/media/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
RefinementList,
SearchBox,
Stats,
} from 'react-instantsearch-hooks-web'
} from 'react-instantsearch'

import { Content } from './Content'
import { Panel } from './Panel'
Expand Down
2 changes: 1 addition & 1 deletion demos/react/media/src/Content.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Hits, useInstantSearch } from 'react-instantsearch-hooks-web'
import { Hits, useInstantSearch } from 'react-instantsearch'
import { Hit } from './Hit'

export function Content() {
Expand Down
2 changes: 1 addition & 1 deletion demos/react/media/src/Hit.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react'
import { Highlight, Snippet } from 'react-instantsearch-hooks-web'
import { Highlight, Snippet } from 'react-instantsearch'
import type { Hit } from 'instantsearch.js'

type HitProps = {
Expand Down
Loading

0 comments on commit 906ca37

Please sign in to comment.