Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dependencies): upgrade dependencies #1015

Merged
merged 1 commit into from
Jul 9, 2021
Merged

fix(dependencies): upgrade dependencies #1015

merged 1 commit into from
Jul 9, 2021

Conversation

shortcuts
Copy link
Member

Summary

This PR upgrade the DocSearch dependencies but most importantly Autocomplete to the latest version, which fixes this issue: facebook/docusaurus#5031

Without any query, recent searches and favorite searches, DocSearch crashes the whole website when pressing with the input focused.

Reproduction:

Result

  • DocSearch now uses the latest version of Autocomplete.
  • I've added two local sandboxes (for React and Vanilla JavaScript) to ease the reproduction of these kind of issue.

},
],
})
return searchClient
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the new Autocomplete Requester API, it's easier for us to use the client to create sources on the fly.

@@ -13,11 +13,11 @@
},
"dependencies": {
"@algolia/ui-library": "2.35.0",
"@docsearch/react": "1.0.0-alpha.28",
"@docsearch/react": "3.0.0-alpha.36",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This website package isn't the live https://docsearch.algolia.com/ one, I've updated the dependencies just to make it consistent.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 8, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f2c0ba3:

Sandbox Source
Vanilla Configuration

@@ -0,0 +1,19 @@
import React from 'react';
import { DocSearch } from '@docsearch/react';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has a lint error, I guess because it's a local file and a wrong error / missing eslint configuration?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It indeed is, AFAIK it's been failing for a long time, I'll fix it in a future PR

@shortcuts shortcuts merged commit 9300cb4 into next Jul 9, 2021
@shortcuts shortcuts deleted the fix/dependencies branch July 9, 2021 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants