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

chore(version): bump algoliasearch version to v4.11.0 #4939

Merged
merged 5 commits into from
Nov 16, 2021

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Oct 21, 2021

  • refactor(version): bump algoliasearch version to v0.11.0

  • Import algoliasearch tarball package with type fix

  • refactor(packages): Remove algoliasearch tarball

  • refactor(types): Remove type work-arround for boundingBox

  • Import algoliasearch client with type fix

  • Remove unecessary type enforcement

  • refactor(package): Bump algoliasearch to v0.11.0

fixes: #4916

testing the CI of #4938

* refactor(version): bump algoliasearch version to v0.11.0

* Import algoliasearch tarball package with type fix

* refactor(packages): Remove algoliasearch tarball

* refactor(types): Remove type work-arround for boundingBox (#2)

* Import algoliasearch client with type fix

* Remove unecessary type enforcement

* refactor(package): Bump algoliasearch to v0.11.0

fixes: #4916
@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 21, 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 c7a1542:

Sandbox Source
InstantSearch.js Configuration

@Haroenv
Copy link
Contributor Author

Haroenv commented Oct 21, 2021

@bidoubiwa, as we don't want CI errors with v3 of algoliasearch, I think this just bumping v4 wasn't enough to be able to remove the ts-expect-error, and they likely need to become ts-ignore instead now. In a next major version we can support TS only for v4, but at the moment we don't really enforce the major version. WDYT? Do you have a solution in mind?

@bidoubiwa
Copy link
Contributor

Hey @Haroenv this raised very interesting questions on which one to use between ts-ignore and ts-expect-error. I'm still not sure how this impacts the code.
I also tried to re-create a typescript app in which the type incompatibility would be raised, I did not manage to do so :(

I reversed some changes here: #4941

tkrugg
tkrugg previously approved these changes Oct 22, 2021
@francoischalifour francoischalifour changed the title chore(version): bump algoliasearch version to v0.11.0 chore(version): bump algoliasearch version to v4.11.0 Oct 22, 2021
* docs(contributing): Add doc on instantsearch cross version testing

* fix(tests): Fixes insideboundingbox tests

* core(geo): Reverse removal of geo forced typecasting

* Update testing script in contributing

* Typescript installation documentation
CONTRIBUTING.md Outdated Show resolved Hide resolved
scripts/tests/algoliasearch-v3-tests.sh Outdated Show resolved Hide resolved
src/connectors/geo-search/connectGeoSearch.ts Outdated Show resolved Hide resolved
src/connectors/geo-search/connectGeoSearch.ts Show resolved Hide resolved
@Haroenv Haroenv dismissed tkrugg’s stale review October 25, 2021 10:16

it doesn't work yet

CONTRIBUTING.md Outdated Show resolved Hide resolved
@Haroenv Haroenv requested review from tkrugg and sarahdayan November 15, 2021 16:19
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
V4 uses the types provided by both `algoliasearch` and `@algolia/client-search`.

```bash
yarn add algoliasearch@4 @algolia/client-search
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
yarn add algoliasearch@4 @algolia/client-search
yarn add algoliasearch@4 && yarn add @algolia/client-search -D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

why dev dependency for that one? it's a "peer" (actually usually you won't need to rely on it manually as it's a dependency of algoliasearch), but a normal dependency would be fine imo

Copy link
Member

@sarahdayan sarahdayan Nov 16, 2021

Choose a reason for hiding this comment

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

I usually keep all non-runtime dependencies as dev dependencies. Not a blocker in front-end anyway, people can choose how they prefer.

Feel free to ignore.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
@Haroenv Haroenv merged commit ee10be3 into master Nov 16, 2021
@Haroenv Haroenv deleted the chore/bump-algoliasearch branch November 16, 2021 10:03
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.

Type conflict between algoliasearch client and its usage in instantSearch
4 participants