@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.
@@ -1,4 +1,5 @@
1
1
  // builds/node.ts
2
+ import { gzipSync } from "zlib";
2
3
  import { createHmac } from "crypto";
3
4
  import {
4
5
  IndexAlreadyExistsError,
@@ -20,7 +21,7 @@ import {
20
21
  getAlgoliaAgent,
21
22
  shuffle
22
23
  } from "@algolia/client-common";
23
- var apiClientVersion = "5.49.1";
24
+ var apiClientVersion = "5.50.0";
24
25
  function getDefaultHosts(appId) {
25
26
  return [
26
27
  {
@@ -2375,6 +2376,7 @@ function searchClient(appId, apiKey, options) {
2375
2376
  responsesCache: createNullCache(),
2376
2377
  requestsCache: createNullCache(),
2377
2378
  hostsCache: createMemoryCache(),
2379
+ compress: async (data) => gzipSync(Buffer.from(data)),
2378
2380
  ...options
2379
2381
  }),
2380
2382
  /**