We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
httpClient
fetch can be polyfilled, and that should be enough. httpClient just adds unnecessary complexity.
fetch
TODO: Better description
The text was updated successfully, but these errors were encountered:
HttpRequests
Merge #1741
9e43b62
1741: Improve `HttpRequests` r=Strift a=flevi29 # Pull Request Sorry for the huge PR, but `HttpRequests` is core, and is used everywhere. ## What does this PR do? - completely refactors [http-requests.ts](https://github.com/meilisearch/meilisearch-js/blob/main/src/http-requests.ts) - fixes #1654 - request parameters are now simple and straight forward - types are reworked and no longer confusing - makes full use of [URL](https://developer.mozilla.org/en-US/docs/Web/API/URL), [Headers](https://developer.mozilla.org/en-US/docs/Web/API/Headers) and [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) web standard features, which are safer and easier to work with - makes use of [Private properties](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_properties) to hide internal implementation that should not be public (this is [widely supported](https://caniuse.com/mdn-javascript_classes_private_class_fields) and [polyfillable](https://babeljs.io/docs/babel-plugin-transform-private-methods)) - fixes some `EnqueuedTaskObject`s not being converted to `EnqueuedTask` > [!CAUTION] > #### BREAKING > Rename `Config.requestConfig` -> `Config.requestInit`, `signal` can no longer be passed to it. > [!WARNING] > Deprecate `Config.httpClient` #1824 ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: F. Levi <[email protected]>
No branches or pull requests
fetch
can be polyfilled, and that should be enough.httpClient
just adds unnecessary complexity.TODO: Better description
The text was updated successfully, but these errors were encountered: