Skip to content

chore(version): bump algoliasearch version to v0.11.0#4938

Merged
Haroenv merged 6 commits intoalgolia:chore/bump-algoliasearchfrom
bidoubiwa:refactor/bump-algoliasearch-v0-11-0
Oct 21, 2021
Merged

chore(version): bump algoliasearch version to v0.11.0#4938
Haroenv merged 6 commits intoalgolia:chore/bump-algoliasearchfrom
bidoubiwa:refactor/bump-algoliasearch-v0-11-0

Conversation

@bidoubiwa
Copy link
Copy Markdown
Contributor

@bidoubiwa bidoubiwa commented Oct 20, 2021

Summary

fixes: #4916

This PR updates algoliasearch and @algolia/client-search to the latest release: v0.11.0.

This new version introduces a fix on the type of insideBoundingBox (see algolia/algoliasearch-client-javascript#1310). insideBoundingBox used to only accept a ReadonlyArray<readonly number[]>;, wich was conflicting with instantsearch.js using it as a string #4916 .

The fix introduced in the new @algolia/client-search packages expanded the type of insideBoundingBox to also accept a string (this line).

  readonly insideBoundingBox?: ReadonlyArray<readonly number[]> | string;

In this PR, the packages are updated and the code is made up-to-date with the introduced changes.

  • Typescript ignore comments to avoid typescript error are removed
  • Typescript workaround to enforce string type is removed

Result

Screenshot 2021-10-19 at 23 11 43

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci Bot commented Oct 20, 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 febea68:

Sandbox Source
InstantSearch.js Configuration

@bidoubiwa bidoubiwa marked this pull request as ready for review October 20, 2021 18:46
@Haroenv Haroenv changed the title refactor(version): bump algoliasearch version to v0.11.0 chore(version): bump algoliasearch version to v0.11.0 Oct 21, 2021
@Haroenv
Copy link
Copy Markdown
Contributor

Haroenv commented Oct 21, 2021

This is very cool, thanks! I'd just need to make sure the CI runs on the v3 version of algoliasearch without errors now that the workarounds are removed

@Haroenv Haroenv changed the base branch from master to chore/bump-algoliasearch October 21, 2021 07:36
Copy link
Copy Markdown
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

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

looks good to merge to branch in our organisation (for CI)

@Haroenv Haroenv merged commit ce6e159 into algolia:chore/bump-algoliasearch Oct 21, 2021
@Haroenv
Copy link
Copy Markdown
Contributor

Haroenv commented Oct 21, 2021

I made a "local" version of this PR and saw that CI is now failing for algoliasearch v3. I think we could either ts-ignore, keep the casting or keep everything as-is (except updating of course). What do you think @bidoubiwa?

The algoliasearch (v3) types no longer exist on DefinitelyTyped, so I don't think we can add the string type there 🤔

Haroenv added a commit that referenced this pull request Nov 16, 2021
* chore(version): bump algoliasearch version to v0.11.0 (#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

* chore(version): Fix failing tests when using algoliasearch@v3 (#4941)

* 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

* chore(version): reverse type enforcing functions (#4942)

* update wordings, remove script

* Apply suggestions from code review

Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>

Co-authored-by: cvermand <33010418+bidoubiwa@users.noreply.github.com>
Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
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

2 participants