Skip to content

Commit

Permalink
Bump algoliasearch from 5.2.5 to 5.10.1 (#232)
Browse files Browse the repository at this point in the history
* Bump algoliasearch from 5.2.5 to 5.10.1

Bumps [algoliasearch](https://github.com/algolia/algoliasearch-client-javascript) from 5.2.5 to 5.10.1.
- [Release notes](https://github.com/algolia/algoliasearch-client-javascript/releases)
- [Changelog](https://github.com/algolia/algoliasearch-client-javascript/blob/main/CHANGELOG.md)
- [Commits](algolia/algoliasearch-client-javascript@5.2.5...5.10.1)

---
updated-dependencies:
- dependency-name: algoliasearch
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Removes algoliasearch

* Adds back algoliasearch since needed for instantsearch

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ross Chapman <[email protected]>
Co-authored-by: Ross Chapman <[email protected]>
  • Loading branch information
3 people authored Oct 23, 2024
1 parent 846d30b commit a27402a
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 60 deletions.
2 changes: 1 addition & 1 deletion app/models/SearchHits.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Hit, SearchHits } from "algoliasearch";
import { Hit, SearchHits } from "@algolia/client-search";
// eslint-disable-next-line import/no-extraneous-dependencies
import algoliasearchHelper from "algoliasearch-helper";
import { Service } from "./Service";
Expand Down
6 changes: 3 additions & 3 deletions app/pages/ServiceListingPage/ServiceListingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import {
Service,
} from "../../models";
import styles from "./ServiceListingPage.module.scss";
import { algoliasearch } from "algoliasearch";
import { searchClient } from "@algolia/client-search";
import config from "./../../config";

const searchClient = algoliasearch(
const client = searchClient(
config.ALGOLIA_APPLICATION_ID,
config.ALGOLIA_READ_ONLY_API_KEY
);
Expand Down Expand Up @@ -75,7 +75,7 @@ export const ServiceListingPage = () => {
try {
// CAVEAT: Hopefully this does not change!
const serviceObjectID = `service_${pathname.split("/")[2]}`;
const service = (await searchClient.getObject({
const service = (await client.getObject({
indexName: INDEX_NAME,
objectID: serviceObjectID,
})) as unknown as Service;
Expand Down
2 changes: 1 addition & 1 deletion app/utils/useAppContext.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AroundRadius } from "algoliasearch";
import { AroundRadius } from "@algolia/client-search";
import React, {
useMemo,
createContext,
Expand Down
186 changes: 132 additions & 54 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
},
"browser": "app/init.jsx",
"dependencies": {
"@algolia/client-search": "^5.10.1",
"@babel/polyfill": "^7.4.4",
"algoliasearch": "^5.2.5",
"algoliasearch": "^5.10.1",
"classnames": "^2.2.6",
"copy-webpack-plugin": "^12.0.2",
"google-map-react": "^2.2.1",
Expand Down

0 comments on commit a27402a

Please sign in to comment.