@algolia/client-search 5.49.1 → 5.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/browser.d.ts +3 -2
- package/dist/builds/browser.js +3 -2
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +3 -3
- package/dist/builds/fetch.js +3 -1
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +3 -1
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +3 -1
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +3 -2
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +3 -2
- package/dist/node.d.cts +3 -2
- package/dist/node.d.ts +3 -2
- package/dist/src/searchClient.cjs +1 -1
- package/dist/src/searchClient.cjs.map +1 -1
- package/dist/src/searchClient.js +6 -3
- package/dist/src/searchClient.js.map +1 -1
- package/dist/worker.d.ts +3 -2
- package/package.json +7 -7
package/dist/builds/worker.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getAlgoliaAgent,
|
|
12
12
|
shuffle
|
|
13
13
|
} from "@algolia/client-common";
|
|
14
|
-
var apiClientVersion = "5.
|
|
14
|
+
var apiClientVersion = "5.50.0";
|
|
15
15
|
function getDefaultHosts(appId) {
|
|
16
16
|
return [
|
|
17
17
|
{
|
|
@@ -2351,6 +2351,7 @@ function searchClient(appId, apiKey, options) {
|
|
|
2351
2351
|
if (!apiKey || typeof apiKey !== "string") {
|
|
2352
2352
|
throw new Error("`apiKey` is missing.");
|
|
2353
2353
|
}
|
|
2354
|
+
const { compression: _compression, ...workerOptions } = options || {};
|
|
2354
2355
|
return {
|
|
2355
2356
|
...createSearchClient({
|
|
2356
2357
|
appId,
|
|
@@ -2366,7 +2367,7 @@ function searchClient(appId, apiKey, options) {
|
|
|
2366
2367
|
responsesCache: createNullCache(),
|
|
2367
2368
|
requestsCache: createNullCache(),
|
|
2368
2369
|
hostsCache: createMemoryCache(),
|
|
2369
|
-
...
|
|
2370
|
+
...workerOptions
|
|
2370
2371
|
}),
|
|
2371
2372
|
/**
|
|
2372
2373
|
* Helper: Generates a secured API key based on the given `parentApiKey` and given `restrictions`.
|