@algolia/client-search 5.49.2 → 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.
@@ -11,7 +11,7 @@ import {
11
11
  getAlgoliaAgent,
12
12
  shuffle
13
13
  } from "@algolia/client-common";
14
- var apiClientVersion = "5.49.2";
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
- ...options
2370
+ ...workerOptions
2370
2371
  }),
2371
2372
  /**
2372
2373
  * Helper: Generates a secured API key based on the given `parentApiKey` and given `restrictions`.