Skip to content

docs: document Requester API#541

Merged
sarahdayan merged 10 commits intofeat/requester-apifrom
feat/requester-api-docs
Apr 22, 2021
Merged

docs: document Requester API#541
sarahdayan merged 10 commits intofeat/requester-apifrom
feat/requester-api-docs

Conversation

@sarahdayan
Copy link
Copy Markdown
Member

This documents the Requester API in the current documentation. This will be ported over to the main docs for the stable release, but in the meantime the live docs will be up to date.

This documents the getAlgoliaResults and getAlgoliaFacets functions in both autocomplete-algolia-preset and autocomplete-js with API reference and note on usage to ensure proper batching.

The PR also updates existing occurrences of the former API.

I've noticed that some of the playgrounds and Cypress tests aren't up to date. I'll take care of them in another PR.

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci Bot commented Apr 22, 2021

Comment thread packages/website/docs/context.md Outdated
Comment thread packages/website/docs/getAlgoliaFacets-js.mdx Outdated
Comment thread packages/website/docs/getAlgoliaFacets.mdx Outdated
Comment thread packages/website/docs/getAlgoliaFacets.mdx Outdated

The queries to search for, with the following parameters:

#### `indexName`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There's also type and facet now.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed in d4c742e.

Comment thread packages/website/docs/getAlgoliaFacets.mdx Outdated
Comment thread packages/website/docs/getAlgoliaFacets.mdx Outdated
Comment thread packages/website/docs/getAlgoliaFacets.mdx
Comment thread packages/website/docs/partials/preset-algolia/getAlgoliaFacets/intro.md Outdated
sarahdayan and others added 4 commits April 22, 2021 13:50
sarahdayan and others added 3 commits April 22, 2021 19:46
* feat: introduce createGetAlgoliaFacets

* feat: expose RequesterParams type

* refactor: use factory to create function

* test: update tests

* docs: update docs

* fix: update implems

* build: increase bundle size

* refactor: keep duplicates for simplicity

* style: lint

* fix: apply suggestions from code review

Co-authored-by: François Chalifour <francoischalifour@users.noreply.github.com>

* test: better test getAlgoliaResults (#544)

* test: remove unnecessary async/await keywords

* test(autocomplete-js): add unit test for getAlgoliaResults

* fix: remove needless async

Co-authored-by: François Chalifour <francoischalifour@users.noreply.github.com>
@sarahdayan sarahdayan merged commit 81d9ff7 into feat/requester-api Apr 22, 2021
@sarahdayan sarahdayan deleted the feat/requester-api-docs branch April 22, 2021 17:50
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.

2 participants